updateGeoJSONSourceFeatures method
- String sourceId,
- String dataId,
- List<
Feature< featuresGeometryObject> >
Updates existing features in a GeoJSON style source, matched 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. A feature with a different type of id gets added instead of replacing the feature you want to update.
Implementation
Future<void> updateGeoJSONSourceFeatures(
String sourceId,
String dataId,
List<Feature> features,
) => _impl.updateGeoJSONSourceFeatures(sourceId, dataId, features);