在多边形上加载kml标记 [英] Loading kml markers above polygon

查看:88
本文介绍了在多边形上加载kml标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用google map api 3,在我的地图上我想在多边形之后生成kml标记,但它不起作用,我的标记在多边形之前生成,所以我无法点击标记。

解决方案

原生Google Maps JavaScript API v3多边形始终会出现在KML图层之上。如果要控制订单,请使用KmlLayer来显示多边形,首先添加该图层或使用KmlLayers的zIndex属性控制订单。



相关问题: https://stackoverflow.com/questions/35455830/kml-ordering-in- google-maps-api (包括示例)

I am working with a google map api 3, on my map i want to generate kml markers after polygons, but it is not working, my markers are generate before polygons so i am not able to click marker.

解决方案

Native Google Maps Javascript API v3 polygons will always appear on top of KML layers. If you want to control the order, use a KmlLayer to display the polygon as well, add that layer first or control the order with the zIndex property of the KmlLayers.

related question: https://stackoverflow.com/questions/35455830/kml-ordering-in-google-maps-api (including example)

这篇关于在多边形上加载kml标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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