Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

google-map tiles missing alt tag causing lower accessibility score

How can we add blank alt tags to the Google map tiles (generated by v3 api) so that they do not lower our accessibility score?

http://berkeley.edu/map/googlemap/

like image 935
user3124388 Avatar asked Dec 21 '13 00:12

user3124388


People also ask

Does Alt Text improve accessibility?

Adding alt-text to images is an important part of web accessibility. It allows people using screen readers to process images on a page. It includes visually impaired and blind users in the conversation.

Why is the ALT attribute so important to navigation?

Alt Tags for Accessibility The web should be easy for everyone to navigate. Those with visual impairments and other disabilities who use screen readers when browsing the web rely on alt tags so that images may be described to them, and to help provide more context and information about the content of a webpage.

Why is Alt Text important for accessibility?

Also referred to as an alt description or an alt attribute, alt text is critical for those with disabilities because it describes the function and appearance of a photo or graphic they cannot see. PDF documents often contain images that convey critical information to the reader.

What is an alt tag and what accessibility benefits does it provide to users?

Alt attributes enable screen readers to read the information about on-page images for the benefit of a person with complete lack of sight, visually impaired, or who is otherwise unable to view the images on the page. Alt text will be displayed in place of an image if an image file cannot load.


2 Answers

Couldn't let this 1 go

You can use the tilesloaded event then use jQuery to modify the images post render

google.maps.event.addListener(this.map, 'tilesloaded', function(evt){
    $(this.getDiv()).find("img").each(function(i, eimg){
      if(!eimg.alt || eimg.alt ===""){
         eimg.alt = "Google Maps Image";
      }
    });
 });
like image 80
Sam Stephenson Avatar answered Sep 22 '22 18:09

Sam Stephenson


I work for a company (Deque Systems) that creates an Enterprise scanning engine that generates an accessibility score for each page and each project. My recommendation is to use that as a very rough guide ONLY and to instead focus your efforts on making sure your site is really accessible. Automated testing tools can only catch 30% - 50% of accessibility issues.

In terms of a "more accessible" Google maps - take a look at this "accessible" version of Google maps I created. It does more than simply add alt attributes to the image tiles. It also adds focus styles (albeit ugly ones) to the focusable elements and adds accessible names to the controls where these are missing. Note that it is language dependent and my implementation only works for English and German.

like image 31
unobf Avatar answered Sep 18 '22 18:09

unobf