setLayerVisibility abstract method

void setLayerVisibility(
  1. String layerName,
  2. VisibilityState visibility
)

Immediately changes the visibility of a specified map layer.

  • layerName The name of the map layer to be changed.

  • visibility The new visibility state of the layer.

Implementation

void setLayerVisibility(String layerName, VisibilityState visibility);