> The kml file has markers all over the planet, I'm wondering if I can
> restrict it to only pulling in markers within the current viewport of
> the map, or within say 50 miles of a given point. Any ideas?

Not sure what you mean here.
The KML file is the KML file; to find out if any of the placemarks are
in some given zone, you'd have to read through all the placemarks in
the file.
But having done that, it would be simple enough to only plot the ones
in the zone.

An easy way to get the effect, is to just let GeoXml do its thing and
then centre/zoom the map on your area of interest.  You'll only see
what's in the map view and not the other markers in the rest of the
world.  But they'll come into view if the user zooms or moves around.

That might not be very effective if the real problem is that hundreds
of markers are impacting performance.  If that's your issue, consider
either weeding out the source data  (the KML) or using a
markermanager.  Example -
http://groups.google.com/group/Google-Maps-API/browse_thread/thread/74fe48cd64b1c8be/38ebc7ae30c9f4b3?lnk=gst&q=geoxml+markermanager#38ebc7ae30c9f4b3

There are cleverer ways of doing things server-side, but it sounds
like you are using a fixed KML file.

cheers, Ross K
--~--~---------~--~----~------------~-------~--~----~
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