public static class PolylineCollection.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
PolylineCollection.Builder |
addMultiColorLine(java.util.List<<any>> colorsToWidth,
java.util.List<LatLng> coordinateList)
Adds a symmetrically colored polyline, allowing you to specify the width of each color
individually.
|
PolylineCollection.Builder |
addSingleColorLine(int color,
float alpha,
int width,
java.util.List<LatLng> coordinateList) |
PolylineCollection |
build() |
static java.util.List<<any>> |
createColorWidthPairList(int[] mColorsOuterToInner,
int[] mWidthsOuterToInner) |
public PolylineCollection.Builder addSingleColorLine(int color, float alpha, int width, java.util.List<LatLng> coordinateList)
public PolylineCollection.Builder addMultiColorLine(java.util.List<<any>> colorsToWidth, java.util.List<LatLng> coordinateList)
colorsToWidth
- outermost to innermost. Pairs of (Color, PixelWidth). All but the
innermost will be mirrored.public static java.util.List<<any>> createColorWidthPairList(int[] mColorsOuterToInner, int[] mWidthsOuterToInner)
public PolylineCollection build()