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

feat: update map pin clusters #3855

Open
benfurber opened this issue Sep 19, 2024 · 4 comments
Open

feat: update map pin clusters #3855

benfurber opened this issue Sep 19, 2024 · 4 comments

Comments

@benfurber
Copy link
Member

benfurber commented Sep 19, 2024

Description

Add a shadow effect to the map pin clusters which changes based on the size of the cluster

Mockup and design requirements

Clusters use the primary color of the instance (Project Kamp, Precious Plastic and Fixing fashion). The range of the size for the cluster shadow ranges from 2 (where the shadow is small) to 50 (where the shadow is bigger). Even if the number grows above 50, the shadow should not exceed the maximum spread, otherwise I imagine that on a low zoom level.

image

I have applied the following box-shadow properties (X: 0, Y: 0, blur: 2px, spread varies from 4px to 24px). The color is the main color with 50% opacity. The color of the pins should be configurable and can change if a future decision will be made for the color schemes of the map.

image

Build suggestion

The function to update is createClusterIcon and getClusterSizes in src/pages/Maps/Content/MapView/Sprites.tsx

@6pBit
Copy link

6pBit commented Sep 26, 2024

Hi first time here:) I like to try to solve this issue.

@benfurber
Copy link
Member Author

Welcome @6pBit! Please shout when you have questions.

@benfurber
Copy link
Member Author

Hey @6pBit - how are you getting on?

@6pBit
Copy link

6pBit commented Oct 11, 2024

Been a bit busy the last weeks, but im going to make time to work on it this weekend:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: New / Under Discussion
Development

No branches or pull requests

2 participants