diff --git a/src/plugins/imagery/components/ImageryView.vue b/src/plugins/imagery/components/ImageryView.vue index 09caa62b6c..12a92925fa 100644 --- a/src/plugins/imagery/components/ImageryView.vue +++ b/src/plugins/imagery/components/ImageryView.vue @@ -588,7 +588,6 @@ export default { focusedImageIndex() { this.trackDuration(); this.resetAgeCSS(); - this.updateRelatedTelemetryForFocusedImage(); this.getImageNaturalDimensions(); }, bounds() { @@ -774,6 +773,10 @@ export default { this.layers = layersMetadata; if (this.domainObject.configuration) { const persistedLayers = this.domainObject.configuration.layers; + if (!persistedLayers) { + return; + } + layersMetadata.forEach((layer) => { const persistedLayer = persistedLayers.find(object => object.name === layer.name); if (persistedLayer) { @@ -960,6 +963,7 @@ export default { } this.focusedImageIndex = index; + this.updateRelatedTelemetryForFocusedImage(); }, trackDuration() { if (this.canTrackDuration) { diff --git a/src/plugins/imagery/mixins/imageryData.js b/src/plugins/imagery/mixins/imageryData.js index 0e51b6fd35..d5e5caad5f 100644 --- a/src/plugins/imagery/mixins/imageryData.js +++ b/src/plugins/imagery/mixins/imageryData.js @@ -153,9 +153,6 @@ export default { return; } - // forcibly reset the imageContainer size to prevent an aspect ratio distortion - delete this.imageContainerWidth; - delete this.imageContainerHeight; this.bounds = bounds; // setting bounds for ImageryView watcher }, timeSystemChange() {