I have been having a whole lot of enjoyable over the previous few days taking part in the map puzzles created by the Map Puzzle Manufacturing facility. Nonetheless I’ve been just a little pissed off by the Japanese place-names used within the puzzles. I subsequently determined to attempt to create my very own map jigsaw puzzle utilizing a map by which the place-names are displayed in English.
My Scrambled Maps sport is an easy map of the Metropolis of London. Press the ‘Scramble’ button and all of the map-tiles shall be scrambled. All you need to do then is re-arrange the map-tiles and put them again of their appropriate positions.
If you wish to create your personal model of the map you simply have to remix the Glitch web page of my Scrambled Metropolis sport and alter the 25 map-tile URLs to the OSM map-tiles for the a part of the world which you want to map.
My map consists of 25 scrambled OpenStreetMap map-tiles. To obtain the URLs routinely for an space I wrote just a little Python script to seize the map-tile picture addresses from OpenStreetMap:
def generate_tile_urls(x_start, y_start, z, num_tiles=5):
base_url = “https://tile.openstreetmap.org/{z}/{x}/{y}.png”
urls = []
for x in vary(x_start, x_start + num_tiles):
for y in vary(y_start, y_start + num_tiles):
url = base_url.format(z=z, x=x, y=y)
urls.append(url)return urls
x_start = 32748 # beginning x-coordinate
y_start = 21787 # beginning y-coordinate
z = 16 # zoom degreetile_urls = generate_tile_urls(x_start, y_start, z)
for url in tile_urls:
print(url)
If you wish to create your personal map you possibly can modify the x_start and y-start on this Python script to obtain the map-tile URLs for a 5×5 grid beginning at your most popular place.
https://tile.openstreetmap.org/{z}/{x}/{y}.png