Skip to content

Commit

Permalink
Add alternative text to marker shadows
Browse files Browse the repository at this point in the history
  • Loading branch information
topicus committed Jan 16, 2017
1 parent d250465 commit 9271859
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/layer/marker/Marker.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ L.Marker = L.Layer.extend({
if (newShadow) {
L.DomUtil.addClass(newShadow, classToAdd);
}

if (options.alt) {
newShadow.alt = options.alt;
}

this._shadow = newShadow;


Expand Down

0 comments on commit 9271859

Please sign in to comment.