FeatureSelector

@Stable
data class FeatureSelector<T : Any>(val space: CoordinateSpace<T>, val attributes: Attributes = Attributes.EMPTY, val selector: (zoom: Float) -> Feature<T>) : Feature<T>

A feature that decides what to show depending on the zoom value (it could change size of shape)

Constructors

Link copied to clipboard
constructor(space: CoordinateSpace<T>, attributes: Attributes = Attributes.EMPTY, selector: (zoom: Float) -> Feature<T>)

Properties

Link copied to clipboard
open override val attributes: Attributes
Link copied to clipboard
val Feature<*>.color: Color?
Link copied to clipboard
Link copied to clipboard
val selector: (zoom: Float) -> Feature<T>
Link copied to clipboard
open override val space: CoordinateSpace<T>
Link copied to clipboard
val Feature<*>.z: Float
Link copied to clipboard

Functions

Link copied to clipboard
open override fun getBoundingBox(zoom: Float): Rectangle<T>?
Link copied to clipboard
open override fun withAttributes(modify: Attributes.() -> Attributes): Feature<T>