-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
change "drag a point" example to use Marker #6102
Comments
Since this would require doing much of the work for #3087 (Add "draggable" property to "Marker" class), it's probably best just to do that. Then the example is a one-liner. |
I'd love to take this on, I got really familiar with I agree @jfirebaugh, this would make it really easy for people to use. If it checks out, I can totally include docs for the changes in the PR with a simple example and explanation. Exposing a |
Hi I was looking into this a bit over the weekend and wanted to get feedback on two possible routes to take for adding dragging behaviors to marker points, I've looked into both routes but wanted to check in and get feedback on my approach. option 1: A dedicated
|
Performance isn't great on https://www.mapbox.com/mapbox-gl-js/example/drag-a-point/ and this is a pain point for users (#2334 (comment)). Using
Marker
would drastically simplify the code in the example and have better performance because we wouldn't be usingsetData
to change the location.The text was updated successfully, but these errors were encountered: