removeGeoJSONSourceFeatures method

Future<void> removeGeoJSONSourceFeatures(
  1. String sourceId,
  2. String dataId,
  3. List<String> featureIds
)

Removes features from a GeoJSON style source by id.

On web, set GeoJsonSource.dynamicData to true when you add the source, or this method throws a StateError. Android and iOS accept this method on every GeoJSON source.

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

Implementation

Future<void> removeGeoJSONSourceFeatures(
  String sourceId,
  String dataId,
  List<String> featureIds,
) => _impl.removeGeoJSONSourceFeatures(sourceId, dataId, featureIds);