-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## This PR, merged to `ghg` ### Features - Analysis define - New step-by-step layout and various UI tweaks - Added sticky footer, moved submit and cancel buttons there - Added an AoI preset for North America - Datasets are not filtered from `/collections` metadata (spatial, temporal extent) - Dates are now set by default to 2018 - 2022 - Replaced date presets with "2018 - 2022" and "last 10 years" - Date selection not possible anymore before 01-01-1980 - Prevent users from selecting datasets when time range selected would mean fetching too many STAC items - Analysis results page: set a hardcoded limit on the number of items that can be requested as a failsafe mechanism for ☝️ ### Bugfixes - Removed logs in production (US-GHG-Center/veda-config-ghg#152) - Temporary fix of critical error encoutered during demos (#680) - Remove Shadow Scroll as a preventative method for (#691) - Check only day level equity to validate dates (#676) - Remove unneded attributes (#694) - BlockMap initial position error (#687) ### Copy changes - [Updated define copy](f1e7171) - [Disclaimer on results page](54cf01e) --- ## Other PRs, merged to `main` ### Added in veda UI but made configurable (so not affecting veda-config): - #673 - #665 - #664 ### Bugfixes - #672 - #670 / #666 - #662 - #691 - #650 - #676 - #694 - #687
- Loading branch information
Showing
33 changed files
with
867 additions
and
637 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import { FeatureCollection, Polygon } from 'geojson'; | ||
import { featureCollection } from '@turf/helpers'; | ||
|
||
export type RegionPreset = 'world' | 'north-america'; | ||
|
||
export const FeatureByRegionPreset: Record< | ||
RegionPreset, | ||
FeatureCollection<Polygon> | ||
> = { | ||
world: featureCollection([ | ||
{ | ||
type: 'Feature', | ||
id: 'world', | ||
properties: {}, | ||
geometry: { | ||
coordinates: [ | ||
[ | ||
[-180, -89], | ||
[180, -89], | ||
[180, 89], | ||
[-180, 89], | ||
[-180, -89] | ||
] | ||
], | ||
type: 'Polygon' | ||
} | ||
} | ||
]), | ||
'north-america': featureCollection([ | ||
{ | ||
type: 'Feature', | ||
id: 'north-america', | ||
properties: {}, | ||
geometry: { | ||
coordinates: [ | ||
[ | ||
[-180, 0], | ||
[-180, 89], | ||
[-60, 89], | ||
[-60, 0], | ||
[-180, 0] | ||
] | ||
], | ||
type: 'Polygon' | ||
} | ||
} | ||
]) | ||
}; | ||
|
||
export const MAX_QUERY_NUM = 300; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.