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

Added support for a new model layout property: allow-density-reduction #13433

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

JoshuaJMoore
Copy link

@JoshuaJMoore JoshuaJMoore commented Mar 13, 2025

We have a use-case where we want to be able to see all of the models and not reduce density of models when zoomed out. Mapbox's default behavior is to reduce density when zoomed out which has been maintained here, but with the option to disable it.

By introducing a new layout property model-allow-density-reduction, you can choose if that layer is to reduce density or not when zoomed out.

The property was named similar to existing properties such as 'icon-allow-overlap'.

When property is true we can see a density reduction in the number of models shown:

image

When property is false, we can see the density has no reduction:

image

@JoshuaJMoore JoshuaJMoore requested a review from a team as a code owner March 13, 2025 14:30
@CLAassistant
Copy link

CLAassistant commented Mar 13, 2025

CLA assistant check
All committers have signed the CLA.

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 this pull request may close these issues.

2 participants