diff options
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.java | 23 |
1 files changed, 22 insertions, 1 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 2a41fad234..a5c6397b6f 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 @@ -29,6 +29,7 @@ public abstract class BaseMarkerViewOptions<U extends MarkerView, T extends Base protected float rotation; protected boolean visible = true; protected boolean selected; + protected float alpha = 1.0f; /** * Default constructor @@ -132,7 +133,7 @@ public abstract class BaseMarkerViewOptions<U extends MarkerView, T extends Base * Set the visibility state of the MarkerView. * * @param visible the visible state - * @return the object for which the method was calleds + * @return the object for which the method was called */ public T visible(boolean visible) { this.visible = visible; @@ -140,6 +141,17 @@ public abstract class BaseMarkerViewOptions<U extends MarkerView, T extends Base } /** + * Set the alpha of the MarkerView. + * + * @param alpha the alpha value + * @return the object for which the method was called + */ + public T alpha(float alpha) { + this.alpha = alpha; + return getThis(); + } + + /** * Get the geographical location of the MarkerView. * * @return the geographical location @@ -239,6 +251,15 @@ public abstract class BaseMarkerViewOptions<U extends MarkerView, T extends Base } /** + * Get the alpha of the MarkerView. + * + * @return the alpha value + */ + public float getAlpha() { + return alpha; + } + + /** * Get the instance of the object for which this method was called. * * @return the object for which the this method was called |