revert: disable building labels + remove debug endpoints
Building labels (C1/C2/C3) disabled — Martin MVT tiles don't include cadastral_ref as a property despite the PostgreSQL view exposing it. Root cause needs investigation (Martin config or alternative tile server). Removed temporary debug endpoints: - /api/eterra/debug-tile-props - /api/eterra/debug-tile-sample Kept /api/eterra/debug-fields (useful long-term diagnostic). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -58,7 +58,6 @@ const LAYER_IDS = {
|
||||
terenuriLabel: "l-terenuri-label",
|
||||
cladiriFill: "l-cladiri-fill",
|
||||
cladiriLine: "l-cladiri-line",
|
||||
cladiriLabel: "l-cladiri-label",
|
||||
selectionFill: "l-selection-fill",
|
||||
selectionLine: "l-selection-line",
|
||||
drawPolygonFill: "l-draw-polygon-fill",
|
||||
@@ -439,15 +438,9 @@ export const MapViewer = forwardRef<MapViewerHandle, MapViewerProps>(
|
||||
paint: { "fill-color": "#3b82f6", "fill-opacity": 0.5 } });
|
||||
map.addLayer({ id: LAYER_IDS.cladiriLine, type: "line", source: SOURCES.cladiri, "source-layer": SOURCES.cladiri, minzoom: 14,
|
||||
paint: { "line-color": "#1e3a5f", "line-width": 0.6 } });
|
||||
// Building body labels — use SAME source as terenuri to test rendering
|
||||
// If this works with terenuri source, problem is with gis_cladiri tiles
|
||||
map.addLayer({ id: LAYER_IDS.cladiriLabel, type: "symbol", source: SOURCES.cladiri, "source-layer": SOURCES.cladiri, minzoom: 15,
|
||||
layout: {
|
||||
"text-field": "{cadastral_ref}",
|
||||
"text-font": ["Noto Sans Regular"],
|
||||
"text-size": 9, "text-anchor": "top", "text-offset": [0, 1],
|
||||
},
|
||||
paint: { "text-color": "#dc2626", "text-halo-color": "#fff", "text-halo-width": 2 } });
|
||||
// TODO: Building body labels (C1, C2...) — disabled pending Martin tile investigation
|
||||
// Martin MVT tiles don't include cadastral_ref as a property despite the view exposing it.
|
||||
// Next step: evaluate alternatives (pg_tileserv, GeoJSON source, Martin config).
|
||||
|
||||
// === Selection highlight ===
|
||||
map.addLayer({ id: LAYER_IDS.selectionFill, type: "fill", source: SOURCES.terenuri, "source-layer": SOURCES.terenuri, minzoom: 13,
|
||||
|
||||
@@ -46,7 +46,6 @@ const BASE_LAYERS = [
|
||||
"l-terenuri-label",
|
||||
"l-cladiri-fill",
|
||||
"l-cladiri-line",
|
||||
"l-cladiri-label",
|
||||
];
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
|
||||
Reference in New Issue
Block a user