How can I change cluster colors dynamically based on the max count of an attribute ? #3095
Unanswered
TheUncharted
asked this question in
Q&A
Replies: 1 comment 1 reply
-
@TheUncharted you should be able to extract the max with The second one is not really possible. You might try using iconImage with an expression generated from like: '23-30-56-90' which would mean 23 in first, 30 in second etc category. Then you could use the onImageMissing to generate the proper image for that name. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I have some posts with an attribute category
I would like my cluster point to have the color of the category which has the most counts like this picture
Or if the max is not possible how can I display a custom marker like this example where the count are displayed
I found this picture on mapbox github issue
link
Beta Was this translation helpful? Give feedback.
All reactions