DataBoundFeature

Class for a Feature bounded to a DataRenderer.

In order to create a new one use DataRenderer.addFeature. Any change on a DataBoundFeature properties will trigger a redraw of the DataRenderer associated. Or you can use methods like setStyleProperties or DataRenderer.redrawAfter in order to have more control over when those redraw happens.

Properties

Link copied to clipboard

Compute the bounds of this feature

Link copied to clipboard

the original GeoJSON Feature bounded to the DataRenderer

Link copied to clipboard

Color associated with this feature (Polygon geometry only)

Link copied to clipboard

Opacity associated with this feature (Polygon geometry only)

Link copied to clipboard

Convenience accessor to get the feature's geometry

Link copied to clipboard
var icon: Icon

Set the icon to be used with this feature (Point geometry only)

Link copied to clipboard
val id: String?

Convenience accessor to get the feature's ID

Link copied to clipboard

Toggle this feature response to click

Link copied to clipboard

Toggle this feature visibility

Link copied to clipboard

Label associated with this feature (Point geometry only)

Link copied to clipboard

Color of the label associated with this feature (Point geometry only)

Link copied to clipboard

Color of the label text halo associated with this feature (Point geometry only)

Link copied to clipboard

Weight of the label text associated with this feature (Point geometry only)

Link copied to clipboard

Size of the label text associated with this feature (Point geometry only)

Link copied to clipboard

Outline color associated with this feature (Polygon and LineString geometry only)

Link copied to clipboard

Outline opacity associated with this feature (Polygon and LineString geometry only)

Link copied to clipboard

Outline weight associated with this feature (Polygon and LineString geometry only)

Link copied to clipboard
var zIndex: Int

Z-Index can be used to enforce a given stacking order for several features

Functions

Link copied to clipboard

Allows to change several properties of this feature without redrawing every time.

Link copied to clipboard
open override fun toString(): String