DataRenderer

class DataRenderer @JvmOverloads constructor(mapView: MapView? = null, val onTop: Boolean = false) : ClickableRenderer<OnFeatureClick>

Renderer to draw GeoJSON features on a MapView.

Parameters

mapView

The MapView onto which to draw.

Constructors

Link copied to clipboard
constructor(mapView: MapView? = null, onTop: Boolean = false)

Properties

Link copied to clipboard
val onTop: Boolean = false

Draw features above all other pre-existing layers.

Functions

Link copied to clipboard

Add a GeoJSON Feature to this DataRenderer.

Link copied to clipboard

Add a GeoJSON FeatureCollection to this DataRenderer.

Link copied to clipboard

Add an action triggered when a Feature rendered by this DataRenderer gets clicked.

Link copied to clipboard

Remove all DataBoundFeature currently stored by this DataRenderer.

Link copied to clipboard

Force a redraw of this DataRenderer onto the current map.

Link copied to clipboard
fun redrawAfter(action: () -> Unit)

Convenience method to avoid unnecessary redraw when styling several DataBoundFeature.

Link copied to clipboard

Remove a DataBoundFeature from this DataRenderer.

Link copied to clipboard

Remove a callback triggered by a click on a Feature.