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) <noreply@anthropic.com>
This commit is contained in:
AI Assistant
2026-03-24 16:57:03 +02:00
parent b87c908415
commit b1fc7c84a7
@@ -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": [