editGeoJsonSource method

Future<bool> editGeoJsonSource(
  1. String id,
  2. String data
)

Edits a GeoJSON source with new data.

The id specifies the source identifier, and data contains the new GeoJSON data as a string.

The returned Future completes with true if the source was successfully updated, false otherwise.

Implementation

Future<bool> editGeoJsonSource(String id, String data) async {
  return _maplibrePlatform.editGeoJsonSource(id, data);
}