【发布时间】:2014-05-11 00:44:45
【问题描述】:
我正在使用 Google Maps MarkerClusterer 对地图标记进行聚类(谁会想到!)。我遇到的问题是,某些样式属性不会影响标记。
这里列出了所有可以使用的属性http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclustererplus/docs/reference.html
height、textSize、textColor、url 和 width 属性可以正常工作。但是当试图改变fontWeight 时,什么也没有发生。我已经用这些属性进行了尝试。
var styles = [[{
url: imagePath,
width: x,
height: y,
anchor: [0, 0],
textColor: '#ffffff',
textSize: 20,
fontWeight: 100 // as well as `fontWeight: 'normal'`
}]];
但仍然没有任何变化。还有其他人有同样的问题吗?
【问题讨论】:
-
没问题,你能做一个小提琴吗?
-
当然。 jsfiddle.net/j4vft/1我刚刚把“有趣”的东西贴在那里。希望够了。
标签: javascript css google-maps google-maps-api-3 markerclusterer