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 support for hidpi "retina" tile layers #10433

Open
jnewmoyer opened this issue Jun 19, 2024 · 0 comments
Open

Add support for hidpi "retina" tile layers #10433

jnewmoyer opened this issue Jun 19, 2024 · 0 comments
Labels
New Feature used for new functionalities

Comments

@jnewmoyer
Copy link

Description

We are using tiled WMS basemaps that are published with 512px tile size and 900913x2 gridset in GeoServer.

In Leaflet, we can display these in "retina" mode using:

{ 'detectRetina': true, 'format_options': 'dpi:192' };

According to the OpenLayers docs this can also be done using WMTS or XYZ tiled layer using tilePixelRatio but I think this would need to be made available as a checkbox or config option in the layers.

There is also a hidpi setting in ImageWMS but that seems to be dependent on serverType and the Map's pixelRatio so not sure if that is a feasible route for this use case.

Acceptance criteria

  • Layers can be configured to display using 2x "retina" tiles either through a checkbox in the UI or a config option (localConfig.js)
@jnewmoyer jnewmoyer added the New Feature used for new functionalities label Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Feature used for new functionalities
Projects
None yet
Development

No branches or pull requests

1 participant