flutter-mapbox-gl / maps

A Mapbox GL flutter package for creating custom maps
Other
1.04k stars 503 forks source link

Drag event on Line to update its details in Flutter #1336

Closed IndrajeetS closed 1 year ago

IndrajeetS commented 1 year ago

Discussed in https://github.com/flutter-mapbox-gl/maps/discussions/1331

Originally posted by **IndrajeetS** June 2, 2023 Is there a way to detect a drag gesture on a line and update its details? Currently, I can detect a tap gesture, but there doesn't seem to be an option to detect a drag gesture. Currently, I have implemented a solution where a new line is drawn every time a drag event occurs over an existing line. This is achieved by using a GestureDetector to capture the screen offset and converting it into LatLng coordinates. However, I believe this approach is not ideal and there may be a better solution available.
stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.