querySourceFeatures method

Future<List<QueriedSourceFeature?>> querySourceFeatures(
  1. String sourceId,
  2. SourceQueryOptions options
)

Queries the source identified by sourceId for features matching the given query options.

On web, GeoJSON feature ids must be a numeric string — GL JS's internal vector-tile pipeline only supports integer feature ids.

Implementation

Future<List<QueriedSourceFeature?>> querySourceFeatures(
  String sourceId,
  SourceQueryOptions options,
) => _impl.querySourceFeatures(sourceId, options);