Repository navigation
Expose minClusterSize in ClusterSettings - #173
Open
davidthurman wants to merge 1 commit into
Open
davidthurman wants to merge 1 commit into
davidthurman wants to merge 1 commit into
Conversation
Android's DefaultClusterRenderer only draws a cluster once a group reaches its own minimum of 4, so groups of two or three render as separate markers. MapKit on iOS and the web clusterer both group from two, which leaves the same data looking different depending on the platform. Adds ClusterSettings.minClusterSize, applied on Android through the onClusterManager hook that maps-compose already provides. Defaults to Android's existing value, so behaviour is unchanged unless it is set. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
davidthurman
marked this pull request as ready for review
August 6, 2026 04:50
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Small PR to expose minClusterSize.
Currently the map defaults to a cluster minimum of 4, but offers no way to change that.
For example of the pain point, I have a map here with 2 pins in Denver and 2 pins in Atlanta. Right now the pins are clickable, but you cant select specific ones from either location. With this kind of use case, you'd want to set your clustering to a minimum of 2 so that the user can zone in on a specific city anytime theres at least 2 pins:
