This repository has been archived by the owner on Jul 10, 2023. It is now read-only.
Clustering in Maplibre #385
Bhavishya9
started this conversation in
General
Replies: 1 comment
-
You can pre-process that I guess into areas according to the zone, foreach zone display one point? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have a specific requirement for a project I am working in. Where I have to cluster the data on two different keys.
Lets say the data in the below format.
I have referred to the example in the docs https://docs.mapbox.com/mapbox-gl-js/example/cluster-html/
But in my scenario I need to first cluster the data based on the key "zone". i.e. based on the above example all the points with zone "tokyo" should be one cluster, "Fuiji" is another cluster, and so on. Then create a html marker based on the key "mag" like in the example at the mentioned link. I am not sure how to go about this. Any help is much appreciated.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions