addGeoJSONSourceFeatures method
- String sourceId,
- String dataId,
- List<
Feature< featuresGeometryObject> >
Adds features to a GeoJSON style source.
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> addGeoJSONSourceFeatures(
String sourceId,
String dataId,
List<Feature> features,
) => _impl.addGeoJSONSourceFeatures(sourceId, dataId, features);