Skip to content

Conversation

maidi29
Copy link
Contributor

@maidi29 maidi29 commented Mar 18, 2025

Add possibility to edit the styling defaults of the cluster element (the number defining the count of merged markers)
image

Description

Currently it is not possible to adjust the styling of the cluster element. This PR adds a property clusterElementStyles where you can pass partial styling values to overwrite the default styling.

Additional context

Usage:

markerComponent.clusterElementStyles = {
  transition: "all 0.3s ease-in-out",
  hoverBackgroundColor: "#FF5733",
};

What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Before submitting the PR, please make sure you do the following:

  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Follow the Conventional Commits v1.0.0 standard for PR naming (e.g. feat(examples): add hello-world example).
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
  • Ideally, include relevant tests that fail without this PR but pass with it.

maidi29 added 2 commits March 18, 2025 11:28
Add possibility to edit the styling defaults of the cluster element (the number defining the count of merged markers)
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