Remove unused getImageState call
This commit is contained in:
@@ -124,14 +124,13 @@ export function renderFeature(
|
|||||||
let loading = false;
|
let loading = false;
|
||||||
const imageStyle = style.getImage();
|
const imageStyle = style.getImage();
|
||||||
if (imageStyle) {
|
if (imageStyle) {
|
||||||
let imageState = imageStyle.getImageState();
|
const imageState = imageStyle.getImageState();
|
||||||
if (imageState == ImageState.LOADED || imageState == ImageState.ERROR) {
|
if (imageState == ImageState.LOADED || imageState == ImageState.ERROR) {
|
||||||
imageStyle.unlistenImageChange(listener);
|
imageStyle.unlistenImageChange(listener);
|
||||||
} else {
|
} else {
|
||||||
if (imageState == ImageState.IDLE) {
|
if (imageState == ImageState.IDLE) {
|
||||||
imageStyle.load();
|
imageStyle.load();
|
||||||
}
|
}
|
||||||
imageState = imageStyle.getImageState();
|
|
||||||
imageStyle.listenImageChange(listener);
|
imageStyle.listenImageChange(listener);
|
||||||
loading = true;
|
loading = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user