diff --git a/src/layer/ImageOverlay.js b/src/layer/ImageOverlay.js index 42deb3b8..b2ac282b 100644 --- a/src/layer/ImageOverlay.js +++ b/src/layer/ImageOverlay.js @@ -5,7 +5,8 @@ L.ImageOverlay = L.Layer.extend({ options: { - opacity: 1 + opacity: 1, + alt: '' }, initialize: function (url, bounds, options) { // (String, LatLngBounds, Object) @@ -90,6 +91,7 @@ L.ImageOverlay = L.Layer.extend({ img.onload = L.bind(this.fire, this, 'load'); img.src = this._url; + img.alt = this.options.alt; }, _animateZoom: function (e) {