An accessibility plugin for the MapLibre library.
View the example by running the below command.
npm run example
Add file from dist folder to script tag:
<script src="a11y-map-gl.js"></script>
Initialize a new AccessibleMap instance and pass it to the map.addControl function:
map.on('load', () => {
let Accessibility = new AccessibleMap({
// Layers in the style that will be used with Voiceover control.
layers: ['poi_z14', 'poi_z15', 'poi_z16'],
// Description of the map on page load.
description: "This is a map of East Portland, Oregon."
});
map.addControl(Accessibility);
});
🐝🌵🌻