ZIndex on Clusters

耗尽温柔 提交于 2019-12-07 19:31:51

问题


I am attempting to add custom labels to a map such that the labels are visible on top of the clusters I created using MarkerClusterer. I set the zindex of the labels to 1000. How do I set a zindex on a cluster. I know how to do it with a marker but am not sure how to apply a zindex value to each of my cluster icons. I'd appreciate any help with this.

Thanks,

G


回答1:


Thanks for the hint. Got it to work myself: var pane=this.getPanes().overlayMouseTarget;




回答2:


You could try to add your custom labels to a map pane that sits above the clusters. See http://code.google.com/apis/maps/documentation/javascript/reference.html#MapPanes



来源:https://stackoverflow.com/questions/9330802/zindex-on-clusters

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!