Open MaximRikel opened 2 years ago
I'm not sure it should — it's helpful to see this error because it usually indicates a deeper issue we should find the root cause of. Can you create a minimal test case of a situation where this happens? (I see it's something related to the markercluster plugin?)
I wasn't able to recreate this bug with markercluster base code and I'm not at liberty to share my clients code. I hope you are able to solve this without an example but if not I'll try to find the time to write something reproducible.
Checklist
Steps to reproduce
Remove function causes an exception when using Leaflet.markercluster.
function remove(el) { var parent = el.parentNode; if (parent) { parent.removeChild(el); } }
When zooming in on a cluster that contains multiple markers at the same location I sometimes get an exception:
Expected behavior
The function should check that the parent contains this child before attempting to remove
Current behavior
Exception
Minimal example reproducing the issue
No response
Environment