Google-maps – Retrieving “inactive” infowindow HTML in Google Map


I'm using Google Maps API v2 and Geoxml to produce a map which is retrieving content. It is nice and easy to get to the marker array in a Geoxml instance (instancevar.overlayman.markers) which contains the properties and methods of the markers. What I can't tell is how to get to the string of HTML that appears when the click method on the marker is activated. I can use JavaScript to activate the method, and I know that the openWindowInfoHtml method is defined when processing the KML/GeoRSS with the appropriate information. Is that information available somewhere in the runtime insances of the markers? Or, if not, where is it defined?

Best Solution

There is nothing in the API to get the html. Having a look at the Geoxml source it is just calling openInfoWindow from the click event (passing in the html at that point), so I don't think you can get it that way.

You could modify the Geoxml source to associate the html with the GMarker when it creates it, but this isn't going to be trival as there isn't a single spot in the library to do this.