toggleLayer method

Future<void> toggleLayer(
  1. String layerId
)

Toggles visibility of a specific map layer.

Implementation

Future<void> toggleLayer(String layerId) async {
  await layers.toggle(layerId);
}