hello, i got some issue with finding javascript api for loading maps(marks,layers etc..) that works offline. Therefore i decided to looking for another way to do it. and here comes you help , i need you to help me understands how can i gather maps(somehow). than using a generic js api , that uses online maps but instead of using the online maps , ill use my own maps that i gathered. i hope you can help me figure it out. asked 16 Oct '15, 22:35 elad159 Frederik Ramm ♦
showing 5 of 7
show 2 more comments
|
Both Leaflet and OpenLayers can perfectly work offline. Can you explain your problems in more detail? And what are you actually planning to do?
well ill try to explain it better,
my big problem is that i need to work offline, it mean no internet connection is on. most of the libraries works online.
i was thinking about some ways to go through this problem. maybe by using an online api, but instead of using the online maps, ill try to find a way to download the maps, and then use them offline.
and that why i need your help , to help me understand how can i do it properly..
With regard to tile-based maps, like @scai said the commonly-used libraries can work offline. I did a quick-and-dirty example a couple of years ago over at https://github.com/SomeoneElseOSM/OSMembedded . I'm not sure why you need to "gather" maps - just download the data and create your own. See https://switch2osm.org/serving-tiles/ for more details about that.
Other non-tile-based options include the vector-based OsmAnd maps (download the code and have a look at what it does if you're interested in that). Maps.me (a version of which has been recently open-sourced) also used vector-based maps.
Also see https://github.com/mapbox/mapbox-gl-cocoa/issues/62 for a discussion of Mapbox vector tiles offline.
well about the gathering, i wanna download a free maps , and not making one by my self. there is a free map providers? with a good tiles in it , like google map ?
Currently there are no pre-rendered tiles available for downloading (at least not that I know of) so you have to render them yourself, that's what SomeoneElse was talking about. I think you should start over again and clearly list your requirements and the things you are planning to do. Currently this is all very vague, making it difficult to help you.
okay about the offline library i think i will use leaflet very easy api + working very well.
so my new list is:
1)i need pre-rendered tiles available(offline) - maybe pre downloading somehow.
2)if it impossible i need to know how can i render it by my self.
@elad159: just search this help page for your new questions. I am sure you will find old questions (and answers) about this. If you cannot find, then ask new questions please. This makes this help site most efficient for everybody.