mirror of
https://github.com/nasa/openmct.git
synced 2025-02-09 20:31:22 +00:00
generate keystring on mount
This commit is contained in:
parent
051a0adbb7
commit
d1e8b3835d
@ -74,6 +74,7 @@ export default {
|
|||||||
mounted() {
|
mounted() {
|
||||||
this.canvas = this.$refs.canvas;
|
this.canvas = this.$refs.canvas;
|
||||||
this.context = this.canvas.getContext("2d");
|
this.context = this.canvas.getContext("2d");
|
||||||
|
this.keyString = this.openmct.objects.makeKeyString(this.domainObject.identifier);
|
||||||
this.openmct.selection.on('change', this.updateSelection);
|
this.openmct.selection.on('change', this.updateSelection);
|
||||||
this.buildAnnotationIndex();
|
this.buildAnnotationIndex();
|
||||||
},
|
},
|
||||||
@ -87,9 +88,6 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// find annotations for this image time
|
|
||||||
this.keyString = this.openmct.objects.makeKeyString(this.domainObject.identifier);
|
|
||||||
|
|
||||||
if (this.imageryAnnotations.length) {
|
if (this.imageryAnnotations.length) {
|
||||||
// create a flatbush index for the annotations
|
// create a flatbush index for the annotations
|
||||||
this.annotationsIndex = new Flatbush(this.imageryAnnotations.length);
|
this.annotationsIndex = new Flatbush(this.imageryAnnotations.length);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user