updateGeoJson method
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);
}