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": [