Skip to content

Fill only the polygon, not the rectangle, when a detection has both#1782

Open
mattdawkins wants to merge 1 commit into
mainfrom
fix/no-rect-fill-when-polygon
Open

Fill only the polygon, not the rectangle, when a detection has both#1782
mattdawkins wants to merge 1 commit into
mainfrom
fix/no-rect-fill-when-polygon

Conversation

@mattdawkins

Copy link
Copy Markdown
Member

Problem

With the per-type "Fill" style enabled, a detection that has a polygon gets both its polygon and its bounding rectangle filled, shading the whole box area.

Fix

When a detection has polygon geometry, the fill setting now applies solely to the polygon; the bounding rectangle stays unfilled. Detections with only a rectangle keep the existing fill behavior. The rectangle layer already computed a per-detection hasPoly flag, which the fill style function now respects.

🤖 Generated with Claude Code

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 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant