Optimize marker movement in Maps

5

I've been working with an application where I add a Marker on the map, where it looks like:

markUser.draggable(true);

But I want to optimize this method, to move the marker is necessary to hold for a while, I want with a single click to drag it and that it is well under the person's finger and not above or below how it happens. Like the Taxis app, 99taxis.

    
asked by anonymous 26.02.2015 / 16:38

1 answer

1

Take a look at this project . They reimplementated the use of marker with drag and drop .

Another option is to implement the onMapClick method of the OnMapClickListener interface and in it you add a marker . Take a look at this link . Notice that adding the marker is in LongClick , but I believe nothing prevents you from implementing this in Click instead of LongClick .

    
25.04.2015 / 00:19