-
-
Notifications
You must be signed in to change notification settings - Fork 860
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
Draggable Markers #21
Comments
not currently. This feature would involve other things too (like moving the map when the marker is at the edge) We could expose gesture detection handlers through the public API to make this work once https://github.com/apptreesoftware/flutter_map/issues/10 is added |
Sounds good! In case anyone finds this issue in the future: one workaround is to allow some sort of edit mode triggered by longpressing on a marker, where you then grab wherever the user next taps on the map and move the marker to that spot. |
If the |
This should be possible using the Plugin api, which exposes the full MapState object, and allows you write custom layers: https://github.com/apptreesoftware/flutter_map/blob/master/flutter_map_example/lib/pages/plugin_api.dart |
@avioli |
Is that feature (Draggable Marker) already implemented? If yes - any example hint how it might be used ? |
Not that I'm aware of. If someone would like to contribute an example I can re-purpose this issue for that. |
If anyone is still interested in this, I've started a draggable marker plugin over at https://github.com/ibrierley/flutter_map_dragmarker/ |
Is there an easy way to make markers draggable around the map? I tried with a GestureDetector and using onPanDown, but the problem is once the marker is released you get screen coordinates and not GPS coordinates.
The text was updated successfully, but these errors were encountered: