QueriedFeature

data class QueriedFeature(val id: String?, val source: String, val sourceLayer: String?, val properties: Map<String, Any?>, val mapLayerId: String? = null)

A single feature returned by a query. Wraps source metadata and the feature's data payload.

Constructors

Link copied to clipboard
constructor(id: String?, source: String, sourceLayer: String?, properties: Map<String, Any?>, mapLayerId: String? = null)

Properties

Link copied to clipboard
val id: String?

Optional identifier for the feature.

Link copied to clipboard
val mapLayerId: String? = null

Map style layer id for this hit (e.g. encoded tile layer id), when known.

Link copied to clipboard

The underlying map feature object.

Link copied to clipboard

The name of the source that produced this feature (e.g., vector tile source ID).

Link copied to clipboard

Optional source layer within the source (e.g., sublayer name for vector tiles).