【发布时间】:2018-03-14 14:16:21
【问题描述】:
我得到以下代码:
var options = {
styles: [
{
url: 'assets/images/marker/m1.png',
height: 37,
width: 25,
anchorText:[0,-150],
},
{
url: 'assets/images/marker/m2.png',
height: 37,
width: 25,
anchorText:[0,-150],
},
{
url: 'assets/images/marker/m3.png',
height: 37,
width: 25,
anchorText:[0,-150],
},
{
url: 'assets/images/marker/m4.png',
height: 37,
width: 25,
anchorText:[0,-150],
},
{
url: 'assets/images/marker/m5.png',
height: 37,
width: 25,
anchorText:[0,-150],
}
],
maxZoom: 10
};
我读到anchorText可以在x或y方向(以像素为单位)移动簇内的数字,但不知何故它没有。
为此,API 中再次发生了变化?
【问题讨论】:
标签: javascript google-maps google-maps-api-3 markerclusterer