Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setOrigin and setDestination on click #275

Open
imnotabr opened this issue May 31, 2021 · 1 comment
Open

setOrigin and setDestination on click #275

imnotabr opened this issue May 31, 2021 · 1 comment

Comments

@imnotabr
Copy link

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
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant