{"id":1086,"date":"2022-08-30T15:12:09","date_gmt":"2022-08-30T15:12:09","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/google-map-kml-layer-click-event-return-zero_results-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:12:09","modified_gmt":"2022-08-30T15:12:09","slug":"google-map-kml-layer-click-event-return-zero_results-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/google-map-kml-layer-click-event-return-zero_results-collection-of-common-programming-errors\/","title":{"rendered":"Google Map KML layer &#8211; click event return ZERO_RESULTS-Collection of common programming errors"},"content":{"rendered":"<p>Re-created your code in a fiddle: http:\/\/jsfiddle.net\/mdares\/TAfys\/<\/p>\n<p>I cannot replicate the issue you are having. Can you provide an example given the above link of where it fails? Is this possibly browser specific? Finally &#8211; is there any additional code you haven&#8217;t posted which might be the cause? My code is unchanged from yours as you posted, but I am curious if you are also doing other things:<\/p>\n<pre><code>function initialize() {\nvar mapOptions = {\n    center: new google.maps.LatLng(41.875696, -87.624207),\n    zoom: 11,\n    mapTypeId: google.maps.MapTypeId.ROADMAP\n}\nvar map = new google.maps.Map(document.getElementById(\"map_canvas\"), mapOptions);\n\nvar ctaLayer = new google.maps.KmlLayer('https:\/\/sites.google.com\/site\/anoopkml123\/kml\/ab9Plan0520.kmz');\nctaLayer.setMap(map);\ngoogle.maps.event.addListener(ctaLayer, 'click', function (kmlEvent) {\n    alert(kmlEvent.featureData.name);\n   });\n}\n<\/code><\/pre>\n<p id=\"rop\"><small>Originally posted 2013-11-09 23:22:20. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>Re-created your code in a fiddle: http:\/\/jsfiddle.net\/mdares\/TAfys\/ I cannot replicate the issue you are having. Can you provide an example given the above link of where it fails? Is this possibly browser specific? Finally &#8211; is there any additional code you haven&#8217;t posted which might be the cause? My code is unchanged from yours as [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1086","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1086","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1086"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1086\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1086"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1086"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1086"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}