clearSymbols method

Future<void> clearSymbols()

Removes all symbols from the map.

Change listeners are notified once all symbols have been removed on the platform side.

The returned Future completes once listeners have been notified.

Implementation

Future<void> clearSymbols() async {
  await _mapboxGlPlatform.removeSymbols(_symbols.keys);
  _symbols.clear();
  notifyListeners();
}