Data Renderer
class DataRenderer @JvmOverloads constructor(mapView: MapView? = null, val onTop: Boolean = false) : ClickableRenderer<OnFeatureClick>
Renderer to draw GeoJSON features on a MapView.
Parameters
map View
The MapView onto which to draw.
Properties
Functions
Link copied to clipboard
Add a GeoJSON Feature to this DataRenderer.
Link copied to clipboard
fun addFeatureCollection(featureCollection: FeatureCollection, action: DataBoundFeature.() -> Unit? = null): List<DataBoundFeature>
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
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.