mapbox-gl-directions icon indicating copy to clipboard operation
mapbox-gl-directions copied to clipboard

setOrigin and setDestination on click

Open imnotabr opened this issue 3 years ago • 1 comments

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?

imnotabr avatar May 31 '21 01:05 imnotabr

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?

imnotabr avatar May 31 '21 03:05 imnotabr