Skip to content

Commit

Permalink
feat(layerFlyTo): add flyTo position to layers (#438)
Browse files Browse the repository at this point in the history
* feat(layerFlyTo): add flyTo position to layers

* style(layerFlyTo): sort imports

* feat(layerFlyTo): add flyTo for main and compare layer

* refactor(layerFlyTo): remove flyTo from layerListItem
  • Loading branch information
KatvonRivia committed Jul 29, 2020
1 parent cf86605 commit 98c3f93
Show file tree
Hide file tree
Showing 4 changed files with 266 additions and 10 deletions.
228 changes: 228 additions & 0 deletions data/layers-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@
"timeFormat": {
"year": "2-digit",
"month": "long"
},
"flyTo": {
"position": {
"height": 15000000.06,
"latitude": 90,
"longitude": 0
},
"orientation": {
"heading": 0,
"pitch": -90,
"roll": 0
}
}
},
"sst.analysed_sst": {
Expand All @@ -13,6 +25,18 @@
"timeFormat": {
"year": "numeric",
"month": "long"
},
"flyTo": {
"position": {
"height": 15000000.06,
"latitude": 90,
"longitude": 0
},
"orientation": {
"heading": 0,
"pitch": -90,
"roll": 0
}
}
},
"oc.chlor_a": {
Expand All @@ -21,6 +45,18 @@
"timeFormat": {
"year": "numeric",
"month": "long"
},
"flyTo": {
"position": {
"height": 15000000.06,
"latitude": 90,
"longitude": 0
},
"orientation": {
"heading": 0,
"pitch": -90,
"roll": 0
}
}
},
"aerosol.AOD550_mean": {
Expand All @@ -29,6 +65,18 @@
"timeFormat": {
"year": "numeric",
"month": "long"
},
"flyTo": {
"position": {
"height": 15000000.06,
"latitude": 90,
"longitude": 0
},
"orientation": {
"heading": 0,
"pitch": -90,
"roll": 0
}
}
},
"cloud.cfc": {
Expand All @@ -37,6 +85,18 @@
"timeFormat": {
"year": "numeric",
"month": "long"
},
"flyTo": {
"position": {
"height": 15000000.06,
"latitude": 90,
"longitude": 0
},
"orientation": {
"heading": 0,
"pitch": -90,
"roll": 0
}
}
},
"sea_level.sla": {
Expand All @@ -45,6 +105,18 @@
"timeFormat": {
"year": "numeric",
"month": "long"
},
"flyTo": {
"position": {
"height": 15000000.06,
"latitude": 90,
"longitude": 0
},
"orientation": {
"heading": 0,
"pitch": -90,
"roll": 0
}
}
},
"sea_surface_salinity.sss": {
Expand All @@ -53,6 +125,18 @@
"timeFormat": {
"year": "numeric",
"month": "long"
},
"flyTo": {
"position": {
"height": 15000000.06,
"latitude": 90,
"longitude": 0
},
"orientation": {
"heading": 0,
"pitch": -90,
"roll": 0
}
}
},
"soil_moisture.sm": {
Expand All @@ -61,6 +145,18 @@
"timeFormat": {
"year": "numeric",
"month": "long"
},
"flyTo": {
"position": {
"height": 15000000.06,
"latitude": 90,
"longitude": 0
},
"orientation": {
"heading": 0,
"pitch": -90,
"roll": 0
}
}
},
"ozone.atmosphere_mole_content_of_ozone": {
Expand All @@ -69,6 +165,18 @@
"timeFormat": {
"year": "numeric",
"month": "long"
},
"flyTo": {
"position": {
"height": 15000000.06,
"latitude": 90,
"longitude": 0
},
"orientation": {
"heading": 0,
"pitch": -90,
"roll": 0
}
}
},
"land_cover.lccs_class": {
Expand All @@ -77,6 +185,18 @@
"timeFormat": {
"year": "numeric",
"month": "long"
},
"flyTo": {
"position": {
"height": 15000000.06,
"latitude": 90,
"longitude": 0
},
"orientation": {
"heading": 0,
"pitch": -90,
"roll": 0
}
}
},
"sea_state.swh_mean": {
Expand All @@ -85,6 +205,18 @@
"timeFormat": {
"year": "numeric",
"month": "long"
},
"flyTo": {
"position": {
"height": 15000000.06,
"latitude": 90,
"longitude": 0
},
"orientation": {
"heading": 0,
"pitch": -90,
"roll": 0
}
}
},
"sea_ice_sh.ice_conc": {
Expand All @@ -93,6 +225,18 @@
"timeFormat": {
"year": "numeric",
"month": "long"
},
"flyTo": {
"position": {
"height": 15000000.06,
"latitude": 90,
"longitude": 0
},
"orientation": {
"heading": 0,
"pitch": -90,
"roll": 0
}
}
},
"sea_ice_nh.ice_conc": {
Expand All @@ -101,48 +245,132 @@
"timeFormat": {
"year": "numeric",
"month": "long"
},
"flyTo": {
"position": {
"height": 15000000.06,
"latitude": 90,
"longitude": 0
},
"orientation": {
"heading": 0,
"pitch": -90,
"roll": 0
}
}
},
"greenland_ice.sec": {
"colorMap": "custom",
"timeFormat": {
"year": "numeric",
"month": "long"
},
"flyTo": {
"position": {
"height": 15000000.06,
"latitude": 90,
"longitude": 0
},
"orientation": {
"heading": 0,
"pitch": -90,
"roll": 0
}
}
},
"permafrost.pfr": {
"colorMap": "custom",
"basemap": "land",
"timeFormat": {
"year": "numeric"
},
"flyTo": {
"position": {
"height": 15000000.06,
"latitude": 90,
"longitude": 0
},
"orientation": {
"heading": 0,
"pitch": -90,
"roll": 0
}
}
},
"snow.swe": {
"colorMap": "ocean",
"timeFormat": {
"year": "numeric",
"month": "long"
},
"flyTo": {
"position": {
"height": 15000000.06,
"latitude": 90,
"longitude": 0
},
"orientation": {
"heading": 0,
"pitch": -90,
"roll": 0
}
}
},
"biomass.agb": {
"colorMap": "custom",
"timeFormat": {
"year": "numeric",
"month": "long"
},
"flyTo": {
"position": {
"height": 15000000.06,
"latitude": 90,
"longitude": 0
},
"orientation": {
"heading": 0,
"pitch": -90,
"roll": 0
}
}
},
"greenhouse.xco2": {
"colorMap": "custom",
"timeFormat": {
"year": "numeric",
"month": "long"
},
"flyTo": {
"position": {
"height": 15000000.06,
"latitude": 90,
"longitude": 0
},
"orientation": {
"heading": 0,
"pitch": -90,
"roll": 0
}
}
},
"greenhouse.xch4": {
"colorMap": "custom",
"timeFormat": {
"year": "numeric",
"month": "long"
},
"flyTo": {
"position": {
"height": 15000000.06,
"latitude": 90,
"longitude": 0
},
"orientation": {
"heading": 0,
"pitch": -90,
"roll": 0
}
}
}
}
6 changes: 3 additions & 3 deletions scripts/update-metadata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

version=0.6.1
workingDir="./download"
layersConfigFile="../data/layers-config.json"
layersConfigFile="./data/layers-config.json"

# take optional layer ID from command line argument
layerID=$1
layerID=$1

# check if layer ID is set
if [ -z $layerID ]
Expand All @@ -22,7 +22,7 @@ fi
# for all key of the layer config
for datasetId in ${keys}
do
echo $datasetId
echo $datasetId

# download metadata file
path=gs://esa-cfs-tiles/$version/$datasetId/metadata.json
Expand Down
Loading

0 comments on commit 98c3f93

Please sign in to comment.