Polygon

class Polygon

A Polygon overlay which was added to the map.

Important: This is a Public Preview API. It may be changed or removed at any time.

See also

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

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.

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.