Builder
class Builder : ViewObjectDataBuilder<PolylineData.Builder, MapPolyline, PolylineData>
Content copied to clipboard
Constructors
Builder
Link copied to clipboard
open fun Builder(@NonNull firstVertex: GeoCoordinates, creator: ObjectCreator<MapPolyline, PolylineData>)
Content copied to clipboard
Builder
Link copied to clipboard
open fun Builder(@NonNull vertices: List<GeoCoordinates>, creator: ObjectCreator<MapPolyline, PolylineData>)
Content copied to clipboard
Functions
add Vertices
Link copied to clipboard
open fun addVertices(@NonNull nextVertex: Array<GeoCoordinates>): PolylineData.Builder
Content copied to clipboard
Adds the GeoCoordinate at the end of the path of the MapPolyline.
open fun addVertices(@NonNull vertices: List<GeoCoordinates>): PolylineData.Builder
Content copied to clipboard
Adds GeoCoordinates at the end of the path of the MapPolyline.
set Borders
Link copied to clipboard
Enables/Disables MapPolyline to be rendered with antialiased borders.
set Corner Radius
Link copied to clipboard
Sets the dash corner radius, in range [0, lineWidth / 2], for the primary dash of the MapPolyline.
set Dashed
Link copied to clipboard
Sets the appearance of this MapPolyline as either a dashed or solid line.
set Dash Length
Link copied to clipboard
Sets the dash length, for the MapPolyline.
set Line Color
Link copied to clipboard
Sets the line color.
set Line Width
Link copied to clipboard
Returns the line width, in pixels.
set Scalable Width
Link copied to clipboard
Sets the width of this MapPolyline to either scale or not scale with ground distance.
set Secondary Color
Link copied to clipboard
Sets the secondary line color (used for dash/border).
set Secondary Dash Length
Link copied to clipboard
open fun setSecondaryDashLength(dashSecondaryLength: Float): PolylineData.Builder
Content copied to clipboard
Sets the secondary dash length, for the MapPolyline.
with Payload
Link copied to clipboard