Fix race condition in image annotations loading and drawing them on the canvas ()

fix race condition between annotation loading and drawing the annotations
This commit is contained in:
Scott Bell 2023-06-21 20:20:35 +02:00 committed by GitHub
parent f254d4f078
commit d8ac209a96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,6 +89,11 @@ export default {
}
}
},
watch: {
imageryAnnotations() {
this.drawAnnotations();
}
},
mounted() {
this.canvas = this.$refs.canvas;
this.context = this.canvas.getContext('2d');