You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I find leaflet very helpful into my project and I am using waypoints into my current project. Before it is working but now I'm having this kind of problem ("Number of elements in hints size 1 does not match coordinate size 2")
The problem come from the hints request parameters.
When I remove it, I got this https://router.project-osrm.org/route/v1/driving/85.316,27.67;85.321,27.68?overview=false&alternatives=true&steps=true; which works
Now, what does that parameters means and how to set it up?
Hello Mael,
That information is very helpful, however I am using the leaflet routing
library and from that library it calls the url
https://router.project-osrm.org/route/v1/driving/85.316,27.67;85.321,27.68?overview=false&alternatives=true&steps=true
;
so I am abstracted inside waypoints, I don't know how the waypoints
formulate that url. I was thinking that maybe there is a property inside
the waypoint that I can ignore the hints. like this;
L.Routing.control({
waypoints: [
L.latLng(14.535084399999999,121.0724896085969 ),
L.latLng(14.536184399999999,121.0523896085969 ),
hint: false
]
}).addTo(this.map);
And by the way, bellow is my existing code. you will see that I am using
the leaflet routing library. I wish you could help me to ignore the hints
[image: image.png]
thank you :)
Hello guys,
I find leaflet very helpful into my project and I am using waypoints into my current project. Before it is working but now I'm having this kind of problem ("Number of elements in hints size 1 does not match coordinate size 2")
Bellow is my code;
L.Routing.control({
waypoints: [
L.latLng(14.535084399999999,121.0724896085969 ),
L.latLng(14.536184399999999,121.0523896085969 )
Hope you can help me.
Thanks very much
The text was updated successfully, but these errors were encountered: