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?
Google-maps – Retrieving “inactive” infowindow HTML in Google Map
google-maps
Related Question
- Javascript – Google Maps API and KML File LocalHost Development Options
- Google-maps – Google Map API V3: How to add Custom data to markers
- Android – LogCat message: The Google Play services resources were not found. Check your project configuration to ensure that the resources are included
- Javascript – Google Maps & JavaFX: Display marker on the map after clicking JavaFX button
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.