Morris
Morris

Reputation: 177

Google Maps Android polylines are not crossing the center of markers

enter image description here

From the image, the Polylines are touching the center bottom of the Markers. I need the Polylines to touch the center of the Marker.

Upvotes: 1

Views: 240

Answers (1)

Wesely
Wesely

Reputation: 1475

You have to set the anchor of your marker by calling

marker.setAnchor()

The position at which to anchor an image in correspondence to the location of the marker on the map. By default, the anchor is located along the center point of the bottom of the image.

official doc

Upvotes: 3

Related Questions