Marker off-set on Google Map API v3

后端 未结 4 1876
忘掉有多难
忘掉有多难 2021-01-01 20:54

I\'ve created a simple map with custom PNG markers. Is it possible to offset the attached PNG image? There does not seem to be any mention of an \'offset\' in the Google Ma

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-01 21:43

    The anchor option on the MarkerImage class lets offset the marker image from the middle center position on the marker's lat/lng:

    'anchor' overrides the position of the anchor point from its default bottom middle position

提交回复
热议问题