GeoJsonPolylineOptions

data class GeoJsonPolylineOptions(var sourceId: String, var properties: JsonObject? = null, var coordinates: List<GeoPoint>, val isClickable: Boolean = true)

Configures options for a Polyline overlay using GeoJson which can be added and displayed on the map. See the TomTomMap.addPolyline(options: GeoJsonPolylineOptions) to check how to add a new Polyline.

See also

, which describes its properties in a more detailed way.

Constructors

Link copied to clipboard
constructor(sourceId: String, properties: JsonObject? = null, coordinates: List<GeoPoint>, isClickable: Boolean = true)

Properties

Link copied to clipboard

Coordinates of the line.

Link copied to clipboard
val isClickable: Boolean = true

Sets if the polyline is clickable, if this parameter is false then clicks will be propagated to objects that are below polyline.

Link copied to clipboard
var properties: JsonObject?

Map of GeoJson properties that is added to polyline source representation.

Link copied to clipboard

Name of the GeoJson source that this polyline will be add to.