Class PolygonStyle
-
- All Implemented Interfaces:
-
com.google.maps.android.data.renderer.model.Style
public final class PolygonStyle implements Style
A data class representing the style for a Polygon.
-
-
Method Summary
Modifier and Type Method Description final IntegergetFillColor()The fill color of the polygon, as an integer (e.g., ARGB) or hex string. final IntegergetStrokeColor()The stroke color of the polygon, as an integer (e.g., ARGB) or hex string. final FloatgetStrokeWidth()The stroke width of the polygon in pixels. final BooleangetGeodesic()Indicates whether the polygon's stroke should be drawn as a geodesic (true) or a straight line (false). final FloatgetZIndex()The z-index of the polygon. final BooleangetClickable()Indicates whether the polygon is clickable. final BooleangetVisible()Indicates whether the polygon is visible. -
-
Method Detail
-
getFillColor
final Integer getFillColor()
The fill color of the polygon, as an integer (e.g., ARGB) or hex string. Defaults to transparent black.
-
getStrokeColor
final Integer getStrokeColor()
The stroke color of the polygon, as an integer (e.g., ARGB) or hex string. Defaults to black.
-
getStrokeWidth
final Float getStrokeWidth()
The stroke width of the polygon in pixels. Defaults to 1.0.
-
getGeodesic
final Boolean getGeodesic()
Indicates whether the polygon's stroke should be drawn as a geodesic (true) or a straight line (false). Defaults to false.
-
getZIndex
final Float getZIndex()
The z-index of the polygon. Higher values are drawn above lower values. Defaults to 0.0.
-
getClickable
final Boolean getClickable()
Indicates whether the polygon is clickable. Defaults to true.
-
getVisible
final Boolean getVisible()
Indicates whether the polygon is visible. Defaults to true.
-
-
-
-