From 7a808622aeaceefb244d4236e831e11371e0d28c Mon Sep 17 00:00:00 2001 From: Scott Bell Date: Mon, 24 Apr 2023 16:56:34 +0200 Subject: [PATCH] need to add image indicator --- .../imagery/components/AnnotationsCanvas.vue | 23 +------------------ 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/src/plugins/imagery/components/AnnotationsCanvas.vue b/src/plugins/imagery/components/AnnotationsCanvas.vue index 3330777874..fcc3d56339 100644 --- a/src/plugins/imagery/components/AnnotationsCanvas.vue +++ b/src/plugins/imagery/components/AnnotationsCanvas.vue @@ -138,33 +138,12 @@ export default { targetDomainObjects[keyString] = this.domainObject; const targetDetails = {}; - const uniqueBoundsAnnotations = []; annotations.forEach(annotation => { Object.entries(annotation.targets).forEach(([key, value]) => { targetDetails[key] = value; }); - - const boundingBoxAlreadyAdded = uniqueBoundsAnnotations.some(existingAnnotation => { - const existingTime = Object.values(existingAnnotation.targets)[0].time; - const newTime = Object.values(annotation.targets)[0].time; - if (existingTime !== newTime) { - return false; - } - - const existingBoundingBox = Object.values(existingAnnotation.targets)[0].rectangle; - const newBoundingBox = Object.values(annotation.targets)[0].rectangle; - - return (existingBoundingBox.x === newBoundingBox.x - && existingBoundingBox.y === newBoundingBox.y - && existingBoundingBox.height === newBoundingBox.height - && existingBoundingBox.width === newBoundingBox.width); - - }); - if (!boundingBoxAlreadyAdded) { - uniqueBoundsAnnotations.push(annotation); - } }); - this.selectedAnnotations = uniqueBoundsAnnotations; + this.selectedAnnotations = annotations; this.drawAnnotations(); return {