add polyline option
This commit is contained in:
@@ -726,6 +726,9 @@ public class ObjectUtils {
|
||||
target.geodesic( options.isGeodesic() );
|
||||
target.setDottedLine( options.isDottedLine() );
|
||||
target.useGradient( options.isGradient() );
|
||||
if ( options.getColorValues() != null ) {
|
||||
target.colorValues( options.getColorValues() );
|
||||
}
|
||||
target.transparency( options.getTransparency() );
|
||||
target.aboveMaskLayer( options.isAboveMaskLayer() );
|
||||
target.lineCapType( PolylineOptions.LineCapType.LineCapRound );
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user