diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/GeoJsonSource.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/GeoJsonSource.java
index fc7928015..6f2113ab0 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/GeoJsonSource.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/GeoJsonSource.java
@@ -41,4 +41,19 @@ public class GeoJsonSource extends Source {
super(id, TYPE);
this.put(DATA_KEY, url.toExternalForm());
}
+
+ public GeoJsonSource withCluster(boolean cluster) {
+ this.put("cluster", cluster);
+ return this;
+ }
+
+ public GeoJsonSource withClusterMaxZoom(float zoom) {
+ this.put("clusterMaxZoom", zoom);
+ return this;
+ }
+
+ public GeoJsonSource withClusterRadius(float radius) {
+ this.put("clusterRadius", radius);
+ return this;
+ }
}
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/AndroidManifest.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/AndroidManifest.xml
index cafca6213..db1fa025a 100644
--- a/platform/android/MapboxGLAndroidSDKTestApp/src/main/AndroidManifest.xml
+++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/AndroidManifest.xml
@@ -308,6 +308,15 @@
android:name="@string/category"
android:value="@string/category_style" />
+
+
+
+
+
+
+
+
+
+
+
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/menu/menu_runtime_style.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/menu/menu_runtime_style.xml
index 189a33708..16713ae14 100644
--- a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/menu/menu_runtime_style.xml
+++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/menu/menu_runtime_style.xml
@@ -1,45 +1,45 @@
\ No newline at end of file
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/strings.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/strings.xml
index 00c421bfe..1cdf449a6 100644
--- a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/strings.xml
+++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/strings.xml
@@ -54,6 +54,7 @@
Min/Max Zoom
ViewPager
Runtime Style
+ GeoJson Clustering
Print a map
SurfaceView MediaOverlay
Android SDK View integration
@@ -95,6 +96,7 @@
Use a fixed Marker to select your location
Use SupportMapFragments in a ViewPager
Adopt the map style on the fly
+ Use GeoJson sources and dynamic layers to cluster information
Shows how to print a map
Test animation of Android SDK View components
Test overlaying SurfaceView