add attribution and update function

This commit is contained in:
Stefan Sydow 2013-06-28 22:24:31 +02:00
parent 198d6803a0
commit e5a129a59f

View File

@ -71,6 +71,15 @@ L.ImageOverlay = L.Class.extend({
return this;
},
updateImage: function (url) {
this._url = url;
this._image.src = this._url;
},
getAttribution: function () {
return this.options.attribution;
},
_initImage: function () {
this._image = L.DomUtil.create('img', 'leaflet-image-layer');