Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Maps Best Practices?

We started using Google Maps on our web application rather extensively. It worked fine at the beginning, but as we add more markers we find that the performance are not quite there. Although I'm quite sure we don't use it in the most efficient way.

I am looking for information about Google Maps best practices and tips'n tricks. Any suggestions?

like image 335
Thierry-Dimitri Roy Avatar asked Apr 15 '09 14:04

Thierry-Dimitri Roy


2 Answers

You might find some good ideas in this article, which compares several methods of handling large amounts of markers.

Marker Manager has some limitations, depending on what you're trying to accomplish; for instance, it doesn't allow every marker to be available from every zoom level. I created a clustering function based on the principles discussed in this tutorial. It uses the Static Maps API in PHP, but the principles behind the clustering can be used however you want.

Update: This clustering utility was just released: MarkerClusterer

like image 68
Chris B Avatar answered Sep 29 '22 12:09

Chris B


Use Marker Manager.

like image 29
Diodeus - James MacFarlane Avatar answered Sep 29 '22 14:09

Diodeus - James MacFarlane