Search results

Accessibility in JavaScript Maps control

22 Jul 2021 / 1 minute to read

Maps provides built-in compliance with the WAI-ARIA specifications. WAI-ARIA Accessibility supports are achieved through the attributes like aria-label. It helps to provides information about elements in a document for assistive technology.

Aria-label: Attribute provides the text label with some default description for below elements in maps.

Element Default description
Maps container -
Maps Title Reads the maps title
Maps Subtitle Reads the maps subtitle
Legend Title Reads the legend title

You can change this default description, using description property available in Legend, TitleSettings, SubtitleSettings and Maps object. It helps the screen reader to read for assistive purpose.