MarkerClusterer - Optimal Method for Handling large amounts of Data in the Google Map APIThis library, which is written by Xiaoxi Wu and is part of the Google Maps Open Source Utility Library is easy to use and shows excellent performance. Like some of the other libraries it reduces the number of visible markers by clustering them together making it easier to get an overview. Watch the image below to see how. Image by Xiaoxi Wu It’s constructor takes three arguments, the first one being a reference to the map, the second one being an array of GMarkers and the third one being an object literal with options. Only the first one is required.
So to add a bunch of markers to the map having the default settings of the MarkerClusterer you do this: |
||