addGeoJSONSourceFeatures method

Future<void> addGeoJSONSourceFeatures(
  1. String sourceId,
  2. String dataId,
  3. List<Feature<GeometryObject>> features
)

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);