rstudio / leaflet

R Interface to Leaflet Maps

Home Page:http://rstudio.github.io/leaflet/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Merge different group clusters when zooming out in R shiny interactive map

Jakka opened this issue · comments

commented

Dear all,

Thank you for your job on this wonderful package. I'm looking to merge different group clusters on the interactive map when zooming out. The problem is well represented here https://rstudio.github.io/leaflet/showhide.html, under the last paragraph "With Marker Clusters". What I'd like to achieve is that all the selected layers by the user are aggregated together at the min level of zoom, and then they start to separate when zooming in.

I saw there is a very similar request on stackoverflow: https://stackoverflow.com/questions/72652685/leaflet-r-package-cluster-markers-across-multiple-layers

Also, it looks like there is a leaflet feature that should already do what I'm looking for, but I'm completely lost on the R implementation: https://github.com/ghybs/Leaflet.FeatureGroup.SubGroup

Is there any possibility that you will implement it in the future? I think the overall look and understandability of the map would greatly benefit from this feature.

Forgive me if I'm doing something wrong in explaining the problem, but it's my first issue on github and I hope it's at least ok :D

Thank you,

Giacomo