querySourceFeatures method
Returns an array of GeoJSON Feature objects representing features within the specified vector tile or GeoJSON source that satisfy the query parameters.
@param {string} sourceId The ID of the vector tile or GeoJSON source to query.
@param {Object} parameters
@param {string} parameters.sourceLayer
The name of the source layer
to query./// For vector tile sources, this parameter is required.* For GeoJSON sources, it is ignored.
@param {Array} parameters.filter
A filter
to limit query results.
@param {boolean} parameters.validate=true
Whether to check if the parameters.filter
conforms to the Mapbox GL Style Specification. Disabling validation is a performance optimization that should only be used if you have previously validated the values you will be passing to this function.
@returns {Array
Implementation
List<dynamic> querySourceFeatures(String sourceId, dynamic parameters) =>
jsObject.querySourceFeatures(sourceId, parameters);