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

Match zoom to tile scale #475

Open
OndraM opened this issue Aug 29, 2023 · 1 comment
Open

Match zoom to tile scale #475

OndraM opened this issue Aug 29, 2023 · 1 comment

Comments

@OndraM
Copy link

OndraM commented Aug 29, 2023

Hi, is it possible to setup QWC2 theme so that the zoom level match the EPSG:3857 tile scale provided by WMTS?

WMTS provides zoom levels like 14, 15... (eg. https://tile.openstreetmap.org/14/8870/5535.png ). However I didn't find a way how to match the allowed zoom scales in QWC2 to this exact zoom levels (so that the tiles does not need to be resized and they are sharp).

Basically something this plugin does in QGis (see example).

@manisandro
Copy link
Member

No this is currently not possible, it should be relatively easy hower to get the list of resolutions from the WMTS background layer definition in themes.json and compute a list of scales via scale = resolution / 0.0254 * dpi and assign that list of scales to the OpenLayers view.

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

No branches or pull requests

2 participants