I am adding route to the map and I want to hide instruction (turn left, turn right etc.) but I want to show them later. As I can see there is parameter show
for that. If I set show: false
I see white squares instead of istructions which is ok, the problem is that I can't show instructions then by clicking on that squares, no interaction with them at all.
L.Routing.control({
waypoints: [
L.latLng(54.736985, 55.980878),
L.latLng(54.732798, 55.969934),
],
show: false,
}).addTo(map)
There is nothing wrong here I guess. What can it be then?
No comments:
Post a Comment