Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 79 additions & 0 deletions mock/datasets/noaa.data.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
---
id: noaa
name: Sample dataset with different NOAA layers
featured: true
description: NOAA Test for air_quality_ndgd_ozone_1hr_avg_time_bc
media:
src: https://blink.ucsd.edu/_images/technology-tab/software/esri-logo.png
infoDescription: |
::markdown
NOAA
layers:
- id: ndgd_ozone_1hr_avg_time_bc
stacApiEndpoint: https://dev.openveda.cloud/api/stac
stacCol: air_quality_ndgd_ozone_1hr_avg_time_bc
name: NDGD Air Quality Forecast Guidance for One Hour Average
type: wms
description: NDGD Air Quality Forecast Guidance for One Hour Average Ozone Concentration Bias-corrected Image Service's
sourceParams:
layers: ndgd_ozone_1hr_avg_time_bc
version: 1.3.0
crs: EPSG:3857
styles:
zoomExtent:
- 0
- 20
analysis:
exclude: true
legend:
type: gradient
min: 0
max: 0
stops:
- rgb(231,61,52)
- rgb(255,141,90)
- rgb(255,212,137)
- rgb(255,255,196)
- rgb(200,234,140)
- rgb(123,203,112)
- rgb(0,101,91)
- rgb(0,104, 59)

- id: ozone_colormap
stacApiEndpoint: https://dev.openveda.cloud/api/stac
stacCol: air_quality_ndgd_ozone_1hr_avg_time_bc
name: NDGD Air Quality Forecast Guidance for One Hour Average Ozone Colormap
type: wms
description: NDGD Air Quality Forecast Guidance for One Hour Average Ozone Concentration Bias-corrected Image Service's
sourceParams:
layers: ndgd_ozone_1hr_avg_time_bc:ozone_colormap
version: 1.3.0
crs: EPSG:3857
styles:
zoomExtent:
- 0
- 20
analysis:
exclude: true
legend:
type: gradient
min: -3.0
max: 3.0
stops:
- rgb(231,61,52)
- rgb(255,141,90)
- rgb(255,212,137)
- rgb(255,255,196)
- rgb(200,234,140)
- rgb(123,203,112)
- rgb(0,101,91)
- rgb(0,104, 59)

---
<Block>
<Prose>

ESRI ESRI

</Prose>
</Block>
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export function ExplorationMap(props: ExplorationMapProps) {
)
.slice()
.reverse();

console.log(`loadedDatasets`, loadedDatasets);
const onStyleUpdate = useCallback(
(style: ExtendedStyle) => {
const updatedDatasets = datasets.map((dataset) => {
Expand All @@ -116,7 +116,8 @@ export function ExplorationMap(props: ExplorationMapProps) {
if (!layerMetadata) return dataset;

const currentMeta = dataset.meta ?? {};

console.log('dataset', dataset);
console.log('layerMetadata', layerMetadata);
return {
...dataset,
meta: {
Expand Down
Loading