mapbox-gl-directions
mapbox-gl-directions copied to clipboard
setOrigin and setDestination on click
The default behavior for the directions feature is that it sets an origin and a destination for the directions where you click when you click on the map layer. I want to disable this feature.
How do you turn it off?
If you comment out function _onSingleClick(e) {} in mapbox-gl-directions.js it disables the feature.
But is there another approach to disable it without modifying the JS file?