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 per-layer ability to disable multipoints #771

Merged
merged 1 commit into from
Oct 13, 2024
Merged

Conversation

systemed
Copy link
Owner

In #725 we added automatic combining of point geometries to create multipoints. 99% of the time this is what you want and it makes tiles smaller.

But the 1% of cases is where you're doing something interactive and you actually want a point geometry back - e.g. when you're using queryRenderedFeatures (or the Native equivalent) to find the exact point that the user has clicked.

This PR adds the ability to disable multipoint combining per-layer by setting "combine_points": false. Default behaviour is unchanged.

@systemed systemed merged commit 22ecab7 into master Oct 13, 2024
7 checks passed
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.

1 participant