Open R-3MY opened 3 days ago
web
0.20.0
It seem to be impossible to delete a source on web.
Source is deleted
Source isn't deleted
Future<void>? refreshClusteredPointSource(String sourceId, Object? data, bool delete) async { if (delete) { debugPrint("DELETING SOURCE"); try { await mapController!.removeSource(sourceId); } catch (e) { debugPrint("error removing source : $e"); } debugPrint("DELETING SOURCE END"); } debugPrint("ADDING SOURCE"); await mapController!.addSource(sourceId, GeojsonSourceProperties(data: data, cluster: true, clusterMaxZoom: 12, clusterRadius: 50)); debugPrint("ADDING SOURCE END"); }
DELETING SOURCE null DELETING SOURCE END ADDING SOURCE Error: Source "markers_source" already exists.
Platforms
web
Version of flutter maplibre_gl
0.20.0
Bug Description
It seem to be impossible to delete a source on web.
Steps to Reproduce
Expected Results
Source is deleted
Actual Results
Source isn't deleted
Code Sample
Console