How opensourcefellows/map_dashboard_hackathon works
Map Dashboard is a React frontend for viewing environmental geospatial layers. A visitor enters the routed app, lands on the map, and sees GeoJSON collections loaded from public fixtures; they can toggle layer visibility and navigate to project, admin, or account pages. The internal structure separates app routing/state, map presentation, data loading, and supporting domain types. The README also documents dark mode and a legend, and the tree includes a QGIS loader. Some of these supporting modules were not excerpted, so their runtime connections are not asserted.
Main entry points: App.tsx App Routes and State · fixture-reader.ts Fixture Reader · map.ts Map Types · MapContainer.tsx Map Display
Components 20
App and Navigation
- Theme and Router Entry
src/main.tsx - App Routes and State
src/App.tsx - Side Navigation
src/components/Layout/SideNav.tsx
Map Experience
- Map Display
src/components/Map/MapContainer.tsx - GeoJSON Layer
src/components/Map/Layer.tsx - Layer Controls
src/components/Map/LayerControls.tsx - Map Legend
src/components/Map/MapLegend.tsx
Data and Types
- Fixture Reader
src/data/fixture-reader.ts - GeoJSON Fixtures
public/fixtures - Geometry Types
src/types/geometry.ts - Map Types
src/types/map.ts - QGIS Data Loader
src/utils/qgisDataLoader.ts - Mock Map Data
src/data/mockData.ts - Map Data Hook
src/hooks/useMapData.ts - Fixture Loader Hook
src/hooks/fixture-loader.ts
Other Pages
- Projects Page
src/pages/ProjectsPage.tsx - Admin Page
src/pages/AdminPage.tsx - Account Page
src/pages/AccountPage.tsx - Not Found Page
src/pages/NotFoundPage.tsx
Other components
- Visitor
Connections 21
- Visitor → Theme and Router Entry: opens app
- Theme and Router Entry → App Routes and State: renders
src/main.tsx - App Routes and State → Side Navigation: renders
src/App.tsx - Side Navigation → App Routes and State: navigates routes
src/components/Layout/SideNav.tsx - App Routes and State → Fixture Reader: loads collections
src/App.tsx - Fixture Reader → GeoJSON Fixtures: fetches GeoJSON
src/data/fixture-reader.ts - App Routes and State → Map Display: renders visible layers
src/App.tsx - App Routes and State → Layer Controls: passes visibility state
src/App.tsx - Map Display → GeoJSON Layer: renders features
src/components/Map/MapContainer.tsx - Map Display → Geometry Types: uses geometry types
src/components/Map/MapContainer.tsx - GeoJSON Layer → Geometry Types: uses geometry types
src/components/Map/Layer.tsx - Layer Controls → Map Types: uses visibility type
src/components/Map/LayerControls.tsx - Fixture Reader → Geometry Types: returns collections
src/data/fixture-reader.ts - App Routes and State → Projects Page: routes to
src/App.tsx - App Routes and State → Admin Page: routes to
src/App.tsx - App Routes and State → Account Page: routes to
src/App.tsx - App Routes and State → Not Found Page: routes to
src/App.tsx - Map Data Hook → Map Types: uses map types
src/hooks/useMapData.ts - Mock Map Data → Map Types: uses map types
src/data/mockData.ts - Fixture Loader Hook → Fixture Reader: uses reader
src/hooks/fixture-loader.ts - QGIS Data Loader → Map Types: uses map types
src/utils/qgisDataLoader.ts