unloadIndoorMap method

Future<void> unloadIndoorMap()

Unload current indoor map and remove filtering.

Implementation

Future<void> unloadIndoorMap() async {
  _currentVenueId = null;
  _currentFloor = null;

  final sources = controller.geometry.sourceIds;
  for(final sourceId in sources) {
     // null removes the filter, showing all features
     await controller.geometry.setLayerFilter(sourceId, null);
  }
}