summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/GeoJsonOptions.java
diff options
context:
space:
mode:
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/GeoJsonOptions.java')
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/GeoJsonOptions.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/GeoJsonOptions.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/GeoJsonOptions.java
index 00715bc213..1e1b9bafa6 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/GeoJsonOptions.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/GeoJsonOptions.java
@@ -1,5 +1,7 @@
package com.mapbox.mapboxsdk.style.sources;
+import android.support.annotation.NonNull;
+
import java.util.HashMap;
/**
@@ -16,6 +18,7 @@ public class GeoJsonOptions extends HashMap<String, Object> {
* @param minZoom the minimum zoom - Defaults to 0.
* @return the current instance for chaining
*/
+ @NonNull
public GeoJsonOptions withMinZoom(int minZoom) {
this.put("minzoom", minZoom);
return this;
@@ -27,6 +30,7 @@ public class GeoJsonOptions extends HashMap<String, Object> {
* @param maxZoom the maximum zoom - Defaults to 25.5
* @return the current instance for chaining
*/
+ @NonNull
public GeoJsonOptions withMaxZoom(int maxZoom) {
this.put("maxzoom", maxZoom);
return this;
@@ -39,6 +43,7 @@ public class GeoJsonOptions extends HashMap<String, Object> {
* @param buffer the buffer size - Defaults to 128.
* @return the current instance for chaining
*/
+ @NonNull
public GeoJsonOptions withBuffer(int buffer) {
this.put("buffer", buffer);
return this;
@@ -50,6 +55,7 @@ public class GeoJsonOptions extends HashMap<String, Object> {
* @param lineMetrics true to calculate line distance metrics.
* @return the current instance for chaining
*/
+ @NonNull
public GeoJsonOptions withLineMetrics(boolean lineMetrics) {
this.put("lineMetrics", lineMetrics);
return this;
@@ -61,6 +67,7 @@ public class GeoJsonOptions extends HashMap<String, Object> {
* @param tolerance the tolerance - Defaults to 0.375
* @return the current instance for chaining
*/
+ @NonNull
public GeoJsonOptions withTolerance(float tolerance) {
this.put("tolerance", tolerance);
return this;
@@ -72,6 +79,7 @@ public class GeoJsonOptions extends HashMap<String, Object> {
* @param cluster cluster? - Defaults to false
* @return the current instance for chaining
*/
+ @NonNull
public GeoJsonOptions withCluster(boolean cluster) {
this.put("cluster", cluster);
return this;
@@ -84,6 +92,7 @@ public class GeoJsonOptions extends HashMap<String, Object> {
* zoom features are not clustered)
* @return the current instance for chaining
*/
+ @NonNull
public GeoJsonOptions withClusterMaxZoom(int clusterMaxZoom) {
this.put("clusterMaxZoom", clusterMaxZoom);
return this;
@@ -95,6 +104,7 @@ public class GeoJsonOptions extends HashMap<String, Object> {
* @param clusterRadius cluster radius - Defaults to 50
* @return the current instance for chaining
*/
+ @NonNull
public GeoJsonOptions withClusterRadius(int clusterRadius) {
this.put("clusterRadius", clusterRadius);
return this;