ibrierley / flutter_map_dragmarker

A drag marker for flutter_map
BSD 3-Clause "New" or "Revised" License
54 stars 37 forks source link

anchorPos makes no difference to dragmarker position #1

Closed benneca closed 3 years ago

benneca commented 4 years ago

I can change the marker anchorPos and the marker is always anchored in the center. I can see that the offset is handled in the dragmarker.dart, but it makes no difference. Any idea of how to get the anchorPos to be utilized? I am trying to add a rotation element to the draggable marker and I need the origin to be at the bottom center.

ibrierley commented 4 years ago

Can you just post how you are using it...and have you tested using feedbackoffset (i.e is there any offset when dragging, or is it when static or both) ?

jstnwang0 commented 3 years ago

I've noticed this too. If you place a draggable marker and zoom out, the center always remains on the same spot on the map, no matter what anchorPos is.

ibrierley commented 3 years ago

Do you want to try it now (I assume you're using dragmarket.dart and not the dragmarker_widget as that was designed more for some old code, but I can change that as well if necessary).