mmmm
mmmm

Reputation: 3938

Leaflet routing machine not working on mobile

I've been doing mobile app that should navigate user to specific points. I've been using leaflet routing machine to do this and everything works fine in browser, but after deploying it to phone, whole navigation disappears.

This one is in browser: This is how it looks in browser

This one is on phone: This is how it looks on phone

Have anyone had the same issue?

Upvotes: 0

Views: 887

Answers (1)

mmmm
mmmm

Reputation: 3938

So the problem was that routing machine was sending request to //router.project-osrm.org/viaroute and I had to change it to http://router.project-osrm.org/viaroute

Upvotes: 3

Related Questions