isVisible

fun isVisible(zoom: Double, visible: Boolean, minZoom: Float?, maxZoom: Float?): Boolean

Whether a layer should draw at zoom.

A zoom range makes a layer visible within it but never overrides a deliberate visible of false — hiding a layer keeps it hidden at every zoom. That is the MapsGL JS rule: a layer only becomes visible inside its range if it has not been explicitly hidden.