java - Start marker drag event as soon as marker is placed in Android google maps -


i create marker , place on map on long press. problem have have lift finger, long press marker again (though didn't press marker first time map), , able drag it. default functionality , works fine.

what prefer able start dragging on first long press of map when lay marker down. wondering if there way manually fire drag event marker snaps finger position created , can dragged , placed want it.

here relevant code, thanks!

googlemap gmap;  @override public void onmaplongclick(latlng latlng) {     markeroptions markeroptions = new markeroptions().position(latlng)             .title(null).draggable(true);     gmap.addmarker(markeroptions);     //i able start dragging marker here } 

here's promising thing find on programmatically triggering event, see if works dragstart. if not, can check https://code.google.com/p/gmaps-api-issues/ , file feature request if 1 doesn't exist already.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -