This repository was archived by the owner on Sep 20, 2019. It is now read-only.
This repository was archived by the owner on Sep 20, 2019. It is now read-only.
Labels not coming back after markerclusterer hide() show() #111
Open
Description
From @cyrilchaponeverysens on September 16, 2015 9:53
When grouping labelled markers in a markerclusterer (this requires both label and markerclusterer plugins), if one hides then show the holding type: 'markerclusterer'
overlay layer (be with the layercontrol or programmatically with visible
attribute), the label functionnality disapear.
This behavior is not observed when grouping markers with type: 'group'
.
See this fiddle. Reproduction :
- Hover the 2 markers, and notice the labels
- Go top right to the layercontrol, and uncheck then check both overlays layers
- Rehover the 2 markers, and notice only the label on the group reappears
- You can inspect code to notice that on hover the markerclustered marker, the label is not just "hidden", it's not added to the dom anymore
Copied from original issue: tombatossals/angular-leaflet-directive#941