During development of mobile app for music festivals, we had to display custom festival map overlaid over Open street map.

We used MapTiler to get Google-maps-like tiles, place them on our server and request them instead of the OSM tiles whenever map was in the festival area. However, we had to come up with solution what to display on edges of the festival map, where both custom tiles and Open street map tiles were needed. Due to nature of the tiling engine we were using, we couldn’t display two images overlaid over each other so we needed somehow to combine OSM tiles and our own into one image.

I wrote simple python script, which:

downloads OSM tiles from server

lookup custom tile in the corresponding folder ( the folder structure is based on tiles hierarchy as specified in the Tile Map Service – the same as Google maps are using )