querySourceFeatures method

Future<List> querySourceFeatures(
  1. String sourceId,
  2. String? sourceLayerId,
  3. List<Object>? filter
)

Query features contained in the source with the specified sourceId.

In contrast to queryRenderedFeatures, this returns all features in the source, regardless of whether they are currently rendered by the current style.

Note: On web, this will probably only work for GeoJson source, not for vector tiles

Implementation

Future<List> querySourceFeatures(
    String sourceId, String? sourceLayerId, List<Object>? filter) async {
  return _vietmapGLPlatform.querySourceFeatures(
      sourceId, sourceLayerId, filter);
}