class PolygonBuilder
Polygon overlay for the map.
fun build(): Polygon
Create polygon overlay for a given map view. |
|
fun color(color: Int): PolygonBuilder
The color in RGBA format of the overlay |
|
fun coordinate(coordinate: LatLng): PolygonBuilder
Adds a coordinate to the list of polygon corners. |
|
fun coordinates(coordinates: List<LatLng>): PolygonBuilder
Set list of polygon corners. |
|
fun id(id: Long): PolygonBuilder
The id of the Overlay. It is unique value which distinguish overlays. |
|
fun opacity(opacity: Float): PolygonBuilder
Overlay opacity. Must be between 0.0 and 1.0. |
|
fun outlineColor(outlineColor: Int): PolygonBuilder |
|
fun tag(tag: Any): PolygonBuilder
It can be used for filtering, e.g. to remove annotation of certain tag. Default value is set to null.@param tag the overlay tag. Default value is null. |
fun create(): PolygonBuilder
Creates a new instance of a PolygonBuilder. |