Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Implement orbit track code #2279

Ben87161af87b21
diff --git a/config/default/common/config/wv.json/layers/reference/orbits/OrbitTracks_Aqua_Ascending.json b/config/default/common/config/wv.json/layers/reference/orbits/OrbitTracks_Aqua_Ascending.json
index 6f651b0ce..dfd8e33dc 100644
--- a/config/default/common/config/wv.json/layers/reference/orbits/OrbitTracks_Aqua_Ascending.json
+++ b/config/default/common/config/wv.json/layers/reference/orbits/OrbitTracks_Aqua_Ascending.json
@@ -4,34 +4,34 @@
"id": "OrbitTracks_Aqua_Ascending",
"title": "Aqua - Orbit Track & Time",
"subtitle": "Aqua / Space-Track.org",
- "description": "reference/orbits/OrbitTracks_Aqua_Ascending",
+ "description": "vector/OrbitTracks_Aqua_Ascending",
+ "type": "vector",
+ "tags": "vector vectors tracks",
"group": "overlays",
- "format": "image/png",
- "type": "wms",
- "period": "daily",
- "wrapadjacentdays": true,
- "layergroup": "Orbital Track",
- "daynight": [
- "day"
+ "layergroup": [
+ "vector",
+ "reference",
+ "reference_orbits"
],
- "track": "ascending",
- "startDate": "2002-05-04",
- "projections": {
- "antarctic": {
- "source": "GIBS:wms:antarctic"
- },
+ "inactive": false,
+ "vectorStyle": {
+ "id": "OrbitTracks_Aqua_Ascending",
"arctic": {
- "source": "GIBS:wms:arctic"
+ "id": "OrbitTracks_Aqua_Ascending_polar"
},
- "geographic": {
- "source": "GIBS:wms"
+ "antarctic": {
+ "id": "OrbitTracks_Aqua_Ascending_polar"
}
},
+ "daynight": "day",
+ "track": "ascending",
+ "startDate": "2019-12-28",
"palette": {
- "id": "OrbitTracks_Aqua_Ascending",
- "immutable": true
+ "immutable": true,
+ "id": "OrbitTracks_Aqua_Ascending"
},
- "tags": "tracks day"
+ "wrapadjacentdays": true,
+ "period": "daily"
}
}
}
\ No newline at end of file
diff --git a/config/default/common/vectorstyles/GRUMP_Settlements.json b/config/default/common/vectorstyles/GRUMP_Settlements.json
index 70cab7562..8e6092e9a 100644
--- a/config/default/common/vectorstyles/GRUMP_Settlements.json
+++ b/config/default/common/vectorstyles/GRUMP_Settlements.json
@@ -9,19 +9,32 @@
]
}
},
- "layers": [{
-
- "id": "GRUMP_Settlements_v1.01_STD",
- "source": "GRUMP_Settlements",
- "source-layer": "GRUMP_Settlements_v1.01_STD",
- "source-description": "Default",
- "type": "circle",
- "paint": {
- "circle-radius": ["step", ["zoom"], 1, 17, 2, 19, 3, 22, 5],
- "circle-color": "rgb(0, 123, 255)",
- "circle-stroke-color": "rgba(0,0,0,0.7)",
- "circle-opacity": 0.7,
- "circle-stroke-width": 0.3
+ "layers": [
+ {
+ "id": "GRUMP_Settlements_v1.01_STD",
+ "source": "GRUMP_Settlements",
+ "source-layer": "GRUMP_Settlements_v1.01_STD",
+ "source-description": "Default",
+ "type": "circle",
+ "paint": {
+ "circle-radius": [
+ "step",
+ [
+ "zoom"
+ ],
+ 1,
+ 1,
+ 2,
+ 3,
+ 3,
+ 6,
+ 5
+ ],
+ "circle-color": "rgb(0, 123, 255)",
+ "circle-stroke-color": "rgba(0,0,0,0.7)",
+ "circle-opacity": 0.7,
+ "circle-stroke-width": 0.3
+ }
}
- }]
+ ]
}
\ No newline at end of file
diff --git a/config/default/common/vectorstyles/OrbitTracks_Aqua_Ascending.json b/config/default/common/vectorstyles/OrbitTracks_Aqua_Ascending.json
new file mode 100644
index 000000000..1534e4b3f
--- /dev/null
+++ b/config/default/common/vectorstyles/OrbitTracks_Aqua_Ascending.json
@@ -0,0 +1,176 @@
+{
+ "version": 8,
+ "name": "Orbit Tracks",
+ "sources": {
+ "OrbitTracks_Aqua_Ascending": {
+ "type": "vector",
+ "tiles": [
+ "https://uat.gibs.earthdata.nasa.gov/wmts/epsg4326/best/OrbitTracks_Aqua_Ascending/default/{Time}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.mvt"
+ ]
+ }
+ },
+ "layers": [
+ {
+ "id": "OrbitTracks_Aqua_Ascending",
+ "source": "OrbitTracks_Aqua_Ascending",
+ "source-layer": "OrbitTracks_Aqua_Ascending",
+ "source-description": "Default",
+ "type": "symbol",
+ "layout": {
+ "text-field": [
+ "get",
+ "label"
+ ],
+ "text-font": [
+ "Open Sans Bold",
+ "Arial Unicode MS Bold"
+ ],
+ "text-size": [
+ "step",
+ [
+ "zoom"
+ ],
+ 5,
+ 1,
+ 7,
+ 3,
+ 11,
+ 5,
+ 14
+ ],
+ "text-transform": "uppercase",
+ "text-letter-spacing": 0.05,
+ "text-radial-offset": 1,
+ "text-variable-anchor": [
+ "right",
+ "left"
+ ]
+ },
+ "paint": {
+ "text-color": "#fff",
+ "text-halo-color": "#999",
+ "text-halo-width": 1,
+ "text-opacity": [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "case",
+ [
+ "!=",
+ [
+ "%",
+ [
+ "get",
+ "minute"
+ ],
+ 10
+ ],
+ 0
+ ],
+ 0,
+ 1
+ ],
+ 3,
+ [
+ "case",
+ [
+ "!=",
+ [
+ "%",
+ [
+ "get",
+ "minute"
+ ],
+ 5
+ ],
+ 0
+ ],
+ 0,
+ 1
+ ],
+ 5,
+ 1
+ ]
+ }
+ },
+ {
+ "id": "OrbitTracks_Aqua_Ascending",
+ "source": "OrbitTracks_Aqua_Ascending",
+ "source-layer": "OrbitTracks_Aqua_Ascending",
+ "source-description": "Default",
+ "type": "line",
+ "paint": {
+ "line-color": "rgb(21, 192, 230)",
+ "line-width": 2
+ }
+ },
+ {
+ "id": "OrbitTracks_Aqua_Ascending",
+ "source": "OrbitTracks_Aqua_Ascending",
+ "source-layer": "OrbitTracks_Aqua_Ascending",
+ "source-description": "Default",
+ "type": "circle",
+ "paint": {
+ "circle-radius": [
+ "step",
+ [
+ "zoom"
+ ],
+ 1.5,
+ 1,
+ 2.5,
+ 3,
+ 3.5,
+ 5,
+ 5
+ ],
+ "circle-color": "rgb(21, 192, 230)",
+ "circle-opacity": [
+ "step",
+ [
+ "zoom"
+ ],
+ [
+ "case",
+ [
+ "!=",
+ [
+ "%",
+ [
+ "get",
+ "minute"
+ ],
+ 10
+ ],
+ 0
+ ],
+ 0,
+ 1
+ ],
+ 3,
+ [
+ "case",
+ [
+ "!=",
+ [
+ "%",
+ [
+ "get",
+ "minute"
+ ],
+ 5
+ ],
+ 0
+ ],
+ 0,
+ 1
+ ],
+ 5,
+ 1
+ ]
+ }
+ }
+ ]
+}
\ No newline at end of file
diff --git a/config/default/release/config.json b/config/default/release/config.json
index c80b758f7..aae7c8e3b 100644
--- a/config/default/release/config.json
+++ b/config/default/release/config.json
@@ -1,7 +1,7 @@
{
"wv-options-fetch": [
{
- "from": "https://gibs.earthdata.nasa.gov/wmts/epsg4326/best/wmts.cgi?request=GetCapabilities",
+ "from": "https://uat.gibs.earthdata.nasa.gov/wmts/epsg4326/best/wmts.cgi?request=GetCapabilities",
"to": "gibs-geographic.xml"
},
{
diff --git a/config/default/release/config/wv.json/sources.json b/config/default/release/config/wv.json/sources.json
index 49c7af1eb..1da4db821 100644
--- a/config/default/release/config/wv.json/sources.json
+++ b/config/default/release/config/wv.json/sources.json
@@ -7,7 +7,7 @@
"url": "https://gibs-{a-c}.earthdata.nasa.gov/wmts/epsg3031/best/wmts.cgi"
},
"GIBS:geographic": {
- "url": "https://gibs-{a-c}.earthdata.nasa.gov/wmts/epsg4326/best/wmts.cgi"
+ "url": "https://uat.gibs.earthdata.nasa.gov/wmts/epsg4326/best/wmts.cgi"
},
"GIBS:wms": {
"url": "https://gibs-{a-c}.earthdata.nasa.gov/wms/epsg4326/best/wms.cgi"
diff --git a/package-lock.json b/package-lock.json
index 348e8c5d6..2c5b9a4cd 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -4125,9 +4125,9 @@
"integrity": "sha1-zlblOfg1UrWNENZy6k1vya3HsjQ="
},
"@mapbox/mapbox-gl-style-spec": {
- "version": "13.17.0",
- "resolved": "https://registry.npmjs.org/@mapbox/mapbox-gl-style-spec/-/mapbox-gl-style-spec-13.17.0.tgz",
- "integrity": "sha512-ZxOdHiuUmDcvQNc1uTnBLVJZxiQVYvoNZaQVxWwl+6Id6tjGQFtieZxXiv/RXIOpQQT35JuioatTKdsjpMsULA==",
+ "version": "13.19.2",
+ "resolved": "https://registry.npmjs.org/@mapbox/mapbox-gl-style-spec/-/mapbox-gl-style-spec-13.19.2.tgz",
+ "integrity": "sha512-FCkbSleSBpMjMjJO91dPMfksdX8aL2CydFqH1Xm3mlQRofMb08NYnewYbLCqqE1WFrprAP/E8rPK1/jTdb6hvg==",
"requires": {
"@mapbox/jsonlint-lines-primitives": "~2.0.2",
"@mapbox/point-geometry": "^0.1.0",
@@ -17153,9 +17153,8 @@
}
},
"ol-mapbox-style": {
- "version": "6.1.2",
- "resolved": "https://registry.npmjs.org/ol-mapbox-style/-/ol-mapbox-style-6.1.2.tgz",
- "integrity": "sha512-0n+6K1dhMH7/AMA1eAEb1Pt4ZRFWr1fiJWSgwHfDFQpK4yuhJgtLcn9dtxprB1NOpTHeJ5XbTKOrgTY/DR0oxQ==",
+ "version": "github:Benjaki2/ol-mapbox-style#41f7b54706f6486888f1a9d2b25da503e85bee9d",
+ "from": "github:Benjaki2/ol-mapbox-style#text-variable-anchor-2279",
"requires": {
"@mapbox/mapbox-gl-style-spec": "^13.14.0",
"mapbox-to-css-font": "^2.4.0",
diff --git a/package.json b/package.json
index 4510d1752..4b13cfe74 100644
--- a/package.json
+++ b/package.json
@@ -192,7 +192,7 @@
"moment-locales-webpack-plugin": "^1.1.2",
"node-dir": "^0.1.17",
"ol": "6.4.x",
- "ol-mapbox-style": "6.1.x",
+ "ol-mapbox-style": "Benjaki2/ol-mapbox-style#text-variable-anchor-2279",
"proj4": "2.6.1",
"promise-queue": "2.2.5",
"prop-types": "^15.7.2",
diff --git a/web/js/modules/vector-styles/selectors.js b/web/js/modules/vector-styles/selectors.js
index 173c48664..31129c5a8 100644
--- a/web/js/modules/vector-styles/selectors.js
+++ b/web/js/modules/vector-styles/selectors.js
@@ -128,7 +128,7 @@ export function setStyleFunction(def, vectorStyleId, vectorStyles, layer, state)
const extentStartX = layerInLayerGroup.getExtent()[0];
const acceptableExtent = extentStartX === 180 ? [-180, -90, -110, 90] : extentStartX === -250 ? [110, -90, 180, 90] : null;
- styleFunction = stylefunction(layerInLayerGroup, glStyle, layerId);
+ styleFunction = stylefunction(layerInLayerGroup, glStyle, vectorStyleId, olMap, proj.selected.resolutions);
// Filter Orbit Tracks
if (glStyle.name === 'Orbit Tracks'
&& (selected[layerId] && selected[layerId].length)) {