generate keystring on mount

This commit is contained in:
Scott Bell 2023-04-25 13:47:09 +02:00
parent 051a0adbb7
commit d1e8b3835d

View File

@ -74,6 +74,7 @@ export default {
mounted() {
this.canvas = this.$refs.canvas;
this.context = this.canvas.getContext("2d");
this.keyString = this.openmct.objects.makeKeyString(this.domainObject.identifier);
this.openmct.selection.on('change', this.updateSelection);
this.buildAnnotationIndex();
},
@ -87,9 +88,6 @@ export default {
return;
}
// find annotations for this image time
this.keyString = this.openmct.objects.makeKeyString(this.domainObject.identifier);
if (this.imageryAnnotations.length) {
// create a flatbush index for the annotations
this.annotationsIndex = new Flatbush(this.imageryAnnotations.length);