I found some info on the Google blog post about the Marker Manager
release in 2007.

function setupMap() {
 if (GBrowserIsCompatible()) {
   map = new GMap2(document.getElementById("map"));
   map.addControl(new GLargeMapControl());
   map.setCenter(new GLatLng(41, -98), 4);
   window.setTimeout(setupWeatherMarkers, 0);
 }
}

function getWeatherMarkers(n) {
  var batch = [];
  for (var i = 0; i < n; ++i) {
    batch.push(new GMarker(getRandomPoint(),
      { icon: getWeatherIcon() }));
  }
  return batch;
}

function setupWeatherMarkers() {
  mgr = new GMarkerManager(map);
  mgr.addMarkers(getWeatherMarkers(20), 3);
  mgr.addMarkers(getWeatherMarkers(200), 6);
  mgr.addMarkers(getWeatherMarkers(1000), 8);
  mgr.refresh();
}

If you look at the section where they setup markers at the zoom
levels, you can see that they display 20 at level 3, 200 at level 6,
and 1000 at level 8.  Does that mean between zoom 3 and 6 it will only
show the 20 points?  Furthermore, if you are on a zoom less than 3,
will it not show any points?  I can't just plugin code and test where
I am.

On Oct 14, 9:20 am, Marcelo <[email protected]> wrote:
> On Oct 14, 4:48 pm, aidema <[email protected]> wrote:
>
>
>
> > I want to know how to only plot points when a user zooms into a
> > certain area.
>
> Here's an example:http://www.trails.com/trailfinder/browsebymap/?statecode=MI
>
> --
> Marcelo -http://maps.forum.nu
> --
>
>
>
> > I've been searching around and I think it would either be radius or
> > tiles but am not entirely sure.
>
> > Here is an example of exactly what I want to 
> > do:http://www.trails.com/trailfinder/browsebymap/?statecode=MI
>
> > When you load that first page, no pins appear, but when you zoom to an
> > area, all the sudden the plotted points appear.  Perfect!  And it's
> > fast too.- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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