fix(geoportal): building labels C1/C2 — simpler expression + minzoom 16

Previous index-of expression wasn't rendering. Simplified to use
filter with index-of on dash + slice from dash position.
Also lowered minzoom from 17 to 16.

Added diagnostic log in enrichment for building cross-ref count
to debug HAS_BUILDING=0 cases.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
AI Assistant
2026-03-27 07:11:56 +02:00
parent 4e67c29267
commit 4c1ffe3d01
2 changed files with 19 additions and 15 deletions
@@ -298,6 +298,10 @@ export async function enrichFeatures(
if (baseRef) add(baseRef);
}
console.log(
`[enrich] siruta=${siruta}: ${terenuri.length} terenuri, ${cladiri.length} cladiri in DB, ${buildingMap.size} chei in buildingMap`,
);
// ── Fetch immovable list from eTerra ──
push({ phase: "Descărcare listă imobile", downloaded: 0 });
const immovableListById = new Map<string, any>();