Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[android] #5852 - geojson source clustering
Browse files Browse the repository at this point in the history
  • Loading branch information
ivovandongen committed Aug 3, 2016
1 parent 10b2cc6 commit 956bbe9
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,19 @@ public GeoJsonSource(String id, URL url) {
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;
}
}

0 comments on commit 956bbe9

Please sign in to comment.