From b1fc7c84a70741db8bf4999083c25672a9eb629a Mon Sep 17 00:00:00 2001 From: AI Assistant Date: Tue, 24 Mar 2026 16:57:03 +0200 Subject: [PATCH] fix(parcel-sync): mismatch parcels visible from zoom 13, labels from 16 Mismatch fill/line layers now have minzoom: 13 (same as normal parcels). Labels have minzoom: 16 with text-size: 10 and text-allow-overlap: false (same settings as the regular parcel cadastral labels). Co-Authored-By: Claude Opus 4.6 (1M context) --- .../parcel-sync/components/tabs/map-tab.tsx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/modules/parcel-sync/components/tabs/map-tab.tsx b/src/modules/parcel-sync/components/tabs/map-tab.tsx index 241ca24..7da0b88 100644 --- a/src/modules/parcel-sync/components/tabs/map-tab.tsx +++ b/src/modules/parcel-sync/components/tabs/map-tab.tsx @@ -338,12 +338,13 @@ export function MapTab({ siruta, sirutaValid }: MapTabProps) { id: "l-mismatch-fill", type: "fill", source: "boundary-mismatch", + minzoom: 13, paint: { "fill-color": [ "case", ["==", ["get", "mismatch_type"], "foreign"], - "#f97316", // orange: foreign parcel in this UAT - "#a855f7", // purple: edge parcel (registered here but centroid outside) + "#f97316", + "#a855f7", ], "fill-opacity": 0.35, }, @@ -353,6 +354,7 @@ export function MapTab({ siruta, sirutaValid }: MapTabProps) { id: "l-mismatch-line", type: "line", source: "boundary-mismatch", + minzoom: 13, paint: { "line-color": [ "case", @@ -365,17 +367,19 @@ export function MapTab({ siruta, sirutaValid }: MapTabProps) { }, }); - // Labels with cadastral numbers + // Labels — same zoom + font as normal parcel labels map.addLayer({ id: "l-mismatch-label", type: "symbol", source: "boundary-mismatch", + minzoom: 16, layout: { "text-field": ["coalesce", ["get", "cadastral_ref"], ""], - "text-font": ["Noto Sans Bold"], - "text-size": 11, + "text-font": ["Noto Sans Regular"], + "text-size": 10, "text-anchor": "center", - "text-allow-overlap": true, + "text-allow-overlap": false, + "text-max-width": 8, }, paint: { "text-color": [