MvtPickedFeature

class MvtPickedFeature(val layerName: String, val geometryType: MvtGeometryType, val tile: MvtVectorLayer.TileKey, tags: IntArray, keys: List<String>, values: List<Any?>)

Payload exposed via earth.worldwind.PickedObject.userObject when a vector-tile feature is picked. Carries the original MVT layer name, geometry type, and (lazily) the inflated property map so an app can pickedObject.userObject as? MvtPickedFeature and read e.g. the feature's name or kind to drive an info panel.

To avoid retaining a built map per feature (only the actually-picked one is ever read), it holds the raw tags + the layer's shared key/value dictionaries and inflates properties lazily on first access.

Created at tile fetch time when MvtVectorLayer.isPickEnabled is true and the layer is using the batched render path; null elsewhere.

Constructors

Link copied to clipboard
constructor(layerName: String, geometryType: MvtGeometryType, tile: MvtVectorLayer.TileKey, tags: IntArray, keys: List<String>, values: List<Any?>)

Properties

Link copied to clipboard
Link copied to clipboard

Source layer name from the MVT ("streets", "water_polygons", "buildings", …).

Link copied to clipboard

Feature properties, inflated against the layer dictionaries on first access (deferring the build off the per-tile assembly path to the actual pick).

Link copied to clipboard

Slippy-tile coordinates of the source tile (z, x, y), for users that need provenance.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String