clear method

Future<void> clear()

Removes all geometries added via GeometryManager.

Implementation

Future<void> clear() async {
  final sources = _geoJsonCache.keys.toList();
  for (final sourceId in sources) {
    await removeGeometry(sourceId);
  }
  _geoJsonCache.clear();
  _sourceLayers.clear();
}