Loading kml markers above polygon

坚强是说给别人听的谎言 提交于 2020-01-06 12:45:25

问题


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.


回答1:


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)



来源:https://stackoverflow.com/questions/27896861/loading-kml-markers-above-polygon

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!