updateGeoJson method

Future<void> updateGeoJson(
  1. String sourceId,
  2. Map<String, dynamic> geoJson
)

Refreshes/updates the GeoJSON data for an existing source.

Implementation

Future<void> updateGeoJson(
  String sourceId,
  Map<String, dynamic> geoJson,
) async {
  _geoJsonCache[sourceId] = geoJson;
  await mapController.setGeoJsonSource(sourceId, geoJson);
}