3. Before we begin...
Pre-requires
- Basic knowledge of Android and Kotlin programming
- Basic knowledge of map.
To learn more, see Get Started with Google Maps Platform
- Material
- [Android] 一起來做三倍券地圖吧(一)
- [Android] 一起來做三倍券地圖吧(二)
4. Google Map SDK for Android
- Please set up Google map API key first
13. Maps SDK for Android Utility Library
Update your build.gradle
Go ahead and update the dependencies section of your
app/build.gradle file.
14. Implement clustering
1. Implement the ClusterItem interface.
2. Subclass the DefaultClusterRenderer class.
3. Create a ClusterManager and add items.
16. 1.ClusterRenderer
- ClusterManager, internally uses a ClusterRenderer class to handle
creating the clusters as you pan and zoom around the map.
- In this project, markers need to be customized, you need to extend this class
and add the customizations in there.