set_layer_scale_range
Limit a layer's visible scale range by setting min/max zoom thresholds, preventing it from drawing at unwanted scales.
Instructions
Limit the scale range a layer draws at.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"layer_name": "<layer_name>"
},
"name": "set_layer_scale_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| map_name | No | Map to act on; defaults to the active map. | |
| max_scale | No | Zoomed-in limit, e.g. 1000 (0 = no limit). | |
| min_scale | No | Zoomed-out limit, e.g. 100000 (0 = no limit). | |
| layer_name | Yes | Layer or table name as shown by get_layers, or a full dataset path. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |