RegionViewData

data class RegionViewData(val polygon: PolygonViewData, val holes: List<PolygonViewData>, val active: Boolean = true, val boundingBox: BoundingBoxViewData, val center: GeoLocationViewData, val zIndex: Float)

The data necessary for displaying the Region on the View.

Constructors

Link copied to clipboard
constructor(polygon: PolygonViewData, holes: List<PolygonViewData>, active: Boolean = true, boundingBox: BoundingBoxViewData, center: GeoLocationViewData, zIndex: Float)

Properties

Link copied to clipboard
val active: Boolean = true

true if the region is currently displayed on the map, false otherwise (defaults to true).

Link copied to clipboard

the BoundingBox object encompassing the entire region (including holes).

Link copied to clipboard

the center of the BoundingBox

Link copied to clipboard

a list of Polygon objects representing interior holes that define areas excluded from the region.

Link copied to clipboard

the outermost Polygon object defining the boundary of the region.

Link copied to clipboard

the layer order on the map where the region should be drawn (higher zIndex means drawn on top of others).