getLayerVisibility method

bool getLayerVisibility(
  1. int layerId
)

Gets the visibility of the corresponding layer

Implementation

bool getLayerVisibility(int layerId) {
  return map.layers[layerId].visible;
}