diff --git a/src/app/(portal)/portal/page.tsx b/src/app/(portal)/portal/page.tsx index dae2fb8..0228099 100644 --- a/src/app/(portal)/portal/page.tsx +++ b/src/app/(portal)/portal/page.tsx @@ -43,7 +43,7 @@ import { } from "lucide-react"; import { cn } from "@/shared/lib/utils"; import { SelectionToolbar, type SelectionMode } from "@/modules/geoportal/components/selection-toolbar"; -import { FeatureInfoPanel } from "@/modules/geoportal/components/feature-info-panel"; +// Simple inline feature panel — no enrichment, no CF extract import type { MapViewerHandle } from "@/modules/geoportal/components/map-viewer"; import type { BasemapId, @@ -1126,6 +1126,7 @@ type MapLike = { getLayer(id: string): unknown; getSource(id: string): unknown; setFilter(id: string, filter: unknown[] | null): void; + setLayoutProperty(id: string, prop: string, value: unknown): void; fitBounds( bounds: [number, number, number, number], opts?: Record, @@ -1478,11 +1479,50 @@ function HartaContent() { - {/* Top-right: basemap switcher + feature panel */} + {/* Top-right: basemap switcher + simple feature info */}
{clickedFeature && selectionMode === "off" && ( - setClickedFeature(null)} /> +
+
+

+ {String(clickedFeature.properties.cadastral_ref ?? clickedFeature.properties.object_id ?? "Parcela")} +

+ +
+
+ {(() => { + const p = clickedFeature.properties; + const sir = String(p.siruta ?? ""); + const cad = String(p.cadastral_ref ?? ""); + const area = Number(p.area_value ?? 0); + return ( + <> + {sir && ( +
+ SIRUTA + {sir} +
+ )} + {cad && ( +
+ Nr. cadastral + {cad} +
+ )} + {area > 0 && ( +
+ Suprafata + {area.toLocaleString("ro-RO")} mp +
+ )} + + ); + })()} +
+
)}