[英]Google Maps MarkerClusterer ignores several styling properties
我正在使用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'`
}]];
但是仍然沒有變化。 還有其他人有同樣的問題嗎?
在文檔中,它說fontWeight值必須是一個字符串,但是您要發送一個數字。 您可以嘗試fontWeight: '100'
嗎?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.