On Jan 8, 9:23 am, Pablo Azorin <[email protected]> wrote:
> Besides to get all the markets within the bounds of the map I think
> that TIA is wondering if possible to group the results by area.
>
> For example: if I have 500 points which are within the bounds of the
> map I would like to group the points / markers based on the zoom level
> because if I load 500 points within a region of the map, the client
> browser will collapse (too much markers).
>
> Look at this example:http://case-appartamenti.ebay.it/Milano/vendita
>
> Does someone have an idea how the ebay system works? Any suggestion? I
> think that somehow use the zoom level to group by area or region, but
> I am not sure if it uses the radio of each point. I don't really know
> and I would like to get your thoughts about it.

It is called clustering and is done by a clusterer.
http://groups.google.com/group/Google-Maps-API/search?group=Google-Maps-API&q=clusterer

>
> On Dec 22 2008, 9:42 am, "warden [Andrew Leach - Maps API Guru]"
>
>
>
> <[email protected]> wrote:
> > On Dec 22, 11:24 am, "David G." <[email protected]> wrote:
>
> > > I have a bunch of locators and need to load the markers depending on
> > > where I am, avoiding to load all the markers...
>
> > > Any suggestions?
>
> > map.getBounds() will return a GLatLngBounds() object containing the
> > visible area of the map, so you can get the lat and long of the edges.
> > Pass those values to your server-side script which delivers the marker
> > data so that it can restrict the markers to that area.
>
> > You may need to consider what happens when the map is moved, and you
> > could find that a marker manager is easier to use since a lot of the
> > work has already been written for you (but that does mean that
> > everything is done client-side).
>
> > Andrew- 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