On this page
setLayerZoomRange
Sets the zoom levels at which the layer is visible.
Parameters
layerId
The ID of the layer to update.
minzoom
The minimum zoom level (inclusive).
maxzoom
The maximum zoom level (exclusive).
Sets the zoom levels at which the layer is visible.
The ID of the layer to update.
The minimum zoom level (inclusive).
The maximum zoom level (exclusive).