OruxMaps

Uncategorized Boards => GENERAL => Topic started by: Roman Shuvalov on March 15, 2015, 02:36:29 PM

Title: How to put my custom tile-based map into OruxMaps? TMS?
Post by: Roman Shuvalov on March 15, 2015, 02:36:29 PM
Greetings.



I've created my custom map based on OpenStreetMap. I've rendered tiles, they are saved to .mbtiles and unpacked into set of z/x/y.png folders with png or jpg images for using on my website. Question: how to put this map into OruxMaps? Is it possible to enter TMS link (example.com/tile/%z/%x/%y.png)? I've seen "orux-map://" URL on openandromaps.org, is it possible to pack my set of tiles into ZIP and use this special URL? how to do it?



Thank you.
Title: Re: How to put my custom tile-based map into OruxMaps? TMS?
Post by: orux on March 17, 2015, 05:28:39 PM
Quote from: "Roman Shuvalov"Greetings.



I've created my custom map based on OpenStreetMap. I've rendered tiles, they are saved to .mbtiles and unpacked into set of z/x/y.png folders with png or jpg images for using on my website. Question: how to put this map into OruxMaps? Is it possible to enter TMS link (example.com/tile/%z/%x/%y.png)? I've seen "orux-map://" URL on openandromaps.org, is it possible to pack my set of tiles into ZIP and use this special URL? how to do it?



Thank you.


Hi,



Not sure if you want to use your map online from your server or offline from your device memory.



Both can be solved uding the oruxmaps/mapfiles/onlinemapsources.xml file adding a new source



http://my_hosting.com/cycle/{$z}/{$x}/{$y}.png



file:///sdcard/my_folder/{$z}/{$x}/{$y}.png





orux
Title: Re: How to put my custom tile-based map into OruxMaps? TMS?
Post by: Roman Shuvalov on March 17, 2015, 07:45:26 PM
Great, thank you! But what about "orux-map://" URL? Is it possible to create link that automatically add this line to onlinemapsources.xml?

Or somehow download all tiles for offline use and add my map to offline sources? like at here: http://www.openandromaps.org/en/downloads/europe ("Install on OruxMaps" link)