Gets the visibility of the corresponding layer
bool getLayerVisibility(int layerId) { return map.layers[layerId].visible; }