layer_set_scale_visibility
Set scale-dependent visibility for a QGIS layer. Define min and max scale denominators to control when the layer appears on the map.
Instructions
Restrict a layer's visibility to a range of map scales.
min_scale/max_scale are scale denominators (e.g. 1000 for 1:1000) -
min_scale is the most zoomed-out scale and max_scale the most
zoomed-in scale at which the layer is shown. Pass enabled=False to turn
the restriction off without losing the stored range. Omit either bound to
leave it unchanged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | Yes | ||
| layer_id | Yes | ||
| max_scale | No | ||
| min_scale | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||