ol2 icon indicating copy to clipboard operation
ol2 copied to clipboard

Adding Alt Text & Keyboard Control

Open mgifford opened this issue 12 years ago • 9 comments

I think we can add a lot of accessibility improvement by adding support for tabbing through the interface, including alt text to the images.

I don't think this is going to be a big change. I think I've done it to these files

lib/OpenLayers/Control/OverviewMap.js lib/OpenLayers/Control/PanZoom.js lib/OpenLayers/Renderer/Canvas.js

in my fork:

https://github.com/mgifford/openlayers

I'm largely a PHP developer though so I'm sure I've missed stuff.

Anyways, it would be great to add WAI-ARIA support, but at the very least we should be able to add alt tags & keyboard only support I would hope.

mgifford avatar Mar 31 '12 04:03 mgifford

Here's a better description from 2010: http://geodevelopment.wordpress.com/2010/12/02/aria/

Also a good example with better keyboard controls: http://viewer.geozet.nl/index.php?mapsize=500&zoom=112500,403500,7

mgifford avatar Mar 31 '12 13:03 mgifford

Pull requests are always welcome. Please see my comment here: #385

marcjansen avatar Apr 03 '12 15:04 marcjansen

I've done this - https://github.com/openlayers/openlayers/pull/386

mgifford avatar Apr 06 '12 20:04 mgifford

What needs to be done to bring this into the next release?

mgifford avatar Aug 27 '12 15:08 mgifford

hi mgifford - is this something that's been added in to openlayers formally? I'm trying to get this done on https://www.cvillecouncil.us (the little map on the left) and having no luck finding documentation for OpenLayers.Control.PanPanel alt tags... thanks!

alibama avatar Feb 21 '15 15:02 alibama

I don't think it has been added. Best to check the examples from the latest release http://openlayers.org/en/v3.2.1/examples/

Worth doing!

mgifford avatar Feb 23 '15 01:02 mgifford

hey dude- thank's for following up - I've got a couple projects that need this.. i'm thinking worst case writing some jscript that finds the elements and rewrites them with alt tags... given the low quality of my coding standards I think it might be better that way - just feel like the code I'm seeing doesn't really lend itself to being extended as easily as they say it is....

alibama avatar Feb 23 '15 13:02 alibama

What about http://openlayers.org/en/v3.2.1/examples/accessible.html ?

fredj avatar Feb 23 '15 14:02 fredj

I see that - I'm trying to get that on my site, haven't been too successful yet - may be an issue on the drupal end

alibama avatar Feb 23 '15 14:02 alibama