Wasn't it Aleske A. Evdokimov who wrote:
>
>Hi all.
>
>At first, please consider http://satbeams.ttalex.com/footprints?beam=5267
>as context of my question.
>
>Now the question.
>
>We have a need to retrieve <Placemark>'s <name>, which is loaded from
>KML file via GGeoXml, when user clicks it.
>
>The only way to do so (as we found in API Reference) is
>1. to listen the "infowindowopen" event,
>2. then use GInfoWindow's getContentContainers(),
>3. parse HTML and retrieve the <Placemark>'s <name>,
>4. then closeInfoWindow().
>
>It is ugly.

You can improve on that slightly by listening for
"infowindowprepareopen" instead of "infowindowopen".

"infowindowprepareopen" was previously a documented function at one
time, but it isn't now. I don't know what implications that has for
futureproofness.

      GEvent.addListener(map,"infowindowprepareopen", function(iwtabs) {
        var content = iwtabs[0].contentElem.innerHTML = "";
        ... // extract <Placemark> name from contents
        setTimeout("map.closeInfoWindow()",0);
      });

>And the whole problem is much worser.
>
>After we retrieve <name>, we place the GMarker on clicked point. Later
>user can direct us to load new KML file via GGeoXml, but after new
><Placemark> is loaded, we cannot programmatically trigger
>"infowindowopen" event on a <Placemark> just UNDER GMarker.

I've absolutely no idea what you mean.


-- 
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to