Update resolution when setting image
This commit is contained in:
@@ -136,6 +136,7 @@ class ImageWrapper extends ImageBase {
|
|||||||
*/
|
*/
|
||||||
setImage(image) {
|
setImage(image) {
|
||||||
this.image_ = image;
|
this.image_ = image;
|
||||||
|
this.resolution = getHeight(this.extent) / this.image_.height;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user