开发者

kml click issue

开发者 https://www.devze.com 2023-01-03 17:03 出处:网络
I have two kml files.One contains polygons for counties, and the other pins on the map. I need to show the polygons and on top the points.The pins need to show the pop ups when clicked.

I have two kml files. One contains polygons for counties, and the other pins on the map. I need to show the polygons and on top the points. The pins need to show the pop ups when clicked.

When i set it up with first loading the polygons and then the points, the points are not click-able and the pop-ups do not appear.

When it set it up the other way the poin开发者_JAVA技巧ts become click-able but they appear under the polygons

here is an example

pins are on top of the polygons and do not work http://dev.ppdtrainingevent.wsits.com/Content/index.html

pins are under polygons (might have to zoom in to see them) clicking usually works http://dev.ppdtrainingevent.wsits.com/Content/index2.html


The partial solution came down to combining the two kml files. After enabling preserveViewport the map pretty much worked ok. There was still a problem with balloons covering up pins and preventing clicks through transparent areas.

Finally i gave up and used V2. In v2 there are no problems.

0

精彩评论

暂无评论...
验证码 换一张
取 消