集群上的 ZIndex

发布于 2025-01-06 10:27:36 字数 173 浏览 4 评论 0原文

我正在尝试将自定义标签添加到地图,以便标签在我使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

不寐倦长更 2025-01-13 10:27:36

谢谢你的提示。我自己让它工作:
var pane=this.getPanes().overlayMouseTarget;

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

雅心素梦 2025-01-13 10:27:36

您可以尝试将自定义标签添加到位于集群上方的地图窗格中。
请参阅 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文