I am working on a project in which i'll need to use openstreetmaps and leafletjs. We'll be needing the full map details of a specific country (cities, roads, etc..), along with the a general drawing of rest of the world (country borders, etc..). Since this project should only be accessed within the organization, we can't use links to add an osm layer, and so one possible solution is to download the map. I've found a few downloads, yet I'm not sure they're what I am looking for, and since I'm using leaflet, GeoJSON format gave me great results, I couldn't find a GeoJSON download. With all this in mind, is it possible for me to download the full details of a country, along with a general drawing of the rest of the world (and possibly) in GeoJSON? I am new to maps, so I apologize for anything out of the ordinary in my questions! asked 11 Apr '16, 06:03 mabuodeh aseerel4c26 ♦ |
What you most likely want to do is to set up a tile server along the lines of the instructions in http://www.switch2osm.org/ - this will let you download raw OSM data and serve it internally in the form of ready-made map tiles. No GeoJSON involved. You will download the country you're interested in and load that into your database, and you will get a couple of shape files from naturalearthdata.com to cover the world at low zoom levels. You will have to modify the default map style ("OSM Carto") slightly, to make use of these shape files - earlier versions of OSM Carto did that by default (use shapefiles for low-zoom country boundaries and place names) but meanwhile OSM Carto relies more on OSM data, and you're not going to load OSM data for the whole world (that would require an unnecessarily big server). You might also want to look at other map styles like "OSM Bright" that might come with more shape files "built in". answered 11 Apr '16, 06:44 Frederik Ramm ♦ |
In addition to Frederik's doityourself approach, there are companies who can sell you a set of prerendered tiles to your liking. Depending on how frequently you want to get map updates, this can end up being cheaper than the employee time and server cost to maintain your own deployment. answered 11 Apr '16, 11:16 Vincent de P... ♦ |
I am working on similar requirement, may help someone. answered 30 Nov '16, 04:33 Gagan |