Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add minimumLevel option for WMS layers #1119

Open
mvoermans opened this issue Oct 30, 2023 · 3 comments
Open

Add minimumLevel option for WMS layers #1119

mvoermans opened this issue Oct 30, 2023 · 3 comments

Comments

@mvoermans
Copy link

Some layers are only visible at some levels. Is is possible to set the minimumLevel like olcs.projection as an extra setting.

@gberaudo
Copy link
Member

gberaudo commented Nov 2, 2023

Hi @mvoermans,

Cesium is loading all tiles at minimumLevel at startup.
If you are displaying only a small extent you can define a rectangle and bump this value accordingly.

Maybe that could be implemented with a https://cesium.com/learn/cesiumjs/ref-doc/TileDiscardPolicy.html

@mvoermans
Copy link
Author

Hi @gberaudo,

Thanks for your response!

I think that won't fix my problem. I have an WMS layer with a min and max resolution like in this example:
https://openlayers.org/en/latest/examples/min-max-resolution.html
When I open this layer in Cesium and I zoom out of the resolution settings, Cesium still send WMS requests.

If I look at the Cesium documentation:
https://cesium.com/learn/cesiumjs/ref-doc/WebMapServiceImageryProvider.html#.ConstructorOptions
I see there is a minimumLevel and maximumLevel setting.

Is it possible with OLCesium to set this setting for a WMS layer?

@gberaudo
Copy link
Member

Hi @mvoermans, the documentation you points says:
"""
The minimum level-of-detail supported by the imagery provider. Take care when specifying this that the number of tiles at the minimum level is small, such as four or less. A larger number is likely to result in rendering problems.
"""

I am not aware of a mechanism similar to OL in Cesium. If you find something please report it here so that we can integrate it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants