Google Maps: PHP & MySQL & Clustering

2,296 views
Skip to first unread message

PartyPanda

unread,
May 13, 2011, 3:20:59 PM5/13/11
to google-map...@googlegroups.com
I have managed to setup my Google Map using PHP and MySQL based on this tutorial here.. http://code.google.com/apis/maps/articles/phpsqlajax.html. The problem is the map will have tens of thousands of markers all over the world so I need something which will cluster my markers into small areas. I have looked at a few clustering tools but I don't know how they integrate with php and mysql.
 
Can someone advise my where to start.
Thanks

davie

unread,
May 13, 2011, 3:42:35 PM5/13/11
to Google Maps JavaScript API v3
Hi
http://www.geocodezip.com/v3_GoogleEx_markerclusterer_unclusterB.html
Regards Davie

On May 13, 8:20 pm, PartyPanda <partypand...@googlemail.com> wrote:
> I have managed to setup my Google Map using PHP and MySQL based on this
> tutorial here..http://code.google.com/apis/maps/articles/phpsqlajax.html.
Message has been deleted

geoco...@gmail.com

unread,
May 13, 2011, 4:01:11 PM5/13/11
to Google Maps JavaScript API v3
On May 13, 12:46 pm, PartyPanda <partypand...@googlemail.com> wrote:
> Thanks Davie
>
> Those markers appear to be placed on by javascript.
> Would the same clustering technique work using the mysql / xml data?

This example uses xml and clustering:
http://www.geocodezip.com/v3_MW_example_map3_clustered.html

For large numbers of markers you may want to investigate creating
tiles on the server, the performance of the map will probably not be
acceptable if you cluster them in the client.

-- Larry
Message has been deleted
Message has been deleted

PartyPanda

unread,
May 13, 2011, 5:29:46 PM5/13/11
to google-map...@googlegroups.com
Thanks for that Larry.
 
The problem with the above solutions is that they are only good for up to abour 3000 markers otherwise they hang the browser. I am looking for a LOT more, possibly over 50,000 which means I guess some kind of server-side clustering is going to have to be used. I am actually looking for something almost identical to this website... http://www.marinetraffic.com/ais/. I also need some kind of filtering, also used on this website.
 
Any ideas where I can find something like this?
Reply all
Reply to author
Forward
0 new messages