You could listen for map "addoverlay" events.
The awkward thing is working out the timing. There's be one "addoverlay"
for the GGeoXml call itself. I guess that if you only see one such event
between issuing the addOverlay(ggeoxml) call and receiving its
completion callback, then there were no contents. You'd need to
experiment a bit to see if that's exactly what happens.
If the KML generator script is in the same domain, you could
GDownloadUrl it and count the <Placemark>s.
if (xmlDoc.documentElement.getElementsByTagName("Placemark").length==0)
That's a bit inefficient because the KML gets fetched twice, once to the
Google server and once to the browser.
--
Mike Williams
http://econym.org.uk/gmap
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---