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

feature: cluster selection color #190

Closed
wants to merge 1 commit into from
Closed

feature: cluster selection color #190

wants to merge 1 commit into from

Conversation

micksabox
Copy link

I needed a way to display the cluster selection state. In this case I just added two properties:

    selectedClusterId?: string;
    selectedClusterColor?: string;

which are compared in the markers.map iterator and dynamically sets the color of the marker. To implement, onClusterPress(cluster), save the cluster.id to component state and pass as a prop to the MapView.

@venits
Copy link
Owner

venits commented Jan 3, 2021

I implemented those changes in 3.4.0 version of library.

Thank you so much for contributing 💕

@venits venits closed this Jan 3, 2021
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.

None yet

2 participants