Accessibility¶
DOM elements provided by DVM have descriptions compliant with WAI-ARIA.
If you need to create your own elements, for example adding a popup with a thumbnail, you can get the tagging information
from the modules API using methods like getMapDescription
or getViewDescription
.
In the same way if you need to overwrite that with your own information, for example for localization or a more
specific description, you can do it with setMapDescription
or setViewDescription
. The DOM element attributes will
be updated with the new provided information.
the input/output of those methods is an object with the following properties:
title
(string): Currently not used.description
(string): Used inaria-label
andalt
attributes.language
(string): Used inlang
attributes.