集群上的 ZIndex
我正在尝试将自定义标签添加到地图,以便标签在我使用 MarkerClusterer 创建的集群顶部可见。我将标签的 zindex 设置为 1000。如何在集群上设置 zindex。我知道如何使用标记来完成此操作,但不确定如何将 zindex 值应用于每个群集图标。我将不胜感激任何帮助。
谢谢,
G
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
谢谢你的提示。我自己让它工作:
var pane=this.getPanes().overlayMouseTarget;
Thanks for the hint. Got it to work myself:
var pane=this.getPanes().overlayMouseTarget;
您可以尝试将自定义标签添加到位于集群上方的地图窗格中。
请参阅 http://code.google.com/apis/maps/文档/javascript/reference.html#MapPanes
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