flutter_map_dragmarker icon indicating copy to clipboard operation
flutter_map_dragmarker copied to clipboard

Add preservePosition option to DragMarker

Open invpt opened this issue 2 years ago • 3 comments

Would resolve #21. I realized that this option would be super easy to implement without losing any of the flexibility offered by allowing users to pass through a Key.

Let me know if you prefer a different name than preservePosition. Also not sure if the && !isDragging is necessary.

invpt avatar Sep 13 '22 18:09 invpt

Thanks for this, it sounds good initially and preservePosition sounds fine.

I had played with using keys last weekend hoping to simplify things, but kept hitting problems when integrating with another plugin that swaps orders of dragMarkers, but maybe I can hack something with onPanUpdate there.

Thanks again, it may be a few days before I get chance to test properly.

ibrierley avatar Sep 13 '22 20:09 ibrierley

Thanks for this, I think this looks good. I think there's a weird bug with web, where markers can vanish oddly (if they scroll the edge of the screen). However, I'm pretty sure this isn't related to your PR at all, but I may try and see if I can figure what's causing it before merging.

ibrierley avatar Sep 23 '22 07:09 ibrierley

Hi guys, any update on this PR?

ytneu avatar May 27 '24 08:05 ytneu