Welcome to the first "guess the date from the map" 3000 lign of code for this. my fingers hurt. If you have more than 3 you win but there is 12 map.
Thanks to the creator of these map, to the game in itch.io and thanks to my finger. 1 hour for this but check the code.