sdk-maps / com.tomtom.online.sdk.map.style.sources / GeoJsonSource

GeoJsonSource

interface GeoJsonSource : Source

The interface that represents a GeoJSON source.

Functions

setGeoJson

abstract fun setGeoJson(geoJson: String): Unit

Sets the GeoJSON data for the source using String.

abstract fun setGeoJson(geoJson: GeoJsonObject): Unit

Sets the GeoJSON data for the source using GeoJsonObject.

setUrl

abstract fun setUrl(url: String): Unit

Sets the URL of GeoJSON data for the source.

Inherited Functions

getId

abstract fun getId(): String

Returns the ID (a human-readable name) of the source.