Skip to content

Commit

Permalink
Fix RealVista backgrounds
Browse files Browse the repository at this point in the history
  • Loading branch information
Gnafu committed Mar 17, 2017
1 parent 3bf06b4 commit 14d6636
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 53 deletions.
2 changes: 1 addition & 1 deletion web/client/components/map/leaflet/plugins/WMSLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ L.TileLayer.MultipleUrlWMS = L.TileLayer.WMS.extend({

for (let i in options) {
// all keys that are not TileLayer options go to WMS params
if (!this.options.hasOwnProperty(i) && i !== 'crs') {
if (!this.options.hasOwnProperty(i) && i.toUpperCase() !== 'CRS') {
wmsParams[i] = options[i];
}
}
Expand Down
4 changes: 2 additions & 2 deletions web/client/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@
},
{
"type": "wms",
"url":"http://213.215.135.196/reflector/open/service",
"url":"http://www.realvista.it/reflector/open/service",
"visibility": false,
"title": "e-Geos Ortofoto RealVista 1.0",
"name": "rv1",
"group": "background",
"format": "image/png"
"format": "image/jpeg"
},
{
"type": "wms",
Expand Down
4 changes: 2 additions & 2 deletions web/client/examples/data/mapStoreConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"ptype": "gxp_olsource"
},
"egeos":{
"url":"http://213.215.135.196/reflector/open/service?request=getCapabilities"
"url":"http://www.realvista.it/reflector/open/service?request=getCapabilities"
},
"demo":{
"url":"http://demo.geo-solutions.it/geoserver/wms"
Expand Down Expand Up @@ -45,7 +45,7 @@
"title": "e-Geos Ortofoto RealVista 1.0",
"name": "rv1",
"group": "background",
"format": "image/png"
"format": "image/jpeg"
},
{
"source": "demo",
Expand Down
4 changes: 2 additions & 2 deletions web/client/examples/rasterstyler/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@
"visibility": false
},
{
"format": "image/png",
"format": "image/jpeg",
"group": "background",
"name": "rv1",
"title": "e-Geos Ortofoto RealVista 1.0",
"type": "wms",
"url": "http://213.215.135.196/reflector/open/service",
"url": "http://www.realvista.it/reflector/open/service",
"visibility": false
},
{
Expand Down
4 changes: 2 additions & 2 deletions web/client/examples/styler/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@
"visibility": false
},
{
"format": "image/png",
"format": "image/jpeg",
"group": "background",
"name": "rv1",
"title": "e-Geos Ortofoto RealVista 1.0",
"type": "wms",
"url": "http://213.215.135.196/reflector/open/service",
"url": "http://www.realvista.it/reflector/open/service",
"visibility": false
},
{
Expand Down
88 changes: 44 additions & 44 deletions web/client/jsapi/MapStore2.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,70 +40,70 @@ const defaultConfig = {
"group": "background",
"visibility": true
},
{
{
"type": "tileprovider",
"title": "NASAGIBS Night 2012",
"provider": "NASAGIBS.ViirsEarthAtNight2012",
"name": "Night2012",
"source": "nasagibs",
"group": "background",
"visibility": false
},
{
"type": "wms",
"url": "http://213.215.135.196/reflector/open/service",
},
{
"type": "wms",
"url": "http://www.realvista.it/reflector/open/service",
"visibility": false,
"title": "e-Geos Ortofoto RealVista 1.0",
"name": "rv1",
"group": "background",
"format": "image/png"
},
{
"type": "wms",
"url": "http://demo.geo-solutions.it/geoserver/wms",
"title": "e-Geos Ortofoto RealVista 1.0",
"name": "rv1",
"group": "background",
"format": "image/jpeg"
},
{
"type": "wms",
"url": "https://demo.geo-solutions.it/geoserver/wms",
"visibility": false,
"title": "Natural Earth",
"name": "sde:NE2_HR_LC_SR_W_DR",
"group": "background",
"format": "image/png"
},
{
"type": "wms",
"url": "http://demo.geo-solutions.it/geoserver/wms",
"title": "Natural Earth",
"name": "sde:NE2_HR_LC_SR_W_DR",
"group": "background",
"format": "image/png"
},
{
"type": "wms",
"url": "https://demo.geo-solutions.it/geoserver/wms",
"visibility": false,
"title": "Hypsometric",
"name": "sde:HYP_HR_SR_OB_DR",
"group": "background",
"format": "image/png"
},
{
"type": "wms",
"url": "http://demo.geo-solutions.it/geoserver/wms",
"title": "Hypsometric",
"name": "sde:HYP_HR_SR_OB_DR",
"group": "background",
"format": "image/png"
},
{
"type": "wms",
"url": "https://demo.geo-solutions.it/geoserver/wms",
"visibility": false,
"title": "Gray Earth",
"name": "sde:GRAY_HR_SR_OB_DR",
"group": "background",
"format": "image/png"
},
{
"type": "wms",
"url": "http://demo.geo-solutions.it/geoserver/wms",
"title": "Gray Earth",
"name": "sde:GRAY_HR_SR_OB_DR",
"group": "background",
"format": "image/png"
},
{
"type": "wms",
"url": "https://demo.geo-solutions.it/geoserver/wms",
"visibility": true,
"opacity": 0.5,
"title": "Weather data",
"name": "nurc:Arc_Sample",
"group": "Meteo",
"format": "image/png"
},
{
"title": "Weather data",
"name": "nurc:Arc_Sample",
"group": "Meteo",
"format": "image/png"
},
{
"type": "tileprovider",
"title": "OpenTopoMap",
"provider": "OpenTopoMap",
"name": "OpenTopoMap",
"source": "OpenTopoMap",
"group": "background",
"visibility": false
}]
}]
}
};

Expand Down

0 comments on commit 14d6636

Please sign in to comment.