How pacificclimate/chyp works
CHYP is an interactive British Columbia hydrology portal. Users explore water features on a map, search the Freshwater Atlas, select a feature, then download its GeoJSON or model timeseries—including upstream/downstream network data. The graph also preserves the point-plotting, help, and map-legend capabilities. Source excerpts show the main UI composition and download/API calls; relationships for some map internals are supported by the SOURCE INDEX or README rather than full implementation excerpts.
Main entry points: MapComponent.jsx Interactive map · InteractionLayer.jsx Feature interaction · DataSelectionTable.jsx Data selection panel · FwaNameSearch.jsx FWA name search
Components 22
Map exploration
- Application shell
app/src/App.jsx - Interactive map
app/src/components/map/MapComponent.jsx - Feature interaction
app/src/components/map/InteractionLayer.jsx - FWA name search
app/src/components/map/FwaNameSearch.jsx - FWA name index
app/public/fwa_index.json - Vector tile renderer
app/src/components/map/vectorGridCanvasRenderer.js - Map styles
app/src/styles.js - Base map config
app/src/baseMapConfig.js
Data downloads
- Data selection panel
app/src/components/data/DataSelectionTable.jsx - Browser downloads
app/src/utils/downloadFile.js
Map support
- Point plotter
app/src/components/map/PointPlotter.jsx - Network legend
app/src/components/map/NetworkLegend.jsx - Help guide
app/src/components/info/HelpGuide.jsx - Project branding
app/src/components/info/LogoBox.jsx
Data services
- Timeseries API client
app/src/services/timeseriesApi.js - Stream network client
app/src/services/streamNetApi.js - Network GeoJSON client
app/src/services/geoJsonApi.js - BCGW map service
- BBOX server
- Hydromosaic API
- Base map tiles
Other components
- Portal user
Connections 24
- Portal user → Application shell: opens portal
README.md - Application shell → Interactive map: renders
app/src/App.jsx - Interactive map → Feature interaction: renders
app/src/components/map/MapComponent.jsx - Interactive map → FWA name search: renders
app/src/components/map/MapComponent.jsx - Interactive map → Point plotter: renders
app/src/components/map/MapComponent.jsx - Interactive map → Network legend: renders
app/src/components/map/MapComponent.jsx - Interactive map → Help guide: renders
app/src/components/map/MapComponent.jsx - Interactive map → Project branding: renders
app/src/components/map/MapComponent.jsx - Interactive map → Map styles: uses styles
app/src/components/map/MapComponent.jsx - Interactive map → Base map config: uses config
app/src/components/map/MapComponent.jsx - Interactive map → Base map tiles: loads tiles
README.md - FWA name search → FWA name index: searches index
README.md - FWA name search → BCGW map service: queries features
app/src/components/map/FwaNameSearch.jsx - Feature interaction → Vector tile renderer: uses renderer
app/src/components/map/InteractionLayer.jsx - Feature interaction → BBOX server: fetches feature
app/src/components/map/InteractionLayer.jsx - Feature interaction → Stream network client: fetches networks
app/src/components/map/InteractionLayer.jsx - Feature interaction → Network GeoJSON client: requests GeoJSON
app/src/components/map/InteractionLayer.jsx - Feature interaction → Data selection panel: renders panel
app/src/components/map/InteractionLayer.jsx - Feature interaction → Browser downloads: downloads GeoJSON
app/src/components/map/InteractionLayer.jsx - Data selection panel → Timeseries API client: requests options
app/src/components/data/DataSelectionTable.jsx - Data selection panel → Timeseries API client: requests downloads
app/src/components/data/DataSelectionTable.jsx - Data selection panel → Browser downloads: starts download
app/src/components/data/DataSelectionTable.jsx - Network GeoJSON client → BBOX server: fetches network pages
app/src/services/geoJsonApi.js - Timeseries API client → Hydromosaic API: requests data
app/src/services/timeseriesApi.js