How hissyam90/webgis-kaltim works
This is a React/FastAPI WebGIS for exploring power plants and energy potential across Kalimantan, with district-level analysis for East Kalimantan. The main workflow is selecting a map mode and filters, loading facility data and regional boundaries, deriving filtered or area-level results, and presenting them on the map and in the sidebar; users can inspect details, view statistics, and export results. The README documents the wider capabilities. Backend source excerpts were not provided, so backend links rely on README statements; unsampled frontend wiring is omitted where its caller is not evidenced.
Main entry points: App.jsx App Workflow · MapControls.jsx Map Controls · MapView.jsx Interactive Map · Sidebar.jsx Search and Filters
Components 22
Map Exploration
- App Workflow
frontend/src/App.jsx - Interactive Map
frontend/src/components/map/MapView.jsx - Map Controls
frontend/src/components/map/MapControls.jsx - Layer Control
frontend/src/components/map/LayerControl.jsx - Dynamic Legend
frontend/src/components/map/Legend.jsx - Map Navigation
frontend/src/components/map/FlyToLocation.jsx - Search and Filters
frontend/src/components/ui/Sidebar.jsx - Year Filter
frontend/src/components/ui/YearRangeFilter.jsx
Regional Analysis
- District Boundaries
frontend/src/hooks/useKaltimBoundaries.js - Metric Selection
frontend/src/components/map/AnalysisMetricControl.jsx - Area Metrics
frontend/src/utils/analysisHelpers.js
Data Services
- Facility Fetch
frontend/src/hooks/usePembangkit.js - FastAPI Service
backend/main.py - PostgreSQL
- Dataset Import
backend/import_data.py - Dataset Processing
backend/process_datasets.py
Details and Export
- Facility Details
frontend/src/components/modals/DetailModal.jsx - Weather Fetch
frontend/src/hooks/useWeather.js - Open-Meteo
- Statistics Modal
frontend/src/components/modals/StatsModal.jsx - CSV Export
frontend/src/utils/exportCsv.js
Other components
- User
Connections 22
- User → App Workflow: uses
- App Workflow → Facility Fetch: loads facilities
frontend/src/App.jsx - Facility Fetch → FastAPI Service: requests data
frontend/src/hooks/usePembangkit.js - FastAPI Service → PostgreSQL: reads records
README.md - App Workflow → Interactive Map: renders map
frontend/src/App.jsx - App Workflow → Map Controls: renders controls
frontend/src/App.jsx - Map Controls → Layer Control: renders layer control
frontend/src/components/map/MapControls.jsx - Map Controls → Metric Selection: renders metric control
frontend/src/components/map/MapControls.jsx - App Workflow → Search and Filters: renders sidebar
frontend/src/App.jsx - Search and Filters → Year Filter: renders year filter
frontend/src/components/ui/Sidebar.jsx - App Workflow → District Boundaries: loads boundaries
frontend/src/App.jsx - District Boundaries → User: fetches GeoJSON
frontend/src/hooks/useKaltimBoundaries.js - App Workflow → Area Metrics: builds analysis
frontend/src/App.jsx - Area Metrics → Interactive Map: styles area metrics
frontend/src/components/map/MapView.jsx - Interactive Map → Map Navigation: uses navigation
frontend/src/components/map/MapView.jsx - App Workflow → Dynamic Legend: renders legend
frontend/src/App.jsx - App Workflow → Facility Details: renders details
frontend/src/App.jsx - App Workflow → Statistics Modal: renders statistics
frontend/src/App.jsx - App Workflow → CSV Export: exports results
frontend/src/App.jsx - Facility Details → Weather Fetch: shows weather
- Weather Fetch → Open-Meteo: requests forecast
frontend/src/hooks/useWeather.js - Dataset Import → PostgreSQL: imports CSV
README.md