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 max_size restriction for custom schemas [FEATURE] #965

Open
quincylvania opened this issue Jul 29, 2024 · 3 comments
Open

Add max_size restriction for custom schemas [FEATURE] #965

quincylvania opened this issue Jul 29, 2024 · 3 comments

Comments

@quincylvania
Copy link
Contributor

We're using min_size over at OpenTrailMap to progressively show POIs for notable parks at the given zoom level. This works great when the park is contained in the viewport (example at z4):

Screenshot 2024-07-29 at 7 17 04 PM

However, once we get zoomed in far enough it doesn't make sense to show a central point marker anymore (example at z18):

Screenshot 2024-07-29 at 7 17 18 PM

We could probably filter these out in MapLibre but the more efficient solution would be to exclude them from the tiles with a parameter like max_size.

@msbarry
Copy link
Contributor

msbarry commented Jul 30, 2024

Interesting, this isn't a capability in the java API either - profiles just set a max zoom. So you would set max size to some number of "square pixels" or "square tiles"?

@quincylvania
Copy link
Contributor Author

quincylvania commented Jul 30, 2024

@msbarry The unit should probably match that of min_size, which I guess is pixels. Personally I find this unit a bit difficult to visualize and prefer a ratio more akin to that of min_tile_cover_size.

@quincylvania
Copy link
Contributor Author

I'm realizing this is less useful than expected since we only render tiles up to z14.

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