繁体   English   中英

Google Maps MarkerClusterer会忽略一些样式属性

[英]Google Maps MarkerClusterer ignores several styling properties

我正在使用Google Maps MarkerClusterer对地图标记进行聚类(谁会想到的!)。 我遇到的问题是某些样式属性不会影响标记。

这是可以使用的所有属性的列表http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclustererplus/docs/reference.html

属性heighttextSizetextColorurlwidth正常工作。 但是,当尝试更改fontWeight什么也没有发生。 我已经用这些道具试过了。

var styles = [[{
    url: imagePath,
    width: x,
    height: y,
    anchor: [0, 0],
    textColor: '#ffffff',
    textSize: 20,
    fontWeight: 100 // as well as `fontWeight: 'normal'`

}]];

但是仍然没有变化。 还有其他人有同样的问题吗?

在文档中,它说fontWeight值必须是一个字符串,但是您要发送一个数字。 您可以尝试fontWeight: '100'吗?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM