add attribution and update function
This commit is contained in:
parent
198d6803a0
commit
e5a129a59f
@ -71,6 +71,15 @@ L.ImageOverlay = L.Class.extend({
|
|||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
updateImage: function (url) {
|
||||||
|
this._url = url;
|
||||||
|
this._image.src = this._url;
|
||||||
|
},
|
||||||
|
|
||||||
|
getAttribution: function () {
|
||||||
|
return this.options.attribution;
|
||||||
|
},
|
||||||
|
|
||||||
_initImage: function () {
|
_initImage: function () {
|
||||||
this._image = L.DomUtil.create('img', 'leaflet-image-layer');
|
this._image = L.DomUtil.create('img', 'leaflet-image-layer');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user