Cri*_*mix 4 google-maps-api-3 google-maps-markers markerclusterer
我使用MarkerClustererPlus在谷歌地图上集群标记(v3)
有没有办法用函数切换聚类.即我不会影响标记,但只切换群集图标的可见性.
为了显示它我们有属性 - 重绘,但我找不到隐藏群集的属性.
设置markerClusterer的map-option
clustererObject.setOptions({map:null});//hides the clusterIcons
clustererObject.setOptions({map:mapObject});//restores the clusterIcons
Run Code Online (Sandbox Code Playgroud)
注意:当您将地图设置为null时,所有聚集标记都将显示为标记,我不确定这是否是所需的行为
| 归档时间: |
|
| 查看次数: |
1679 次 |
| 最近记录: |