Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No offline map? #325

Open
Zakalicious opened this issue Jun 19, 2020 · 2 comments
Open

No offline map? #325

Zakalicious opened this issue Jun 19, 2020 · 2 comments

Comments

@Zakalicious
Copy link

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

@madmath03
Copy link
Contributor

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
    }],

@Zakalicious
Copy link
Author

Thank you, very helpful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants