Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
198 changes: 198 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "map-explorer",
"private": true,
"version": "1.0.1",
"version": "1.1.0",
"type": "module",
"description": "Search portal for ESA data via STAC (Copernicus Data Space Ecosystem)",
"license": "MIT",
Expand All @@ -20,6 +20,7 @@
"test:watch": "vitest"
},
"dependencies": {
"@geomatico/maplibre-cog-protocol": "^0.9.0",
"maplibre-gl": "^4.7.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
Expand Down
5 changes: 5 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import FilterPanel, { EMPTY_FORM, type FilterForm } from './components/FilterPan
import MapView from './components/MapView'
import ResultList from './components/ResultList'
import ItemDetail from './components/ItemDetail'
import CodeModal from './components/CodeModal'
import { useCollections } from './hooks/useCollections'
import { useStacSearch } from './hooks/useStacSearch'
import { useSavedSearches } from './hooks/useSavedSearches'
Expand Down Expand Up @@ -47,6 +48,7 @@ export default function App() {
const [selectedIds, setSelectedIds] = useState<Set<string>>(new Set())
const [hoveredId, setHoveredId] = useState<string | null>(null)
const [detailItem, setDetailItem] = useState<StacItem | null>(null)
const [codeOpen, setCodeOpen] = useState(false)
const [drawing, setDrawing] = useState(false)

// Collapsible side panels.
Expand Down Expand Up @@ -168,10 +170,13 @@ export default function App() {
onLoadMore={stac.loadMore}
onClose={() => setResultsOpen(false)}
onClearSelection={clearSelection}
onShowCode={() => setCodeOpen(true)}
canShowCode={stac.lastParams != null}
/>
</div>

{detailItem && <ItemDetail item={detailItem} onClose={() => setDetailItem(null)} />}
{codeOpen && <CodeModal params={stac.lastParams} onClose={() => setCodeOpen(false)} />}
</div>
)
}
Loading
Loading