Google地图:在markerclusterer上方渲染标记 [英] Google Maps: Render marker above markerclusterer

查看:278
本文介绍了Google地图:在markerclusterer上方渲染标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一组标记可以聚集在我的地图上。
另一组标记单独显示,我碰巧需要在集群上方显示这些标记。
我尝试在簇选项对象中设置zIndex,低于第二组标记,但无济于事。
任何想法如何去解决这个问题?

I have a set of markers that get clustered on my map. Another set of markers are displayed individually, and i happen to need these to be displayed above the clusters. I have tried setting zIndex in the clusters options object, lower than that of the 2nd set of markers, but to no avail. Any idea how to go about this?

推荐答案

据我所知,这是无法完成的。

As far as I know this can't be done. The clusters reside in higher pane than the marker image.

https://developers.google.com/maps/documentation/javascript/reference#MapPanes

这篇关于Google地图:在markerclusterer上方渲染标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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