diff --git a/src/app/(portal)/portal/page.tsx b/src/app/(portal)/portal/page.tsx index eeae2b7..74ae5f5 100644 --- a/src/app/(portal)/portal/page.tsx +++ b/src/app/(portal)/portal/page.tsx @@ -1502,6 +1502,7 @@ function HartaContent() { ref={mapHandleRef} className="h-full w-full" basemap={basemap} + zoom={15} selectionType={selectionMode} onFeatureClick={handleFeatureClick} onSelectionChange={setSelectedFeatures} @@ -1579,6 +1580,18 @@ function HartaContent() { ); })()} +
+ +
)} @@ -1590,6 +1603,7 @@ function HartaContent() { selectedFeatures={selectedFeatures} selectionMode={selectionMode} onSelectionModeChange={handleSelectionModeChange} + hideEnrichment onClearSelection={() => { mapHandleRef.current?.clearSelection(); setSelectedFeatures([]); diff --git a/src/modules/geoportal/components/selection-toolbar.tsx b/src/modules/geoportal/components/selection-toolbar.tsx index de7b1ea..8333d7e 100644 --- a/src/modules/geoportal/components/selection-toolbar.tsx +++ b/src/modules/geoportal/components/selection-toolbar.tsx @@ -21,6 +21,8 @@ type SelectionToolbarProps = { onSelectionModeChange: (mode: SelectionMode) => void; onClearSelection: () => void; className?: string; + /** Hide the enrichment button (e.g. in portal view) */ + hideEnrichment?: boolean; }; const EXPORT_FORMATS: { id: ExportFormat; label: string }[] = [ @@ -40,6 +42,7 @@ export function SelectionToolbar({ onSelectionModeChange, onClearSelection, className, + hideEnrichment, }: SelectionToolbarProps) { const [exporting, setExporting] = useState(false); const [enriching, setEnriching] = useState(false); @@ -138,7 +141,7 @@ export function SelectionToolbar({ - + }