Skip to main content

Is it possible to configure layers per zoom level with EVALSCRIPT parameter?

I hope to change customizing the layer configuration by zooming in/out operation in WMTS application. Any ideas for this would be appreciated. Thank you.

I don’t think such thing is possible in the configurator in the Dashboard, so I would solve this in the app.


I will help myself with “Dynamic layer data processing from web application” forum post to form an understandable idea.


I would combine the example from that post and this answer from stackexchange to detect the zoom change in OpenLayers and change the evalscript accordingly in that function. Evalscripts can be saved in separate files and imported in the javascript file where the code for detecting the zoom change is, so they don’t bloat the rest of the code.


Hope it helps in any way.

Cheers


Reply