Delete cluster without deleting markers? #900
Labels
triage me
I really want to be triaged.
type: question
Request for information or clarification. Not an issue.
I have maxZoom in my map, which means that if the user is at this level, some clusters will still show, and the user can't see the markers inside them. So I want to delete/hide the cluster, but still keep its markers.
But the cluster.delete() will delete the cluster AND the markers. So is there any workaround to this?
Edit: I just realized that the cluster.delete() does work as intended. The issue is that the state is not being refreshed. So I guess I need to pass something to the useEffect() which will re-add the markers, but not exactly sure what:
The text was updated successfully, but these errors were encountered: