Answer the question
In order to leave comments, you need to log in
How to make your own offline map with geographic coordinates?
Hey!
The task arose to make an offline map of the area with the display of markers and geometric shapes on it according to real geographical coordinates.
I found the necessary map of the area on the net, an excellent mapping library leaflet.js, a database of the required coordinates.
The problem arose with how to bind your map to geographic coordinates.
All the googled examples, unfortunately, are based on the creation of maps without reference to the real area.
______________________________________
SOLUTION
1. go to extract.bbbike.org/, select the desired area on the map, specify your email, OSM XML format, click extract and after a while we receive an XML file by mail:
2. install Maperitivemaperitive.net
3. load the XML into Maperitive and write generate-tiles maxzoom=N in the console (faq on the commands wiki.openstreetmap.org/wiki/RU:Maperitive_book#generate-tiles)
4. fasten the resulting titles to leaflet.js
5. a bunch of tags are output by the PruneCluster plugin or others
6. profit!
Thanks to ittim for this post How to use Leaflet offline?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question