Android Maps API v2 Marker with custom drag-and-drop transitions

I have a Google Maps Android v2 API, which I set to bind to 0.5 / 1.0. Simple marker placement works great. The problem is that I am dragging the marker, the first time it jumps up and left up to about the height of the image (1.0) and half the width (0.5). It seems that the Google drag and drop code does not account for custom anchors.

mMap.addMarker(new MarkerOptions().draggable(true) .icon(BitmapDescriptorFactory .fromResource(R.drawable.blue_flag)) .anchor(0.5f, 1.0f) .position(endPosition)); 

Has anyone seen this? Sounds like a bug in the drag and drop algorithm.

+7
source share

All Articles