osrm-frontend icon indicating copy to clipboard operation
osrm-frontend copied to clipboard

No offline map?

Open Zakalicious opened this issue 5 years ago • 2 comments

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

Zakalicious avatar Jun 19 '20 06:06 Zakalicious

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 :

  1. create your own local tile server: https://github.com/Overv/openstreetmap-tile-server
  2. configure to use your own tile server: https://github.com/Project-OSRM/osrm-frontend/blob/7466ebadef54a45d01a8e64944d757bc62646284/src/leaflet_options.js#L35-L41

madmath03 avatar Oct 05 '20 16:10 madmath03

Thank you, very helpful!

Zakalicious avatar Oct 05 '20 23:10 Zakalicious