Skip to content Skip to sidebar Skip to footer

Google Maps Api V2 For Android: Marker And Polyline Position Mismatch

I'm trying to draw some markers and a polyline in the same map this way MarkerOptions options = new MarkerOptions(); Marker marker; PolylineOptions polyLineOptions = n

Solution 1:

The problem here is that by default, the pin location of the Marker is at the bottom center of the image.

You will have to fiddle with anchor(float, float) and / or make sure the sharp edge is the last pixel on the bottom center (with no transparent pixels below).

Post a Comment for "Google Maps Api V2 For Android: Marker And Polyline Position Mismatch"