diff --git a/src/modules/geoportal/components/map-viewer.tsx b/src/modules/geoportal/components/map-viewer.tsx index 0714b7e..fa90550 100644 --- a/src/modules/geoportal/components/map-viewer.tsx +++ b/src/modules/geoportal/components/map-viewer.tsx @@ -439,14 +439,15 @@ export const MapViewer = forwardRef( 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 — same pattern as terenuriLabel (which works) + // 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": ["coalesce", ["get", "cadastral_ref"], ""], + "text-field": "{cadastral_ref}", "text-font": ["Noto Sans Regular"], - "text-size": 9, "text-anchor": "center", "text-allow-overlap": true, + "text-size": 9, "text-anchor": "top", "text-offset": [0, 1], }, - paint: { "text-color": "#1e3a8a", "text-halo-color": "#fff", "text-halo-width": 1.5 } }); + paint: { "text-color": "#dc2626", "text-halo-color": "#fff", "text-halo-width": 2 } }); // === Selection highlight === map.addLayer({ id: LAYER_IDS.selectionFill, type: "fill", source: SOURCES.terenuri, "source-layer": SOURCES.terenuri, minzoom: 13,