Merge pull request #1044 from tmiaa/patch-1

Adding "markers" for clusters in aria-label for accessibility
This commit is contained in:
Vincent (Yukun) Zeng
2023-05-22 15:03:36 -05:00
committed by GitHub

View File

@ -830,7 +830,7 @@ export var MarkerClusterGroup = L.MarkerClusterGroup = L.FeatureGroup.extend({
c += 'large';
}
return new L.DivIcon({ html: '<div><span>' + childCount + '</span></div>', className: 'marker-cluster' + c, iconSize: new L.Point(40, 40) });
return new L.DivIcon({ html: '<div><span>' + childCount + ' <span aria-label="markers"></span>' + '</span></div>', className: 'marker-cluster' + c, iconSize: new L.Point(40, 40) });
},
_bindEvents: function () {