add polyline option

This commit is contained in:
wangcongtao
2020-03-14 15:52:02 +08:00
parent ae871640c8
commit 64048f48dd
2 changed files with 17 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ public class MogoPolylineOptions {
private float mTransparency = 1.0F;
private boolean mIsAboveMaskLayer = false;
private boolean mIsPointsUpdated = false;
private List< Integer > mColorValues;
public MogoPolylineOptions() {
this.mPoints = new ArrayList<>();
@@ -168,6 +169,15 @@ public class MogoPolylineOptions {
return this;
}
/**
* @param colors
* @return
*/
public MogoPolylineOptions colorValues( List< Integer > colors ) {
mColorValues = colors;
return this;
}
public List< MogoLatLng > getPoints() {
return mPoints;
}
@@ -211,4 +221,8 @@ public class MogoPolylineOptions {
public boolean isPointsUpdated() {
return mIsPointsUpdated;
}
public List< Integer > getColorValues() {
return mColorValues;
}
}