Hi there, when I put how to get between two points and I insert it on my website, the route cannot be seen, I see the empty map without the route that I previously traced, can you help me?
This question is marked "community wiki".
|
Hi. AFAIK, you can't do that with openstreetmap.org. It seems to be possible with facilmap, here is the doc to embed a custom map in your website. Some routers might offer the same functionality, but I don't know. Otherwise, you could just export the route as GPX, using the router of your choice, and then display that GPX on top of a map (there's a number of leaflet plugins to do just that). Calling a routing service at each visit on your website for a route that never changes seems a bit overkill. Regards. |