toggleLayersVisibility method
this method hide/show all layer exist in the map
Implementation
Future<void> toggleLayersVisibility() async {
_layerIsVisible = !_layerIsVisible;
await osmBaseController.toggleLayer(toggle: _layerIsVisible);
}
this method hide/show all layer exist in the map
Future<void> toggleLayersVisibility() async {
_layerIsVisible = !_layerIsVisible;
await osmBaseController.toggleLayer(toggle: _layerIsVisible);
}