[android] #5852 - geojson source clustering

This commit is contained in:
Ivo van Dongen
2016-08-02 23:23:11 -04:00
parent 112789a761
commit 743d134a32
7 changed files with 279 additions and 16 deletions

View File

@@ -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;
}
}