highlight a polygon while on click using kml

后端 未结 2 551
星月不相逢
星月不相逢 2021-01-26 02:41

I am using kml file to draw polygons in google map. I am setting click events for those polygon which is working. Now I want the clicked polygon to be highlighted. I had tried t

2条回答
  •  清歌不尽
    2021-01-26 03:32

    If you are using KmlLayer (a guess), you can't change the properties of the Polygons. If you use a third party KML parser like geoxml3. Here is a link to that.. http://developers.cloudmade.com/projects/web-maps-api/examples/kml-and-geo-rss

提交回复
热议问题