From 33fe162aee5f35326e37601788dd9ef0c4b535e1 Mon Sep 17 00:00:00 2001 From: Peter Rushforth Date: Mon, 17 May 2021 21:36:12 -0400 Subject: [PATCH] Add role='application' to FeatureGroup element --- src/mapml/features/featureGroup.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mapml/features/featureGroup.js b/src/mapml/features/featureGroup.js index e18d81969..1fe0d3a8c 100644 --- a/src/mapml/features/featureGroup.js +++ b/src/mapml/features/featureGroup.js @@ -27,6 +27,8 @@ export var FeatureGroup = L.FeatureGroup.extend({ } this.options.group.setAttribute('aria-label', this.options.accessibleTitle); + // fix issue https://github.com/Maps4HTML/Web-Map-Custom-Element/issues/423 + this.options.group.setAttribute('role', 'application'); if(this.options.featureID) this.options.group.setAttribute("data-fid", this.options.featureID); },