Skip to content

fix: project mode terrain/drainage cropped to full MWS area#344

Open
Athina09 wants to merge 1 commit intocore-stack-org:mainfrom
Athina09:fix/project-mws-full-area
Open

fix: project mode terrain/drainage cropped to full MWS area#344
Athina09 wants to merge 1 commit intocore-stack-org:mainfrom
Athina09:fix/project-mws-full-area

Conversation

@Athina09
Copy link

Bug fix: project mode terrain/drainage cropped to full MWS area

Problem

In project mode, terrain and drainage layers were cropped to a single MWS instead of the full project area (all micro-watersheds).

Solution

  • dashboard_basemap.jsx: normalizeMwsFeatures() now supports single OL or GeoJSON feature (wraps to array). Project mode builds one MultiPolygon from all MWS and uses it to crop terrain and drainage.
  • water_project_dashboard.jsx: mwsForMap always passes an array of all matched MWS to the basemap.

Result

Terrain and drainage are cropped to the full project extent (all micro-watersheds).

- normalizeMwsFeatures handles single OL or GeoJSON feature (wrap to array)
- Dashboard mwsForMap always passes array of all matched MWS for basemap
- Terrain and drainage layers crop to full project area (all micro-watersheds)

Made-with: Cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant