mirror of
https://github.com/nasa/openmct.git
synced 2025-02-08 20:10:28 +00:00
generate keystring on mount
This commit is contained in:
parent
051a0adbb7
commit
d1e8b3835d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user