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

Label density can be optimized at z8 #287

Open
wipfli opened this issue Aug 21, 2024 · 2 comments · May be fixed by #300
Open

Label density can be optimized at z8 #287

wipfli opened this issue Aug 21, 2024 · 2 comments · May be fixed by #300
Assignees

Comments

@wipfli
Copy link
Collaborator

wipfli commented Aug 21, 2024

In particular at z8 many labels in urban areas cannot be rendered due to collisions. Below is an example of New York, rendered with maplibre map.showSymbolCollisions = true. Maybe we can optimize tile size and bring fewer labels to the renderer which means fewer collision computations. Could make sense to have a symbol pruning step in Planetiler (cc @msbarry).

image

@nvkelso
Copy link
Collaborator

nvkelso commented Aug 21, 2024

Thanks for the reminder, I have a config for this I'll PR!

@nvkelso nvkelso self-assigned this Aug 21, 2024
@msbarry
Copy link
Contributor

msbarry commented Aug 22, 2024

The built-in way to do it in planetiler would be tweaking the label grid size/limit parameters but that's a pretty coarse tool..I think there are better density-based approaches to explore in the future, for example add labels in order of importance but skip any that are within some number of pixels from a label point you've already added.

nvkelso added a commit to nvkelso/basemaps that referenced this issue Sep 18, 2024
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

Successfully merging a pull request may close this issue.

3 participants