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:
@@ -338,12 +338,13 @@ export function MapTab({ siruta, sirutaValid }: MapTabProps) {
|
|||||||
id: "l-mismatch-fill",
|
id: "l-mismatch-fill",
|
||||||
type: "fill",
|
type: "fill",
|
||||||
source: "boundary-mismatch",
|
source: "boundary-mismatch",
|
||||||
|
minzoom: 13,
|
||||||
paint: {
|
paint: {
|
||||||
"fill-color": [
|
"fill-color": [
|
||||||
"case",
|
"case",
|
||||||
["==", ["get", "mismatch_type"], "foreign"],
|
["==", ["get", "mismatch_type"], "foreign"],
|
||||||
"#f97316", // orange: foreign parcel in this UAT
|
"#f97316",
|
||||||
"#a855f7", // purple: edge parcel (registered here but centroid outside)
|
"#a855f7",
|
||||||
],
|
],
|
||||||
"fill-opacity": 0.35,
|
"fill-opacity": 0.35,
|
||||||
},
|
},
|
||||||
@@ -353,6 +354,7 @@ export function MapTab({ siruta, sirutaValid }: MapTabProps) {
|
|||||||
id: "l-mismatch-line",
|
id: "l-mismatch-line",
|
||||||
type: "line",
|
type: "line",
|
||||||
source: "boundary-mismatch",
|
source: "boundary-mismatch",
|
||||||
|
minzoom: 13,
|
||||||
paint: {
|
paint: {
|
||||||
"line-color": [
|
"line-color": [
|
||||||
"case",
|
"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({
|
map.addLayer({
|
||||||
id: "l-mismatch-label",
|
id: "l-mismatch-label",
|
||||||
type: "symbol",
|
type: "symbol",
|
||||||
source: "boundary-mismatch",
|
source: "boundary-mismatch",
|
||||||
|
minzoom: 16,
|
||||||
layout: {
|
layout: {
|
||||||
"text-field": ["coalesce", ["get", "cadastral_ref"], ""],
|
"text-field": ["coalesce", ["get", "cadastral_ref"], ""],
|
||||||
"text-font": ["Noto Sans Bold"],
|
"text-font": ["Noto Sans Regular"],
|
||||||
"text-size": 11,
|
"text-size": 10,
|
||||||
"text-anchor": "center",
|
"text-anchor": "center",
|
||||||
"text-allow-overlap": true,
|
"text-allow-overlap": false,
|
||||||
|
"text-max-width": 8,
|
||||||
},
|
},
|
||||||
paint: {
|
paint: {
|
||||||
"text-color": [
|
"text-color": [
|
||||||
|
|||||||
Reference in New Issue
Block a user