I have managed to solve this problem and I've thought that I would share it with you. I wrote my own tile generator. The solution surely is not ideal and could need a lot more work. Any contributions are welcome.
Here are the steps to make it work:
- Use Google Maps, zoom in on the desired area, paste into graphic editing program as a background layer.
- Paste your overlay map into the graphic program on another layer and transform it to match the map in background
- Using Google maps read as precisely as possible the max/min latitude and longitude
- Use my MapTileGenerator to generate the tiles.
In Android use URITileProvider
@Override public URL getTileUrl(int x, int y, int zoom) { String url = MAP_FILES_URL + x + "-" + y + "-" + zoom + ".png"; try { return new URL(url); } catch (MalformedURLException e) { // ignore } return null; }
I have recorded a short video for the process. It is available on youtube: Map Tile Generator Instructions. Unfortunately it is in polish, but the message should be pretty clear after reading the points above.
I am well aware that the script i wrote has problems with memory management and should use introduce multithreading. I hope i can get back to it any time soon.