如何在 Google 地图中将标签定位在标记内?

How to position the label inside the Marker in Google Map?

如图所示,我的标签'150'严格位于中间。但我想向上移动一点。这可能吗? 请注意,我正在使用标记聚类。所以我必须使用 'Markers' 类型(如果我错了请纠正我)

查看the documentation for the Icon匿名对象:

labelOrigin
Type: Point
The origin of the label relative to the top-left corner of the icon image, if a label is supplied by the marker. By default, the origin is located in the center point of the image.

要移动标签,请将 Icon 的 labelOrigin 属性 设置为所需值。