You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please adopt the following properties from the Openlayer API for WMS layers:
minResolution: (number| undefined) The minimum resolution (inclusive) at which this layer will be visible.
maxResolution: (number| undefined) The maximum resolution (exclusive) below which this layer will be visible.
minZoom: (number| undefined) The minimum view zoom level (exclusive) above which this layer will be visible.
maxZoom: (number| undefined) The maximum view zoom level (inclusive) at which this layer will be visible.
However I do agree that this is awkward. And it isn't displayed in the TOC.
Notes
Should be implemented for all "real" layers that are backed by an olLayer, not just WMS.
Consider adding the extent and opacity properties as well while we're at it.
Needs constructor param, getter and setter. The ol properties are observable, so the getters should be reactive.
For displaying in the toc: check whether open layers provides the information itself (layer "really" visible in zoom level). Otherwise, compute it based on zoom / resolution.
mbeckem
changed the title
[Map] [Toc] Enable Zoom limitations for WMS-Layer
[Map] [Toc] Enable Zoom limitations for Layer types
Dec 10, 2024
Issue description
Please adopt the following properties from the Openlayer API for WMS layers:
Link
Layers that are not within the permitted zoom range should appear as disable in the Toc. Similar to a failed health check.
Validations
The text was updated successfully, but these errors were encountered: