Interactive interface for browsing global, full-resolution satellite imagery
WV-695: Polar WMS reference layers changed to local WMTS. WV-696: Layer redirects added
Mike McGann8816a096eb94
diff --git a/etc/config/config/layerOrder.json b/etc/config/config/layerOrder.jsonindex dd6628c76..bc313f76c 100644--- a/etc/config/config/layerOrder.json+++ b/etc/config/config/layerOrder.json@@ -118,7 +118,7 @@"arctic_coastlines_3413","arctic_coastlines","grump-v1-population-count_2000",- "polarview:graticule3031_10x30",+ "antarctic_graticule","ol_graticule","arctic_graticule_3413","polarview:graticuleN",diff --git a/etc/config/config/layers/polarview:graticuleN.json b/etc/config/config/layers/antarctic_graticule.jsonsimilarity index 63%rename from etc/config/config/layers/polarview:graticuleN.jsonrename to etc/config/config/layers/antarctic_graticule.jsonindex c26a4ec66..fbbdffc61 100644--- a/etc/config/config/layers/polarview:graticuleN.json+++ b/etc/config/config/layers/antarctic_graticule.json@@ -1,11 +1,11 @@{- "description": "Polarview / Graticule (EPSG:3995)",+ "description": "Polarview / Graticule","name": "Latitude-Longitude Lines",- "tags": "lat lon lat-lon","period": "static",+ "tag": "lat lon lat-lon","projections": {- "arctic": {- "matrixSet": "EPSG3413_250m",+ "antarctic": {+ "matrixSet": "EPSG3031_250m","maxExtent": [-4194304,-4194304,@@ -22,15 +22,15 @@256.0],"url": [- "//map1a.vis.earthdata.nasa.gov/wmts-arctic/wmts.cgi",- "//map1b.vis.earthdata.nasa.gov/wmts-arctic/wmts.cgi",- "//map1c.vis.earthdata.nasa.gov/wmts-arctic/wmts.cgi"+ "//map1a.vis.earthdata.nasa.gov/wmts-antarctic/wmts.cgi",+ "//map1b.vis.earthdata.nasa.gov/wmts-antarctic/wmts.cgi",+ "//map1c.vis.earthdata.nasa.gov/wmts-antarctic/wmts.cgi"]}},"properties": {"format": "image/png",- "layer": "arctic_graticule",+ "layer": "antarctic_graticule","tileSize": [512,512diff --git a/etc/config/config/layers/arctic_graticule.json b/etc/config/config/layers/arctic_graticule.jsonindex f7548bc1a..00985e0b8 100644--- a/etc/config/config/layers/arctic_graticule.json+++ b/etc/config/config/layers/arctic_graticule.json@@ -1,27 +1,41 @@{"description": "Polarview / Graticule",- "name": "Latitude-Longitude Lines",+ "name": "Latitude-Longitude Lines (EPSG:3995)","period": "static",- "tags": "lat lon lat-lon",- "parameters": {- "format": "image/png",- "layers": "arctic_graticule"- },+ "tag": "lat lon lat-lon","projections": {"arctic": {+ "matrixSet": "EPSG3413_250m",+ "maxExtent": [+ -4194304,+ -4194304,+ 4194304,+ 4194304+ ],+ "maxResolution": 8192.0,+ "serverResolutions": [+ 8192.0,+ 4096.0,+ 2048.0,+ 1024.0,+ 512.0,+ 256.0+ ],"url": [- "//map2a.vis.earthdata.nasa.gov/wms/wms.php",- "//map2b.vis.earthdata.nasa.gov/wms/wms.php",- "//map2c.vis.earthdata.nasa.gov/wms/wms.php"+ "//map1a.vis.earthdata.nasa.gov/wmts-arctic/wmts.cgi",+ "//map1b.vis.earthdata.nasa.gov/wmts-arctic/wmts.cgi",+ "//map1c.vis.earthdata.nasa.gov/wmts-arctic/wmts.cgi"]}},"properties": {+ "format": "image/png",+ "layer": "arctic_graticule","tileSize": [512,512],"transitionEffect": "none"},- "type": "wms"+ "type": "wmts"}diff --git a/etc/config/config/layers/arctic_graticule_3413.json b/etc/config/config/layers/arctic_graticule_3413.jsonindex ca11b211a..f9a84901b 100644--- a/etc/config/config/layers/arctic_graticule_3413.json+++ b/etc/config/config/layers/arctic_graticule_3413.json@@ -1,27 +1,41 @@{"description": "Polarview / Graticule","name": "Latitude-Longitude Lines",- "tags": "lat lon lat-lon","period": "static",- "parameters": {- "format": "image/png",- "layers": "arctic_graticule_3413"- },+ "tag": "lat lon lat-lon","projections": {"arctic": {+ "matrixSet": "EPSG3413_250m",+ "maxExtent": [+ -4194304,+ -4194304,+ 4194304,+ 4194304+ ],+ "maxResolution": 8192.0,+ "serverResolutions": [+ 8192.0,+ 4096.0,+ 2048.0,+ 1024.0,+ 512.0,+ 256.0+ ],"url": [- "//map2a.vis.earthdata.nasa.gov/wms/wms.php",- "//map2b.vis.earthdata.nasa.gov/wms/wms.php",- "//map2c.vis.earthdata.nasa.gov/wms/wms.php"+ "//map1a.vis.earthdata.nasa.gov/wmts-arctic/wmts.cgi",+ "//map1b.vis.earthdata.nasa.gov/wmts-arctic/wmts.cgi",+ "//map1c.vis.earthdata.nasa.gov/wmts-arctic/wmts.cgi"]}},"properties": {+ "format": "image/png",+ "layer": "arctic_graticule_3413","tileSize": [512,512],"transitionEffect": "none"},- "type": "wms"-}+ "type": "wmts"+}\ No newline at end of filediff --git a/etc/config/config/layers/polarview:graticule3031_10x30.json b/etc/config/config/layers/polarview:graticule3031_10x30.jsondeleted file mode 100644index ed7046d77..000000000--- a/etc/config/config/layers/polarview:graticule3031_10x30.json+++ /dev/null@@ -1,26 +0,0 @@-{- "description": "Polarview / Graticule",- "name": "Latitude-Longitude Lines",- "tags": "lat lon lat-lon",- "parameters": {- "format": "image/png",- "layers": "polarview:graticule3031_10x30",- "transparent": "true"- },- "period": "static",- "projections": {- "antarctic": {}- },- "properties": {- "opacity": 0.75,- "tileSize": [- 512,- 512- ],- "transitionEffect": "none"- },- "type": "wms",- "url": [- "http://geos.polarview.aq/geoserver/wms?"- ]-}diff --git a/etc/config/config/redirects.json b/etc/config/config/redirects.jsonnew file mode 100644index 000000000..27708e62f--- /dev/null+++ b/etc/config/config/redirects.json@@ -0,0 +1,6 @@+{+ "layers": {+ "polarview:graticuleN": "arctic_graticule",+ "polarview:graticule3031_10x30": "antarctic_graticule"+ }+}diff --git a/src/data/config.json b/src/data/config.jsonindex 738f60f0e..7d23d0253 100644--- a/src/data/config.json+++ b/src/data/config.json@@ -548,7 +548,7 @@"arctic_coastlines_3413","arctic_coastlines","grump-v1-population-count_2000",- "polarview:graticule3031_10x30",+ "antarctic_graticule","ol_graticule","arctic_graticule_3413","polarview:graticuleN",@@ -7878,6 +7878,47 @@"tag": "borders","type": "wmts"},+ "antarctic_graticule": {+ "description": "Polarview / Graticule",+ "name": "Latitude-Longitude Lines",+ "period": "static",+ "projections": {+ "antarctic": {+ "matrixSet": "EPSG3031_250m",+ "maxExtent": [+ -4194304,+ -4194304,+ 4194304,+ 4194304+ ],+ "maxResolution": 8192.0,+ "serverResolutions": [+ 8192.0,+ 4096.0,+ 2048.0,+ 1024.0,+ 512.0,+ 256.0+ ],+ "url": [+ "//map1a.vis.earthdata.nasa.gov/wmts-antarctic/wmts.cgi",+ "//map1b.vis.earthdata.nasa.gov/wmts-antarctic/wmts.cgi",+ "//map1c.vis.earthdata.nasa.gov/wmts-antarctic/wmts.cgi"+ ]+ }+ },+ "properties": {+ "format": "image/png",+ "layer": "antarctic_graticule",+ "tileSize": [+ 512,+ 512+ ],+ "transitionEffect": "none"+ },+ "tag": "lat lon lat-lon",+ "type": "wmts"+ },"arctic_coastlines": {"description": "Polarview / Coastlines (EPSG:3995)","name": "Coastlines",@@ -7962,57 +8003,85 @@},"arctic_graticule": {"description": "Polarview / Graticule",- "name": "Latitude-Longitude Lines",- "parameters": {- "format": "image/png",- "layers": "arctic_graticule"- },+ "name": "Latitude-Longitude Lines (EPSG:3995)","period": "static","projections": {"arctic": {+ "matrixSet": "EPSG3413_250m",+ "maxExtent": [+ -4194304,+ -4194304,+ 4194304,+ 4194304+ ],+ "maxResolution": 8192.0,+ "serverResolutions": [+ 8192.0,+ 4096.0,+ 2048.0,+ 1024.0,+ 512.0,+ 256.0+ ],"url": [- "//map2a.vis.earthdata.nasa.gov/wms/wms.php",- "//map2b.vis.earthdata.nasa.gov/wms/wms.php",- "//map2c.vis.earthdata.nasa.gov/wms/wms.php"+ "//map1a.vis.earthdata.nasa.gov/wmts-arctic/wmts.cgi",+ "//map1b.vis.earthdata.nasa.gov/wmts-arctic/wmts.cgi",+ "//map1c.vis.earthdata.nasa.gov/wmts-arctic/wmts.cgi"]}},"properties": {+ "format": "image/png",+ "layer": "arctic_graticule","tileSize": [512,512],"transitionEffect": "none"},- "tags": "lat lon lat-lon",- "type": "wms"+ "tag": "lat lon lat-lon",+ "type": "wmts"},"arctic_graticule_3413": {"description": "Polarview / Graticule","name": "Latitude-Longitude Lines",- "parameters": {- "format": "image/png",- "layers": "arctic_graticule_3413"- },"period": "static","projections": {"arctic": {+ "matrixSet": "EPSG3413_250m",+ "maxExtent": [+ -4194304,+ -4194304,+ 4194304,+ 4194304+ ],+ "maxResolution": 8192.0,+ "serverResolutions": [+ 8192.0,+ 4096.0,+ 2048.0,+ 1024.0,+ 512.0,+ 256.0+ ],"url": [- "//map2a.vis.earthdata.nasa.gov/wms/wms.php",- "//map2b.vis.earthdata.nasa.gov/wms/wms.php",- "//map2c.vis.earthdata.nasa.gov/wms/wms.php"+ "//map1a.vis.earthdata.nasa.gov/wmts-arctic/wmts.cgi",+ "//map1b.vis.earthdata.nasa.gov/wmts-arctic/wmts.cgi",+ "//map1c.vis.earthdata.nasa.gov/wmts-arctic/wmts.cgi"]}},"properties": {+ "format": "image/png",+ "layer": "arctic_graticule_3413","tileSize": [512,512],"transitionEffect": "none"},- "tags": "lat lon lat-lon",- "type": "wms"+ "tag": "lat lon lat-lon",+ "type": "wmts"},"cartographic:00-global-labels": {"description": "SEDAC / Global Labels",@@ -8623,73 +8692,6 @@"tags": "lat lon lat-lon","type": "graticule"},- "polarview:graticule3031_10x30": {- "description": "Polarview / Graticule",- "name": "Latitude-Longitude Lines",- "parameters": {- "format": "image/png",- "layers": "polarview:graticule3031_10x30",- "transparent": "true"- },- "period": "static",- "projections": {- "antarctic": {}- },- "properties": {- "opacity": 0.75,- "tileSize": [- 512,- 512- ],- "transitionEffect": "none"- },- "tags": "lat lon lat-lon",- "type": "wms",- "url": [- "http://geos.polarview.aq/geoserver/wms?"- ]- },- "polarview:graticuleN": {- "description": "Polarview / Graticule (EPSG:3995)",- "name": "Latitude-Longitude Lines",- "period": "static",- "projections": {- "arctic": {- "matrixSet": "EPSG3413_250m",- "maxExtent": [- -4194304,- -4194304,- 4194304,- 4194304- ],- "maxResolution": 8192.0,- "serverResolutions": [- 8192.0,- 4096.0,- 2048.0,- 1024.0,- 512.0,- 256.0- ],- "url": [- "//map1a.vis.earthdata.nasa.gov/wmts-arctic/wmts.cgi",- "//map1b.vis.earthdata.nasa.gov/wmts-arctic/wmts.cgi",- "//map1c.vis.earthdata.nasa.gov/wmts-arctic/wmts.cgi"- ]- }- },- "properties": {- "format": "image/png",- "layer": "arctic_graticule",- "tileSize": [- 512,- 512- ],- "transitionEffect": "none"- },- "tags": "lat lon lat-lon",- "type": "wmts"- },"sedac_bound": {"description": "SEDAC / National Boundaries","name": "National Boundaries",@@ -65350,5 +65352,11 @@],"startZoom": 1}+ },+ "redirects": {+ "layers": {+ "polarview:graticule3031_10x30": "antarctic_graticule",+ "polarview:graticuleN": "arctic_graticule"+ }}}\ No newline at end of filediff --git a/src/js/Worldview/Models/Layers.js b/src/js/Worldview/Models/Layers.jsindex e125da9d6..8f38c784b 100644--- a/src/js/Worldview/Models/Layers.js+++ b/src/js/Worldview/Models/Layers.js@@ -197,6 +197,10 @@ Worldview.Models.Layers = function(config, projectionModel) {}});$.each(layers, function(index, layer) {+ var redirect = config.redirects.layers[layer.name];+ if ( redirect ) {+ layer.name = redirect;+ }try {self.add(type, layer.name, layer.hidden);} catch ( error ) {