Do you ever feel that your map just has too many markers on it, making it feel cluttered and hard to comprehend? Or, perhaps you want to show where the popular restaurants are in your city, but you still want your map to look clean?
Marker clustering supports you in doing this. As the zoom levels of the map change, you can aggregate markers, indicating clearly to your users exactly where those popular restaurants are located. As your user zooms in, the markers progressively split out until all of the individual markers are displayed.
- Add ‘Google-Maps-iOS-Utils’ to your Podfile
- Instantiate the GMUClusterManager
- Implement the GMUClusterItem protocol for your marker objects
- Add the marker objects to the cluster manager
Take a look at the documentation and demo samples, and start using marker clustering in the Google Maps SDK for iOS Utility Library today!
|Posted by Megan Boundey, Product Manager, Google Maps Mobile APIs|