-
Notifications
You must be signed in to change notification settings - Fork 799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setOpacity on RasterLayers #908
Comments
99% sure this was fixed in #903. |
Nope. basically issue is in rasterlayer.js setOpacity: function (opacity) {
this.options.opacity = opacity;
this._currentImage.setOpacity(opacity);
return this;
}, should be setOpacity: function (opacity) {
this.options.opacity = opacity;
if (this._currentImage)
{
this._currentImage.setOpacity(opacity);
}
return this;
}, I will shortly have a pr with fix and test, |
that would be fantastic. 🍪 thanks so much! |
resolved by 1066630 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ie: NA
L.version
):1.02
L.esri.VERSION
):2.0.6
Steps to reproduce the error:
What happens is A exception is raised because this._currentImage is null
I was expecting everything to be fine and dandy.
fix is to wrap this._currentImage in if statement.
The text was updated successfully, but these errors were encountered: