I found a workaround.
Add this to your label in the <style> section
<BalloonStyle><text>TEXT</text></BalloonStyle>
You will be able to access this value after clicking on .js callback as
event.featureData.info_window_html
So in your KML file
<Placemark id="MapZoneID_23443"> <BalloonStyle><text>TEXT</text></BalloonStyle> ... </Placemark>
And in javascript
google.maps.event.addListener(kmlLayer, 'click', function(event) { var content = event.featureData.info_window_html; console.log(content); });
xy
source share