public class PolygonBuilder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
Polygon |
build()
Create polygon overlay for a given map view.
|
PolygonBuilder |
color(int color)
The color in RGBA format of the overlay
|
PolygonBuilder |
coordinate(LatLng coordinate)
Set list of polygon corners.
|
PolygonBuilder |
coordinates(java.util.List<LatLng> coordinates)
Set list of polygon corners.
|
static PolygonBuilder |
create() |
PolygonBuilder |
id(long id)
The id of the Overlay.
|
PolygonBuilder |
opacity(float opacity)
Overlay opacity.
|
PolygonBuilder |
outlineColor(int outlineColor) |
PolygonBuilder |
tag(java.lang.Object tag)
It can be used for filtering, e.g.
|
public PolygonBuilder coordinate(LatLng coordinate)
coordinates - List of polygon corners.public PolygonBuilder coordinates(java.util.List<LatLng> coordinates)
coordinates - List of polygon corners.public PolygonBuilder outlineColor(int outlineColor)
outlineColor - Overlay outline color. Default value is WHITE.public PolygonBuilder id(long id)
public PolygonBuilder tag(java.lang.Object tag)
public PolygonBuilder color(int color)
color - overlay color. Default value is WHITE.public PolygonBuilder opacity(float opacity)
opacity - Overlay opacity.public static PolygonBuilder create()
public Polygon build()