It looks like GGeoXml has no way to access how many or NONE markers it
has rendered.

http://code.google.com/apis/maps/documentation/reference.html#GGeoXml

You could try EGeoXml from here:
http://econym.org.uk/gmap/egeoxml.htm

Use it as the tutorial suggests but once it has triggered a 'parsed'
event you can find out how many markers it has created.

Say you create an instance and wait for it's 'parsed' event:

var exml; // make exml a global variable

exml = new EGeoXml("exml", map, "test001.xml");

GEvent.addListener(exml, 'parsed', function(){
 if(exml.gmarkers.length===0){
  // here you can take action when no markers are created
 }
});

Martin.


On 9 July, 15:58, nemesis256 <[email protected]> wrote:
> My code is basic:
> riders = new GGeoXml(url);
> map.addOverlay(riders);
>
> I'm generating the xml myself, and pulling out coordinates from a
> database.  When GGeoXml comes back (riders variable) how can I tell if
> I have any points or not?  If I do not have any points in that
> variable I want to zoom out and try again by sending some new
> boundaries.
--~--~---------~--~----~------------~-------~--~----~
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