在多边形上加载kml标记 [英] Loading kml markers above polygon
问题描述
我正在使用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屋!