osrm-frontend
osrm-frontend copied to clipboard
No offline map?
I have installed the Docker osrm-backend and frontend. I can generate a route with the front-end when I am offline, but I do not see a map. Where do the tiles come from? What can i do to see a map? Thanks
Hi @Zakalicious
The tiles are downloaded from external services such as MapBox, tile.openstreetmap.org and tile.openstreetmap.de. So the OSRM frontend needs to be online.
If you wish to work offline, I guess you need to :
- create your own local tile server: https://github.com/Overv/openstreetmap-tile-server
- configure to use your own tile server: https://github.com/Project-OSRM/osrm-frontend/blob/7466ebadef54a45d01a8e64944d757bc62646284/src/leaflet_options.js#L35-L41
Thank you, very helpful!