I want to have tiles available for and offline web-app (local server). However the overlay of POIs will change occasionally. Furthermore, I need to draw routes (vector lines) on the map in real-time based on updating data from the db. Is this possible? asked 20 Feb '11, 07:00 Lee |
Yes it's possible. OpenLayers (a popular slippy map javascript library) can be downloaded and run locally, hence on openlayers.org you see a "Link to the hosted version" and a download link. You want to download. And when you come to invoke it with a Likewise for the tileset. Rather than having OpenLayers point at a tileset on a remote server (the normal setup) you would point it at relative tile URLs. You then need tile images arranged in a standard directory structure on your local disk. You might come by these tile files by downloading them from someone else's tile server, e.g. using tile downloader software, but this approach tends to be problematic for the source server, if you're downloading more than a couple of hundred tiles (a large area of map or several zoom levels). A better thing to do (and much more flexible and fun!) is Creating your own tiles (various approaches) Once you've got a directory full of tiles, and figured out how to initialise OpenLayers to the right part of the world... it will happily all work from your local machine, or on webserver on a local network, with no internet connection. This a unique advantage of OpenStreetMap. Google maps and other providers do not allow their maps to be used in this way. answered 21 Feb '11, 15:55 Harry Wood |
It all depends on what you want to do, and what you have: one way would be to:
But I have not seen any tools for updating this in realtime, I'm not entirely sure there are standard tools for that, except just reloading all the features. answered 20 Feb '11, 08:28 emj |
How big is this area you are talking about, how many routes, and what database?