Add support for Marker zIndex and tags API

This commit is contained in:
Adam Mills 2018-09-14 18:34:01 -04:00 committed by Marvin W
parent a57ac35b5d
commit 13e1a1cebb
2 changed files with 15 additions and 0 deletions

View File

@ -30,4 +30,8 @@ interface IMarkerDelegate {
void setInfoWindowAnchor(float x, float y);
void setAlpha(float alpha);
float getAlpha();
void setZIndex(float zIndex);
float getZIndex();
void setTag(IObjectWrapper obj);
IObjectWrapper getTag();
}

View File

@ -58,6 +58,8 @@ public class MarkerOptions extends AutoSafeParcelable {
private float infoWindowAnchorV = 1F;
@SafeParceled(14)
private float alpha = 1F;
@SafeParceled(15)
private float zIndex = 0F;
/**
* Creates a new set of marker options.
@ -326,5 +328,14 @@ public class MarkerOptions extends AutoSafeParcelable {
return this;
}
public MarkerOptions zIndex(float zIndex) {
this.zIndex = zIndex;
return this;
}
public float getZIndex() {
return this.zIndex;
}
public static Creator<MarkerOptions> CREATOR = new AutoCreator<MarkerOptions>(MarkerOptions.class);
}