querySourceFeatures

open override fun querySourceFeatures(sourceId: String, options: SourceQueryOptions, callback: QuerySourceFeaturesCallback): Cancelable

Queries the map for source features.

Return

A cancelable object that could be used to cancel the pending query.

Note: In order to get expected results, the corresponding source needs to be in use and the query shall be made after the corresponding source data is loaded.

Parameters

sourceId

The style source identifier used to query for source features.

options

The source query options for querying source features.

callback

The query features callback called when the query completes.


Queries the map for source features.

Return

A cancelable object that could be used to cancel the pending query.

Note: In order to get expected results, the corresponding source needs to be in use and the query shall be made after the corresponding source data is loaded.

Parameters

descriptor

TypedFeaturesetDescriptor object representing either a featureset or a single layer.

filter

an optional global filter.

tag

an optional identifier.

callback

The callback called when the query completes.