|
|
@ -284,170 +284,59 @@ var layersList = [ |
|
|
|
leafletid: null, |
|
|
|
leafletid: null, |
|
|
|
code: 'greek_seagrass_meadows_v0906_espg3035', |
|
|
|
code: 'greek_seagrass_meadows_v0906_espg3035', |
|
|
|
},{ |
|
|
|
},{ |
|
|
|
name: 'Ecological Status 2018', |
|
|
|
name: 'Ecological Status', |
|
|
|
code: 'wfd_eco_status_2018', |
|
|
|
code: 'wfd_eco_status_', |
|
|
|
|
|
|
|
composite: true, |
|
|
|
|
|
|
|
minSuffix: '2018', |
|
|
|
|
|
|
|
maxSuffix: '2021', |
|
|
|
active: false, |
|
|
|
active: false, |
|
|
|
format: 'image', |
|
|
|
format: 'image', |
|
|
|
leafletid: null, |
|
|
|
leafletid: null, |
|
|
|
},{ |
|
|
|
},{ |
|
|
|
name: 'Ecological Status 2019', |
|
|
|
name: 'BMI Status', |
|
|
|
code: 'wfd_eco_status_2019', |
|
|
|
code: 'wfd_bmi_status_', |
|
|
|
|
|
|
|
minSuffix: '2018', |
|
|
|
|
|
|
|
maxSuffix: '2021', |
|
|
|
active: false, |
|
|
|
active: false, |
|
|
|
format: 'image', |
|
|
|
format: 'image', |
|
|
|
leafletid: null, |
|
|
|
leafletid: null, |
|
|
|
},{ |
|
|
|
},{ |
|
|
|
name: 'Ecological Status 2020', |
|
|
|
name: 'MA Status', |
|
|
|
code: 'wfd_eco_status_2020', |
|
|
|
code: 'wfd_ma_status_', |
|
|
|
|
|
|
|
minSuffix: '2018', |
|
|
|
|
|
|
|
maxSuffix: '2021', |
|
|
|
active: false, |
|
|
|
active: false, |
|
|
|
format: 'image', |
|
|
|
format: 'image', |
|
|
|
leafletid: null, |
|
|
|
leafletid: null, |
|
|
|
},{ |
|
|
|
},{ |
|
|
|
name: 'Ecological Status 2021', |
|
|
|
name: 'AN Status', |
|
|
|
code: 'wfd_eco_status_2021', |
|
|
|
code: 'wfd_an_status_', |
|
|
|
|
|
|
|
minSuffix: '2018', |
|
|
|
|
|
|
|
maxSuffix: '2021', |
|
|
|
active: false, |
|
|
|
active: false, |
|
|
|
format: 'image', |
|
|
|
format: 'image', |
|
|
|
leafletid: null, |
|
|
|
leafletid: null, |
|
|
|
},{ |
|
|
|
},{ |
|
|
|
name: 'BMI Status 2018', |
|
|
|
name: 'Chl-a Status', |
|
|
|
code: 'wfd_bmi_status_2018', |
|
|
|
code: 'wfd_chla_status_', |
|
|
|
|
|
|
|
minSuffix: '2018', |
|
|
|
|
|
|
|
maxSuffix: '2021', |
|
|
|
active: false, |
|
|
|
active: false, |
|
|
|
format: 'image', |
|
|
|
format: 'image', |
|
|
|
leafletid: null, |
|
|
|
leafletid: null, |
|
|
|
},{ |
|
|
|
},{ |
|
|
|
name: 'BMI Status 2019', |
|
|
|
name: 'PCQI Status', |
|
|
|
code: 'wfd_bmi_status_2019', |
|
|
|
code: 'wfd_chla_status_', |
|
|
|
|
|
|
|
minSuffix: '2018', |
|
|
|
|
|
|
|
maxSuffix: '2021', |
|
|
|
active: false, |
|
|
|
active: false, |
|
|
|
format: 'image', |
|
|
|
format: 'image', |
|
|
|
leafletid: null, |
|
|
|
leafletid: null, |
|
|
|
},{ |
|
|
|
},{ |
|
|
|
name: 'BMI Status 2020', |
|
|
|
name: 'Chemi Status', |
|
|
|
code: 'wfd_bmi_status_2020', |
|
|
|
code: 'wfd_chem_status_', |
|
|
|
active: false, |
|
|
|
minSuffix: '2018', |
|
|
|
format: 'image', |
|
|
|
maxSuffix: '2021', |
|
|
|
leafletid: null, |
|
|
|
|
|
|
|
},{ |
|
|
|
|
|
|
|
name: 'BMI Status 2021', |
|
|
|
|
|
|
|
code: 'wfd_bmi_status_2021', |
|
|
|
|
|
|
|
active: false, |
|
|
|
|
|
|
|
format: 'image', |
|
|
|
|
|
|
|
leafletid: null, |
|
|
|
|
|
|
|
},{ |
|
|
|
|
|
|
|
name: 'MA Status 2018', |
|
|
|
|
|
|
|
code: 'wfd_ma_status_2018', |
|
|
|
|
|
|
|
active: false, |
|
|
|
|
|
|
|
format: 'image', |
|
|
|
|
|
|
|
leafletid: null, |
|
|
|
|
|
|
|
},{ |
|
|
|
|
|
|
|
name: 'MA Status 2019', |
|
|
|
|
|
|
|
code: 'wfd_ma_status_2019', |
|
|
|
|
|
|
|
active: false, |
|
|
|
|
|
|
|
format: 'image', |
|
|
|
|
|
|
|
leafletid: null, |
|
|
|
|
|
|
|
},{ |
|
|
|
|
|
|
|
name: 'MA Status 2020', |
|
|
|
|
|
|
|
code: 'wfd_ma_status_2020', |
|
|
|
|
|
|
|
active: false, |
|
|
|
|
|
|
|
format: 'image', |
|
|
|
|
|
|
|
leafletid: null, |
|
|
|
|
|
|
|
},{ |
|
|
|
|
|
|
|
name: 'MA Status 2021', |
|
|
|
|
|
|
|
code: 'wfd_ma_status_2021', |
|
|
|
|
|
|
|
active: false, |
|
|
|
|
|
|
|
format: 'image', |
|
|
|
|
|
|
|
leafletid: null, |
|
|
|
|
|
|
|
},{ |
|
|
|
|
|
|
|
name: 'AN Status 2018', |
|
|
|
|
|
|
|
code: 'wfd_an_status_2018', |
|
|
|
|
|
|
|
active: false, |
|
|
|
|
|
|
|
format: 'image', |
|
|
|
|
|
|
|
leafletid: null, |
|
|
|
|
|
|
|
},{ |
|
|
|
|
|
|
|
name: 'AN Status 2019', |
|
|
|
|
|
|
|
code: 'wfd_an_status_2019', |
|
|
|
|
|
|
|
active: false, |
|
|
|
|
|
|
|
format: 'image', |
|
|
|
|
|
|
|
leafletid: null, |
|
|
|
|
|
|
|
},{ |
|
|
|
|
|
|
|
name: 'AN Status 2020', |
|
|
|
|
|
|
|
code: 'wfd_an_status_2020', |
|
|
|
|
|
|
|
active: false, |
|
|
|
|
|
|
|
format: 'image', |
|
|
|
|
|
|
|
leafletid: null, |
|
|
|
|
|
|
|
},{ |
|
|
|
|
|
|
|
name: 'AN Status 2021', |
|
|
|
|
|
|
|
code: 'wfd_an_status_2021', |
|
|
|
|
|
|
|
active: false, |
|
|
|
|
|
|
|
format: 'image', |
|
|
|
|
|
|
|
leafletid: null, |
|
|
|
|
|
|
|
},{ |
|
|
|
|
|
|
|
name: 'Chl-a Status 2018', |
|
|
|
|
|
|
|
code: 'wfd_chla_status_2018', |
|
|
|
|
|
|
|
active: false, |
|
|
|
|
|
|
|
format: 'image', |
|
|
|
|
|
|
|
leafletid: null, |
|
|
|
|
|
|
|
},{ |
|
|
|
|
|
|
|
name: 'Chl-a Status 2019', |
|
|
|
|
|
|
|
code: 'wfd_chla_status_2019', |
|
|
|
|
|
|
|
active: false, |
|
|
|
|
|
|
|
format: 'image', |
|
|
|
|
|
|
|
leafletid: null, |
|
|
|
|
|
|
|
},{ |
|
|
|
|
|
|
|
name: 'Chl-a Status 2020', |
|
|
|
|
|
|
|
code: 'wfd_chla_status_2020', |
|
|
|
|
|
|
|
active: false, |
|
|
|
|
|
|
|
format: 'image', |
|
|
|
|
|
|
|
leafletid: null, |
|
|
|
|
|
|
|
},{ |
|
|
|
|
|
|
|
name: 'Chl-a Status 2021', |
|
|
|
|
|
|
|
code: 'wfd_chla_status_2021', |
|
|
|
|
|
|
|
active: false, |
|
|
|
|
|
|
|
format: 'image', |
|
|
|
|
|
|
|
leafletid: null, |
|
|
|
|
|
|
|
},{ |
|
|
|
|
|
|
|
name: 'PCQI Status 2018', |
|
|
|
|
|
|
|
code: 'wfd_chla_status_2018', |
|
|
|
|
|
|
|
active: false, |
|
|
|
|
|
|
|
format: 'image', |
|
|
|
|
|
|
|
leafletid: null, |
|
|
|
|
|
|
|
},{ |
|
|
|
|
|
|
|
name: 'PCQI Status 2019', |
|
|
|
|
|
|
|
code: 'wfd_chla_status_2019', |
|
|
|
|
|
|
|
active: false, |
|
|
|
|
|
|
|
format: 'image', |
|
|
|
|
|
|
|
leafletid: null, |
|
|
|
|
|
|
|
},{ |
|
|
|
|
|
|
|
name: 'PCQI Status 2020', |
|
|
|
|
|
|
|
code: 'wfd_chla_status_2020', |
|
|
|
|
|
|
|
active: false, |
|
|
|
|
|
|
|
format: 'image', |
|
|
|
|
|
|
|
leafletid: null, |
|
|
|
|
|
|
|
},{ |
|
|
|
|
|
|
|
name: 'PCQI Status 2021', |
|
|
|
|
|
|
|
code: 'wfd_pcqi_status_2021', |
|
|
|
|
|
|
|
active: false, |
|
|
|
|
|
|
|
format: 'image', |
|
|
|
|
|
|
|
leafletid: null, |
|
|
|
|
|
|
|
},{ |
|
|
|
|
|
|
|
name: 'Chemi Status 2018', |
|
|
|
|
|
|
|
code: 'wfd_chem_status_2018', |
|
|
|
|
|
|
|
active: false, |
|
|
|
|
|
|
|
format: 'image', |
|
|
|
|
|
|
|
leafletid: null, |
|
|
|
|
|
|
|
},{ |
|
|
|
|
|
|
|
name: 'Chem Status 2019', |
|
|
|
|
|
|
|
code: 'wfd_chem_status_2019', |
|
|
|
|
|
|
|
active: false, |
|
|
|
|
|
|
|
format: 'image', |
|
|
|
|
|
|
|
leafletid: null, |
|
|
|
|
|
|
|
},{ |
|
|
|
|
|
|
|
name: 'Chem Status 2020', |
|
|
|
|
|
|
|
code: 'wfd_chem_status_2020', |
|
|
|
|
|
|
|
active: false, |
|
|
|
|
|
|
|
format: 'image', |
|
|
|
|
|
|
|
leafletid: null, |
|
|
|
|
|
|
|
},{ |
|
|
|
|
|
|
|
name: 'Chem Status 2021', |
|
|
|
|
|
|
|
code: 'wfd_chem_status_2021', |
|
|
|
|
|
|
|
active: false, |
|
|
|
active: false, |
|
|
|
format: 'image', |
|
|
|
format: 'image', |
|
|
|
leafletid: null, |
|
|
|
leafletid: null, |
|
|
@ -487,7 +376,7 @@ async function layerTreeSwitch(node) { |
|
|
|
} else if (intId === 'PHPL') { |
|
|
|
} else if (intId === 'PHPL') { |
|
|
|
l = getWMSSeries(node.checkStatus); |
|
|
|
l = getWMSSeries(node.checkStatus); |
|
|
|
} else if (intId.substr(0,3) === 'wfd') { |
|
|
|
} else if (intId.substr(0,3) === 'wfd') { |
|
|
|
l = getWFD(intId, node.title); |
|
|
|
l = getWFD(layer); |
|
|
|
} else if (layer.format === 'image') { |
|
|
|
} else if (layer.format === 'image') { |
|
|
|
l = L.tileLayer.betterWms(BASE_URL + '/geoserver/wms', { layers: intId, transparent: true, format: "image/png"}); |
|
|
|
l = L.tileLayer.betterWms(BASE_URL + '/geoserver/wms', { layers: intId, transparent: true, format: "image/png"}); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|