summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/BaseMarkerViewOptions.java
diff options
context:
space:
mode:
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/BaseMarkerViewOptions.java')
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/BaseMarkerViewOptions.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/BaseMarkerViewOptions.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/BaseMarkerViewOptions.java
index a5c6397b6f..20f111d0d7 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/BaseMarkerViewOptions.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/BaseMarkerViewOptions.java
@@ -30,6 +30,7 @@ public abstract class BaseMarkerViewOptions<U extends MarkerView, T extends Base
protected boolean visible = true;
protected boolean selected;
protected float alpha = 1.0f;
+ public float zIndex;
/**
* Default constructor
@@ -152,6 +153,17 @@ public abstract class BaseMarkerViewOptions<U extends MarkerView, T extends Base
}
/**
+ * Set the z index of the MarkerView.
+ *
+ * @param zIndex the z index value
+ * @return the object for which the method was called
+ */
+ public T zIndex(float zIndex){
+ this.zIndex = zIndex;
+ return getThis();
+ }
+
+ /**
* Get the geographical location of the MarkerView.
*
* @return the geographical location
@@ -260,6 +272,14 @@ public abstract class BaseMarkerViewOptions<U extends MarkerView, T extends Base
}
/**
+ * Get the zIndex of the MarkerView
+ * @return the z index value
+ */
+ public float getzIndex() {
+ return zIndex;
+ }
+
+ /**
* Get the instance of the object for which this method was called.
*
* @return the object for which the this method was called
@@ -272,4 +292,5 @@ public abstract class BaseMarkerViewOptions<U extends MarkerView, T extends Base
* @return the MarkerView created from this builder
*/
public abstract U getMarker();
+
}