Wasn't it HIC who wrote:
>What i could like to do is create a link from the tabular information
>to the map/overlay so that it zooms into the area on the map when you
>click on the tabular information. Same functionality as the sidebar
>links, but without the sidebar per se. I reviewed the "GGeoXml with
>sidebar" tutorial but i don't want to use the sidebar as i have the
>table already displayed. Has this been done/is this possible?

You might think that you could use that technique to capture references
to the KML object, capture the overlay reference with
        goverlays.push(overlay);
and then just not display the sidebar, but perform
        GEvent.trigger(goverlays[i], "click");
from your table.

There's only one slight problem with that. If you use GGeoXml, the
overlays don't arrive in order. So the overlay that is goverlays[2] when
you open your page the first time might be goverlays[4] the next time
you open your page.

One way round that would be to use GeoXml or EGeoXml instead of GGeoXml.
They do preserve the order.

Another approach would be to place a key in one of the fields that
GGeoXml passes you. E.g. <snippet>
        goverlays[overlay.snippet] = overlay.
...
        GEvent.trigger(goverlays["My House"], "click");

Warning: This trick relies on undocumented details of the GGeoXml
behaviour. It may well fail to work in future releases.

-- 
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