Polygon

class Polygon

A Polygon overlay which was added to the map.

See also

TomTomMap.addPolygon(options: PolygonOptions) to check how to configure and add a new Polygon.

Properties

Link copied to clipboard

Determines a List of GeoPoint elements which create the Polygon.

Link copied to clipboard

The fill Color property of the Polygon.

Link copied to clipboard

Unique Polygon identifier.

Link copied to clipboard

Provides a Uri of the Image drawn inside the current Polygon.

Link copied to clipboard

A Polygon property that determines whether the Image is scaled to cover the whole Polygon. It's false by default, hence the original Image size is preserved and the Image is repeated starting from the South-West corner of the polygons bounding rectangle.

Link copied to clipboard

Determines whether the Polygon is visible or hidden.

Link copied to clipboard

The outline Color property of the Polygon.

Link copied to clipboard
@get:FloatRange(from = 0.0, fromInclusive = false)
var outlineWidth: Double

The outline width (in dp units) property of the Polygon.

Link copied to clipboard
var tag: String?

The tag property of the Polygon, tag can be used to identify group of polygons.

Functions

Link copied to clipboard
fun remove()

Removes the Polygon from the map.

Link copied to clipboard
fun updateImage(image: Image)

Updates the Image that will be fitted into the Polygon bounding rectangle.