Builder

class Builder : ViewObjectDataBuilder<PolygonData.Builder, MapPolygon, PolygonData>

Constructors

Builder
Link copied to clipboard
open fun Builder(@NonNull center: GeoCoordinates, creator: ObjectCreator<MapPolygon, PolygonData>)
Builder
Link copied to clipboard
open fun Builder(@NonNull center: GeoCoordinates, @NonNull vertices: List<GeoCoordinates>, creator: ObjectCreator<MapPolygon, PolygonData>)

Functions

addVertices
Link copied to clipboard
open fun addVertices(@NonNull nextVertex: Array<GeoCoordinates>): PolygonData.Builder
Adds the GeoCoordinate at the end of the border of the MapPolygon.
open fun addVertices(@NonNull vertices: List<GeoCoordinates>): PolygonData.Builder
Adds GeoCoordinates at the end of the border line of the MapPolygon.
build
Link copied to clipboard
fun build(): I
setBorderColor
Link copied to clipboard
open fun setBorderColor(color: Int): PolygonData.Builder
Sets the border color.
setBorderRadius
Link copied to clipboard
open fun setBorderRadius(radius: Float): PolygonData.Builder
Sets the border radius, in range <0.0 - 1.
setCenterColor
Link copied to clipboard
open fun setCenterColor(color: Int): PolygonData.Builder
Sets the center color.
setCenterRadius
Link copied to clipboard
open fun setCenterRadius(radius: Float): PolygonData.Builder
Sets the center radius, in range <0.0 - 1.
setZIndex
Link copied to clipboard
fun setZIndex(zIndex: Int): B
withPayload
Link copied to clipboard
fun withPayload(@NonNull payload: Parcelable): B