Builder

class Builder : ViewObjectDataBuilder<B, I, D>

Constructors

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

Functions

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.
Link copied to clipboard
fun build(): I
Link copied to clipboard
open fun setBorderColor(color: Int): PolygonData.Builder
Sets the border color.
Link copied to clipboard
open fun setBorderRadius(radius: Float): PolygonData.Builder
Sets the border radius, in range <0.0 - 1.
Link copied to clipboard
open fun setCenterColor(color: Int): PolygonData.Builder
Sets the center color.
Link copied to clipboard
open fun setCenterRadius(radius: Float): PolygonData.Builder
Sets the center radius, in range <0.0 - 1.
Link copied to clipboard
fun setZIndex(zIndex: Int): B
Link copied to clipboard
fun withPayload(@NonNull payload: Parcelable): B