The 7th or 8th chunk of code (one of the PHP files) was about the only
really insightful one I saw there.  The technique illustrated was to
first get all the points that COULD be mapped, then to scan through
them repeatedly so that you reduce thousands of points to a smaller
number.  This is done by putting them into 'buckets' or 'clusters'
where each bucket represents many points.  Finally, you send back the
small number of points to be mapped, using AJAX-style calling (of the
PHP script) from the client-side javascript.

As you zoom in on an area, the idea is you encounter a smaller and
smaller number of points that fit on the map, so eventually you should
be able to zoom to a level where the points are no longer clustered.
That's when the markers on their map change appearance.  The 'click'
event on the clustered markers zooms in and goes through the above
clustering algorithm.

It's too bad there is such a dearth of comments in that code, but they
ARE trying to get you to buy the book afterall.   There are a number
of options discussed here in this forum, including ClusterMarker and
MarkerManager.  Search for either of those and you will find a good
number of more detailed explanations/examples.


p00kie wrote:
> This topic seems to be something I'm looking for.
>
> Did anyone happen to find a solution to this? The website that
> grottocenter posted did not really help.
>
> Optimizing the loading of 20,000 markers is something I am looking
> for.
>
> On Oct 28, 10:35�am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
> > Hi folks !
> >
> > I found somethin' there :http://googlemapsbook.com/chapter7/ServerCluster/
> > I'm gona use it to enhance the loading time of my markers.
> > I've made some tests, it works good and take the same time toload20
> > 000 markers as toload30 makers...
> >
> > Thanks.
> > Cl�ment.
> >
> > On 14 oct, 19:19, Ralph Ames <[EMAIL PROTECTED]> wrote:
> >
> > > >I'm designing a web site based on Google Maps and I have a problem :
> > > >too many markers => largeloadtime !
> >
> > > Seems reasonable to me too.
> >
> > > Ralph
--~--~---------~--~----~------------~-------~--~----~
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