Builder

class Builder : ViewObjectDataBuilder<PolylineData.Builder, MapPolyline, PolylineData>

Constructors

Builder
Link copied to clipboard
open fun Builder(@NonNull firstVertex: GeoCoordinates, creator: ObjectCreator<MapPolyline, PolylineData>)
Builder
Link copied to clipboard
open fun Builder(@NonNull vertices: List<GeoCoordinates>, creator: ObjectCreator<MapPolyline, PolylineData>)

Functions

addVertices
Link copied to clipboard
open fun addVertices(@NonNull nextVertex: Array<GeoCoordinates>): PolylineData.Builder
Adds the GeoCoordinate at the end of the path of the MapPolyline.
open fun addVertices(@NonNull vertices: List<GeoCoordinates>): PolylineData.Builder
Adds GeoCoordinates at the end of the path of the MapPolyline.
build
Link copied to clipboard
fun build(): I
setBorders
Link copied to clipboard
open fun setBorders(borders: Boolean): PolylineData.Builder
Enables/Disables MapPolyline to be rendered with antialiased borders.
setCornerRadius
Link copied to clipboard
open fun setCornerRadius(cornerRadius: Float): PolylineData.Builder
Sets the dash corner radius, in range [0, lineWidth / 2], for the primary dash of the MapPolyline.
setDashed
Link copied to clipboard
open fun setDashed(dashed: Boolean): PolylineData.Builder
Sets the appearance of this MapPolyline as either a dashed or solid line.
setDashLength
Link copied to clipboard
open fun setDashLength(dashLength: Float): PolylineData.Builder
Sets the dash length, for the MapPolyline.
setLineColor
Link copied to clipboard
open fun setLineColor(lineColor: Int): PolylineData.Builder
Sets the line color.
setLineWidth
Link copied to clipboard
open fun setLineWidth(lineWidth: Float): PolylineData.Builder
Returns the line width, in pixels.
setScalableWidth
Link copied to clipboard
open fun setScalableWidth(scalable: Boolean): PolylineData.Builder
Sets the width of this MapPolyline to either scale or not scale with ground distance.
setSecondaryColor
Link copied to clipboard
open fun setSecondaryColor(lineColor: Int): PolylineData.Builder
Sets the secondary line color (used for dash/border).
setSecondaryDashLength
Link copied to clipboard
open fun setSecondaryDashLength(dashSecondaryLength: Float): PolylineData.Builder
Sets the secondary dash length, for the MapPolyline.
setZIndex
Link copied to clipboard
fun setZIndex(zIndex: Int): B
withPayload
Link copied to clipboard
fun withPayload(@NonNull payload: Parcelable): B