I am building a map that shows several markers that I want to be able to switch on/off according to a value, and at the same time I want to cluster markers that are close to each other. Layer control works fine without clustering, but once clusterOptions is activated, layer control stops working. No answers yet on my question in SO
I am building a map that shows several markers that I want to be able to switch on/off according to a value, and at the same time I want to cluster markers that are close to each other. Layer control works fine without clustering, but once clusterOptions is activated, layer control stops working. No answers yet on my question in SO
In my reprex (using
quakes
), this works fine:However, activating clusterOptions prevents layers control to work adequately.
I guess it might be solved by using
addMarkers
for each group, but that might be cumbersome.Is it possible to have addLayersControl and clusterOptions working together?