Make Your Personal Map Jigsaw Puzzle


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 degree

tile_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.

The picture URL of an OpenStreetMap map-tile is within the format of:

https://tile.openstreetmap.org/{z}/{x}/{y}.png

You may get the OpenStreetMap x,y coordinates for a location utilizing Geofabrik’s Tile Calculator. The map menu of the Tile Calculator has a ‘Tile coordinates’ choice. It’s essential choose this feature to view the tile coordinates for every map-tile picture overlain on the map. You may then merely choose the map-tile the place you want to begin your 5×5 map grid (the top-left nook of your map) and alter the x,y coordinates within the Python script to the x.y coordinates displayed on Geofabrik’s Tile Calculator (you can even modify the zoom degree).



Supply hyperlink

We will be happy to hear your thoughts

      Leave a reply

      mapsa
      Logo
      Compare items
      • Total (0)
      Compare
      0
      Shopping cart