From 2f900aca12e44b082fa28f9e55bd0f47e1e1f2da Mon Sep 17 00:00:00 2001 From: Matt Dawkins Date: Tue, 21 Jul 2026 16:37:03 -0400 Subject: [PATCH] Fill only the polygon, not the rectangle, when a detection has both When a detection has polygon geometry, the type's fill setting now applies solely to the polygon; the bounding rectangle stays unfilled. Detections with only a rectangle keep the existing fill behavior. Co-Authored-By: Claude Fable 5 --- client/src/layers/AnnotationLayers/RectangleLayer.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/src/layers/AnnotationLayers/RectangleLayer.ts b/client/src/layers/AnnotationLayers/RectangleLayer.ts index bb845898d..4cf6142a7 100644 --- a/client/src/layers/AnnotationLayers/RectangleLayer.ts +++ b/client/src/layers/AnnotationLayers/RectangleLayer.ts @@ -228,6 +228,11 @@ export default class RectangleLayer extends BaseLayer { return this.typeStyling.value.color(''); }, fill: (data) => { + // When the detection has a polygon the fill belongs to the polygon, + // never the surrounding rectangle + if (data.hasPoly) { + return false; + } if (data.set) { return this.typeStyling.value.fill(data.set, true); }