Skip to content

malwoodsantoro/a11y-map-gl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

a11y map gl plugin

An accessibility plugin for the MapLibre library.

Example

View the example by running the below command.

npm run example

Screen Shot 2022-06-14 at 1 42 40 PM

Usage

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);
});

🐝🌵🌻

About

Accessibility plugin for MapLibre library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published