Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android MapView draggable marker

I would like to create a draggable marker in Android MapView (com.google.android.maps.MapView), exactly like this: http://koti.mbnet.fi/ojalesa/exam/draggable.html.

I've already got an overlay pointing to the location I want, but I'd like the marker icon to be draggable like in the above example. Is there something ready to use for this or is it necessary to implement the dragging logic myself?

like image 864
ketorin Avatar asked Jul 21 '26 19:07

ketorin


1 Answers

You need to implement the dragging yourself. Here is a sample project demonstrating drag and drop of an OverlayItem from an ItemizedOverlay.

like image 197
CommonsWare Avatar answered Jul 24 '26 09:07

CommonsWare



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!