Closed hmesa closed 7 years ago
Everything seems to work fine now, thanks
@hmesa Hi , I tried to change the url from an ImageOverlay myOverlay.setUrl(newUrl) but it did not work ,can you tell me how to resolve?
It seems to be missing setUrl
in the newest release.
Hi, try adding the following code to the L.ImageOverlay.Rotated class setUrl : function(url) { this._url = url; if (this._rawImage) { this._rawImage.src = url; } return this; }
Yeah. It’s a workaround solution. But it’ll be better if the owner add it back to source code.
The author made the change but i thing he did it on a branch. He only needs to merge it to master when he will have time. Bests
Yeah. I saw the pull request. 10 months ago. :(
OK, OK, you got it. Merged, version bumped, and published into npm
.
Great! Thank you. :D
Hi, I tried to change the url from an ImageOverlay.Rotated
myOverlay.setUrl(newUrl)
but it did not work. Maybe extending the functionsetUrl
tosetUrl:function(url){
this._super(url);
this._rawImage.src=url
;}
could be enough. A very good and useful job, by the way. Thank you very much Best regards