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/
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.
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.
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.
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.
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";
}
});
});
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With