From 03a93099ddbdd66ac10102de39f7b54fcf3c638f Mon Sep 17 00:00:00 2001 From: Scott Bell Date: Wed, 21 Jun 2023 13:27:15 +0200 Subject: [PATCH] fix race condition between annotation loading and drawing the annotations --- src/plugins/imagery/components/AnnotationsCanvas.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/imagery/components/AnnotationsCanvas.vue b/src/plugins/imagery/components/AnnotationsCanvas.vue index a4e1a1632ba..d750c761fb2 100644 --- a/src/plugins/imagery/components/AnnotationsCanvas.vue +++ b/src/plugins/imagery/components/AnnotationsCanvas.vue @@ -89,6 +89,11 @@ export default { } } }, + watch: { + imageryAnnotations() { + this.drawAnnotations(); + } + }, mounted() { this.canvas = this.$refs.canvas; this.context = this.canvas.getContext('2d');