Open pip-install-python opened 4 months ago
It is a nice visualization that you have arrived at. I am not sure that it would fit into the library directly though. It seem more like an example of an advanced use case to me, i.e. it would probably fit more natually as documentation (similar to the tutorial section in the docs)
Hey Emil,
Reaching out because I've found myself building a custom cluster for leaflet. Was able to get it working, wanted to share with you the code as you might be able add it as an option for the cluster as a prop or an improvement.
External script I used
"https://cdnjs.cloudflare.com/ajax/libs/chroma-js/2.1.0/chroma.min.js"
This is the code I built to design a custom icon after zooming past the cluster or on cluster click:
This is the custom cluster I've built:
You can look at this in action via https://dash.geomapindex.com and if you'd be interested I can provide you with an isolated working example with everything. Just know a lot of datasets have specific type or other ways of filter. This turns the cluster into a ringSVG which breaks up by how many types of a specific dataset fall within that category.
Not sure how exactly it would fit into the project if at all, but figure it was noteworthy and might be interesting / useful in some way.