public static class StaticPolylineAnnotation.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
StaticPolylineAnnotation |
build()
Call to build a new instance of a StaticPolylineAnnotation object.
|
String |
getFillColor()
Provides a String representing the hex code for the fill color.
|
Float |
getFillOpacity()
If set, a number between 0 (transparent) and 1 (opaque) for the fill opacity.
|
String |
getPolyline()
The current polyline string being used for the paths geometry.
|
String |
getStrokeColor()
Provides a String representing the hex code for the line stroke.
|
Float |
getStrokeOpacity()
A Float between 0 (transparent) and 1 (opaque) representing the lines opacity.
|
Double |
getStrokeWidth()
Get the currently set stroke width for the line.
|
StaticPolylineAnnotation.Builder |
setFillColor(String fillColor)
Optionally pass a 3- or 6-digit hexadecimal color code for the fill.
|
StaticPolylineAnnotation.Builder |
setFillOpacity(float fillOpacity)
Optionally pass a number between 0 (transparent) and 1 (opaque) for the fill opacity.
|
StaticPolylineAnnotation.Builder |
setPolyline(String polyline)
A valid encoded polyline encoded as a URI component.
|
StaticPolylineAnnotation.Builder |
setStrokeColor(String strokeColor)
A 3- or 6-digit hexadecimal color code for the line stroke.
|
StaticPolylineAnnotation.Builder |
setStrokeOpacity(float strokeOpacity)
A number between 0 (transparent) and 1 (opaque) for line stroke opacity.
|
StaticPolylineAnnotation.Builder |
setStrokeWidth(double strokeWidth)
Positive Double value for line stroke width.
|
public Double getStrokeWidth()
public StaticPolylineAnnotation.Builder setStrokeWidth(double strokeWidth)
ServicesException
will
occur.strokeWidth
- A positive double value.public String getStrokeColor()
public StaticPolylineAnnotation.Builder setStrokeColor(String strokeColor)
ServicesException
will occur.strokeColor
- A string containing a 3 or 6 digit hexadecimal color code.public Float getStrokeOpacity()
public StaticPolylineAnnotation.Builder setStrokeOpacity(float strokeOpacity)
ServicesException
will occur.strokeOpacity
- a float value between 0 and 1 representing the lines opacity.public String getFillColor()
public StaticPolylineAnnotation.Builder setFillColor(String fillColor)
ServicesException
will occur.fillColor
- a string containing a 3 or 6 digit hexadecimal color code.public Float getFillOpacity()
public StaticPolylineAnnotation.Builder setFillOpacity(float fillOpacity)
ServicesException
will occur.fillOpacity
- a Float value between 0 and 1.public String getPolyline()
PolylineUtils.decode(String, int)
to decode the string using
precision 5.public StaticPolylineAnnotation.Builder setPolyline(String polyline)
PolylineUtils.encode(List, int)
utility.polyline
- A string containing the paths geometry information.public StaticPolylineAnnotation build() throws ServicesException
ServicesException
- If any issues are recognized that could cause API errors.© 2015–2016 Mapbox. All rights reserved.