I have a feature layer where one of the properties always takes 4 possible values.
Now I want to make 1 request to get all the features, group them by this property and feed each group to a different markercluster (or esri leaflet cluster) so I can have a separate cluster for every group. However it doesn't seem possible to do it without creating a cluster layer for each group explicitly, which would result in 4 separate requests and multiplying complexity. As far as I can see pointToLayer
and iconCreateFunction
doesn't really do the job (and they do weird things when points are removed or recreated), and panes only group the rendered markers, not the actual cluster itself.