Monday, 14 September 2015

javascript - Leaflet Routing Machine show option doesn't work


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

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...