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

Allow min and max zoom to be applied to resource map sources #10929

Open
chiatt opened this issue May 15, 2024 · 0 comments
Open

Allow min and max zoom to be applied to resource map sources #10929

chiatt opened this issue May 15, 2024 · 0 comments

Comments

@chiatt
Copy link
Member

chiatt commented May 15, 2024

Map sources for resource layers are created in the datatype get_map_source method, so we can't persist changes to the source. It would be helpful to add minzoom and maxzoom properties to a resource source so that requests to the mvt endpoint could be restricted to a range of zoom levels. These properties could be read from the node config. This would prevent the database from getting overwhelmed with requests to calculate mvt tiles in cases where there is a large number of geometries (200k +).

We will also need to make these values modifiable in the UI per #10931

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

No branches or pull requests

1 participant