Esri / a11y-map

A11y map testing
Apache License 2.0
22 stars 5 forks source link
apia11y-experiment arcgis-js-api-4 esri-javascript prototype

a11y-map

A prototype app to test adding keyboard interaction (similar to Google's a11y behavior)with Esri's ArcGIS API for JavaScript version 4.

View it live

App

Features

To see the a11y features tab into the map and you'll see that a megaphone icon is visible. Once you activate this icon you'll see an extent graphic and feature list are added to the map to allow users to navigate the map content via the keyboard.

Default Map Navigation

This application uses version 4.x of the ArcGIS API for JavaScript which supports the following keyboard navigation for maps.

Action Map behavior
Arrow Keys Nudge the map to the left, right, up or down
N Adjust the map to point North
A Rotate the map counterclockwise
D Rotate the map clockwise
+ Incrementally zoom in at the center of the map
- Incrementally zoom out at the center of the map

At this point this is just a prototype app and feedback and comments are greatly appreciated.

You can access a live version of the app for testing here. The live test app supports a web map url parameter so you can append ?webmap= to the url to test with various web maps. The app requires that the map has a feature layer as the first layer and it uses the first string field it finds as the display field.

Another interesting app that shows navigating content in an accessible manner is Patrick Arlt's demo app available here. Accessible Search

Instructions

To see the a11y features tab into the map and you'll see that a megaphone icon is visible. Once you activate this icon you'll see an extent graphic and feature list are added to the map to allow users to navigate the map content via the keyboard. Once in the map you can use the arrow keys to move right, left, up or down in the map. Use - to zoom in and + to zoom out. While the location dialog is active press i for more details about the area. Under the hood pressing i does a reverse geocode to find the address for the center of the query box. Alternatively you can use the Search box to search for a location and then navigate the map via the drawn box on the map.

Installation

  1. Install node and npm
  2. Open a command prompt and navigate to the folder where you've copied the a11y-map files
  3. Run npm install

Requirements

Resources

Issues

Find a bug or want to request a new feature? Please let us know by submitting an issue.

Contributing

Esri welcomes contributions from anyone and everyone. Please see our guidelines for contributing.

Licensing

Copyright 2018 Esri

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

A copy of the license is available in the repository's license.txt file.