ZIndex集群 [英] ZIndex on Clusters

查看:109
本文介绍了ZIndex集群的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将自定义标签添加到地图中,以便标签在使用MarkerClusterer创建的群集顶部可见。我将标签的zindex设置为1000.如何在集群上设置zindex。我知道如何使用标记来完成,但不知道如何将zindex值应用于每个集群图标。我会很感激任何帮助。



谢谢,

G

解决方案

感谢您的提示。有它自己的工作:
var pane = this.getPanes()。overlayMouseTarget;

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

解决方案

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

这篇关于ZIndex集群的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆