Project-OSRM / osrm-frontend

Modular rewrite of the OSRM frontend using LRM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No offline map?

Zakalicious opened this issue · 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

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:
    layer: [{
    'Mapbox Streets': streets,
    'Mapbox Outdoors': outdoors,
    'Mapbox Streets Satellite': satellite,
    'openstreetmap.org': osm,
    'openstreetmap.de.org': osm_de
    }],

Thank you, very helpful!