You wrote
>I tried to get a simple Alert with object.name, but got nothing from
>it. Could you please tell me, what's wrong? Need to get alert when
>mouse is over the red space.
>
>http://template.nktp.ru/download/googlemaps_2_1.php
>
I don't see the problem.
The first addoverlay alert is undefined, that's the GGeoXml overlay
itself and you also get undefined when you open the infowindow because
it doesn't have a .Name either. This is actually helpful because it
allows us to ignore them like this:
// If this is a named overlay
// (e.g. not the GGeoXml itself, or the infowindow)
if (overlay.name) {
...
}
--
Mike Williams
--
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.