// structure layer tree
var pTree = { } ;
let nodeContext = [ {
icon : 'fa fa-download' ,
title : 'Download Layer' ,
//context button click event
onClick : async ( node ) => {
document . getElementById ( 'modal-download-layer' ) . classList . add ( 'is-active' ) ;
Alpine . store ( 'downloadName' , node . data . code ) ;
document . getElementById ( 'modal-download-layer-name' ) . textContent = "Layer name: " + node . data . code ;
// downloadShapefile(node.data.code);
}
} ] ;
let nodeContextLink = [ {
icon : 'fa fa-link' ,
title : 'Source Link' ,
//context button click event
onClick : async ( node ) => {
window . open ( node . data . n _hyperlink , '_blank' )
// downloadShapefile(node.data.code);
}
} ] ;
let citation = [ {
icon : 'fa fa-link' ,
title : 'Citation' ,
//context button click event
onClick : async ( node ) => {
//console.log('add - '+node.id);
window . open ( URL , '_blank' ) ;
}
} ] ;
const myData = [ {
n _id : 1 ,
n _title : 'MARINE AREAS' ,
n _parentid : 0 ,
} , {
n _id : 11 ,
n _title : 'Assessment Areas' ,
n _parentid : 1
} , {
n _id : 111 ,
n _title : 'Mediterranean Sea Region' ,
code : "ms_el_mediterranean_assessment_area" ,
n _elements : nodeContext ,
n _parentid : 11
} , {
n _id : 112 ,
n _title : 'Adriatic Sea subregion' ,
code : "mad_el_ms_ad_adriatic_assessment_area" ,
n _elements : nodeContext ,
n _parentid : 11
} , {
n _id : 113 ,
n _title : 'Ionian Sea and Central Mediterranean Sea subregion' ,
code : "mic_el_ms_io_ionian_assessment_area" ,
n _elements : nodeContext ,
n _parentid : 11
} , {
n _id : 114 ,
n _title : 'Aegean-Levantine subregion' ,
code : "mal_el_ms_al_aegean_levantine_assessment_area" ,
n _elements : nodeContext ,
n _parentid : 11
} , {
n _id : 115 ,
n _title : 'Aegean-Levantine subregion – Aegean Sea' ,
code : "mal_el_aa_ae_aegean_assessment_area" ,
n _elements : nodeContext ,
n _parentid : 11
} , {
n _id : 116 ,
n _title : 'Aegean-Levantine subregion – North Aegean Sea' ,
code : "mal_el_aa_na_north_aegean_assessment_area" ,
n _elements : nodeContext ,
n _parentid : 11
} , {
n _id : 117 ,
n _title : 'Aegean-Levantine subregion – Central and South Aegean Sea' ,
code : "mal_el_aa_csa_central_south_aegean_assessment_area" ,
n _elements : nodeContext ,
n _parentid : 11
} , {
n _id : 118 ,
n _title : 'Aegean-Levantine subregion - Levantine Sea' ,
code : "mal_el_aa_le_levantine_assessment_area" ,
n _elements : nodeContext ,
n _parentid : 11
} , {
n _id : 12 ,
n _title : 'Coastal Waters' ,
code : "v_el_mrus_nov2021_epsg3035_coastal_waters" ,
n _elements : nodeContext ,
n _parentid : 1
} , {
n _id : 16 ,
n _title : 'Coastal Water Bodies (WFD)' ,
code : "v_el_mrus_nov2021_epsg3035_coasts" ,
n _elements : nodeContext ,
n _parentid : 1
} , {
n _id : 13 ,
n _title : 'Territorial Waters' ,
code : "v_el_mrus_nov2021_epsg3035_territorial" ,
n _elements : nodeContext ,
n _parentid : 1
} , {
n _id : 14 ,
n _title : 'Territorial Part beyond Coastal Waters' ,
code : "v_el_mrus_nov2021_epsg3035_territorial_from_coastal" ,
n _elements : nodeContext ,
n _parentid : 1
} , {
n _id : 15 ,
n _title : 'Beyond Territorial Waters' ,
code : "v_el_mrus_nov2021_epsg3035_beyond_territorial" ,
n _elements : nodeContext ,
n _parentid : 1
} , {
n _id : 2 ,
n _title : 'DATA SOURCES' ,
n _parentid : 0 ,
} , {
n _id : 21 ,
n _title : 'MSFD MONITORING PROGRAMS' ,
n _parentid : 2 ,
} , {
n _id : 213 ,
n _title : 'Beach Stations' ,
code : "beach_stations" ,
n _elements : nodeContext ,
n _parentid : 21
} , {
n _id : 211 ,
n _title : 'MSFD Stations' ,
code : "cruise_stations" ,
n _elements : nodeContext ,
n _parentid : 21
} , {
n _id : 212 ,
n _title : 'MSFD Cruises' ,
n _parentid : 21
} , {
n _id : 2121 ,
n _title : 'Cruise 2018' ,
code : "cruise_2018" ,
n _elements : nodeContext ,
n _parentid : 212
} , {
n _id : 2122 ,
n _title : 'Cruise 2019 A' ,
code : "cruise_2019_a" ,
n _elements : nodeContext ,
n _parentid : 212
} , {
n _id : 2123 ,
n _title : 'Cruise 2019 B' ,
code : "cruise_2019_b" ,
n _elements : nodeContext ,
n _parentid : 212
} , {
n _id : 2124 ,
n _title : 'Cruise 2020 A' ,
code : "cruise_2020_a" ,
n _elements : nodeContext ,
n _parentid : 212
} , {
n _id : 2125 ,
n _title : 'Cruise 2020 B' ,
code : "cruise_2020_b" ,
n _elements : nodeContext ,
n _parentid : 212
} , {
n _id : 2126 ,
n _title : 'Cruise 2021 A' ,
code : "cruise_2021_a" ,
n _elements : nodeContext ,
n _parentid : 212
} , {
n _id : 2127 ,
n _title : 'Cruise 2021 B' ,
code : "cruise_2021_b" ,
n _elements : nodeContext ,
n _parentid : 212
} , {
n _id : 214 ,
n _title : 'Marine Natura Sites (Monitored under D1)' ,
code : "v_marine_natura2000_end2021_epsg3035_sitetype" , //"marine_natura2000_end2021_epsg3035",
n _elements : nodeContext ,
n _parentid : 21
} , {
n _id : 215 ,
n _title : 'EEA Marine Assessment Grid 10x10' ,
code : "grid_10km_3035" ,
n _elements : nodeContext ,
n _parentid : 21
} , {
n _id : 216 ,
n _title : 'EEA Marine Assessment Grid 25x25' ,
code : "grid_25km_3035" ,
n _elements : nodeContext ,
n _parentid : 21
} , {
n _id : 22 ,
n _title : 'OTHER' ,
n _parentid : 2 ,
} , {
n _id : 221 ,
n _title : 'Poseidon' ,
code : "POSEIDON" ,
n _parentid : 22
} , {
n _id : 222 ,
n _title : 'Argo' ,
code : "argo_stations" ,
n _elements : nodeContext ,
n _parentid : 22
} , {
n _id : 223 ,
n _title : 'WFD' ,
code : "coastal_wfd" ,
n _parentid : 22
} , {
n _id : 3 ,
n _title : 'PRODUCTS' ,
n _parentid : 0 ,
} , {
n _id : 31 ,
n _title : 'MSFD' ,
n _parentid : 3 ,
} , {
n _id : 32 ,
n _title : 'OTHER' ,
n _parentid : 3 ,
} , {
n _id : 33 ,
n _title : 'WFD' ,
n _parentid : 3 ,
} , {
n _id : 311 ,
n _title : 'D3' ,
n _parentid : 31 ,
} , {
n _id : 3111 ,
n _title : 'Annual Fisheries Production per fishing gear per NSSG area (NSSG: National Statistical Service of Greece)' ,
code : 'AFPPY' ,
n _parentid : 311 ,
} , {
n _id : 321 ,
n _title : 'EMODNET Bathymetry' ,
code : 'DPTH' ,
n _parentid : 32 ,
n _elements : nodeContextLink ,
n _hyperlink : "https://doi.org/10.12770/bb6a87dd-e579-4036-abe1-e649cea9881a"
} , {
n _id : 322 ,
n _title : 'EMODNET Habitats' ,
code : 'HABT' ,
n _parentid : 32 ,
n _elements : nodeContextLink ,
n _hyperlink : "http://gis.ices.dk/geonetwork/srv/eng/catalog.search#/metadata/10d3d35c-8f8e-40ff-898f-32e0b037356c"
} ,
// {
// n_id: 323 ,
// n_title: 'EMODNET Chemistry',
// code: 'CHEM',
// n_parentid: 32,
// n_elements: nodeContext,
// n_hyperlink: "https://ec.oceanbrowser.net/emodnet/Python/web/wms",
// hidden: true
// },
// {
// n_id: 3231,
// n_title: 'Eutrophication',
// code: 'CHEM_PHPL',
// n_parentid: 323,
// n_elements: nodeContext,
// n_hyperlink: "https://ec.oceanbrowser.net/emodnet/Python/web/wms"
// },
{
n _id : 324 ,
n _title : 'Probability of coralligenous habitat in the Mediterranean (MEDISEH)' ,
code : 'mediseh_cora' ,
n _parentid : 32 ,
n _elements : nodeContextLink ,
n _hyperlink : "http://gis.ices.dk/geonetwork/srv/eng/catalog.search#/metadata/4da88de5-b0b8-4de4-8aac-99a9b0980736"
} , {
n _id : 325 ,
n _title : 'Probability of maerl habitat in the Mediterranean (MEDISEH)' ,
code : 'mediseh_maerl' ,
n _parentid : 32 ,
n _elements : nodeContextLink ,
n _hyperlink : "http://gis.ices.dk/geonetwork/srv/eng/catalog.search#/metadata/43c7ac30-04da-479d-b5c1-ba621f0981e4"
} , {
n _id : 326 ,
n _title : 'Probability of Posidonia oceanica in the Mediterranean (MEDISEH)' ,
code : 'mediseh_posidonia' ,
n _parentid : 32 ,
n _elements : nodeContextLink ,
n _hyperlink : "http://gis.ices.dk/geonetwork/srv/eng/catalog.search#/metadata/a93cffc8-8f45-47a4-a9bd-c8ffd9ad53fb"
} , {
n _id : 327 ,
n _title : 'Seagrass Meadows (<a target="_blank" class="is-link has-text-link" href="https://doi.org/10.1515/bot-2022-0011">citation</a>)' ,
code : 'greek_seagrass_meadows_v0906_espg3035' ,
n _parentid : 32 ,
n _elements : nodeContext . concat ( nodeContextLink ) ,
n _hyperlink : "https://www.seanoe.org/data/00765/87740/"
} , {
n _id : 331 ,
n _title : 'Integrated Ecological Status' ,
n _parentid : 33
} , {
n _id : 332 ,
n _title : 'Benthic MacroInvertebrates – BMI (D2C1, D5C8, D6C3, D6C5)' ,
n _parentid : 33
} , {
n _id : 333 ,
n _title : 'Macroalgae (MAI)' ,
n _parentid : 33
} , {
n _id : 334 ,
n _title : 'Angiosperms – AN (D2C1, D6C3, D6C5)' ,
n _parentid : 33
} , {
n _id : 335 ,
n _title : 'Chlorophyl-a (D4C2, D5C2)' ,
n _parentid : 33
} , {
n _id : 336 ,
n _title : 'PhysicoChemical Quality Index – PCQI (D5C1, D5C4, D5C5)' ,
n _parentid : 33
} , {
n _id : 337 ,
n _title : 'Chemical Status – Chem (D8C1)' ,
n _parentid : 33
} , {
n _id : 3311 ,
n _title : 'Ecological Status 2018' ,
code : 'wfd_eco_status_2018' ,
n _elements : nodeContext ,
n _parentid : 331
} , {
n _id : 3312 ,
n _title : 'Ecological Status 2019' ,
code : 'wfd_eco_status_2019' ,
n _elements : nodeContext ,
n _parentid : 331
} , {
n _id : 3313 ,
n _title : 'Ecological Status 2020' ,
code : 'wfd_eco_status_2020' ,
n _elements : nodeContext ,
n _parentid : 331
} , {
n _id : 3314 ,
n _title : 'Ecological Status 2021' ,
code : 'wfd_eco_status_2021' ,
n _elements : nodeContext ,
n _parentid : 331
} , {
n _id : 3321 ,
n _title : 'BMI Status 2018' ,
code : 'wfd_bmi_status_2018' ,
n _elements : nodeContext ,
n _parentid : 332
} , {
n _id : 3322 ,
n _title : 'BMI Status 2019' ,
code : 'wfd_bmi_status_2019' ,
n _elements : nodeContext ,
n _parentid : 332
} , {
n _id : 3323 ,
n _title : 'BMI Status 2020' ,
code : 'wfd_bmi_status_2020' ,
n _elements : nodeContext ,
n _parentid : 332
} , {
n _id : 3324 ,
n _title : 'BMI Status 2021' ,
code : 'wfd_bmi_status_2021' ,
n _elements : nodeContext ,
n _parentid : 332
} , {
n _id : 3331 ,
n _title : 'MA Status 2018' ,
code : 'wfd_ma_status_2018' ,
n _elements : nodeContext ,
n _parentid : 333
} , {
n _id : 3332 ,
n _title : 'MA Status 2019' ,
code : 'wfd_ma_status_2019' ,
n _elements : nodeContext ,
n _parentid : 333
} , {
n _id : 3333 ,
n _title : 'MA Status 2020' ,
code : 'wfd_ma_status_2020' ,
n _elements : nodeContext ,
n _parentid : 333
} , {
n _id : 3334 ,
n _title : 'MA Status 2021' ,
code : 'wfd_ma_status_2021' ,
n _elements : nodeContext ,
n _parentid : 333
} , {
n _id : 3341 ,
n _title : 'AN Status 2018' ,
code : 'wfd_an_status_2018' ,
n _elements : nodeContext ,
n _parentid : 334
} , {
n _id : 3342 ,
n _title : 'AN Status 2019' ,
code : 'wfd_an_status_2019' ,
n _elements : nodeContext ,
n _parentid : 334
} , {
n _id : 3343 ,
n _title : 'AN Status 2020' ,
code : 'wfd_an_status_2020' ,
n _elements : nodeContext ,
n _parentid : 334
} , {
n _id : 3344 ,
n _title : 'AN Status 2021' ,
code : 'wfd_an_status_2021' ,
n _elements : nodeContext ,
n _parentid : 334
} , {
n _id : 3351 ,
n _title : 'Chl-a Status 2018' ,
code : 'wfd_chla_status_2018' ,
n _elements : nodeContext ,
n _parentid : 335
} , {
n _id : 3352 ,
n _title : 'Chl-a Status 2019' ,
code : 'wfd_chla_status_2019' ,
n _elements : nodeContext ,
n _parentid : 335
} , {
n _id : 3353 ,
n _title : 'Chl-a Status 2020' ,
code : 'wfd_chla_status_2020' ,
n _elements : nodeContext ,
n _parentid : 335
} , {
n _id : 3354 ,
n _title : 'Chl-a Status 2021' ,
code : 'wfd_chla_status_2021' ,
n _elements : nodeContext ,
n _parentid : 335
} , {
n _id : 3361 ,
n _title : 'PCQI Status 2018' ,
code : 'wfd_chla_status_2018' ,
n _elements : nodeContext ,
n _parentid : 336
} , {
n _id : 3362 ,
n _title : 'PCQI Status 2019' ,
code : 'wfd_chla_status_2019' ,
n _elements : nodeContext ,
n _parentid : 336
} , {
n _id : 3363 ,
n _title : 'PCQI Status 2020' ,
code : 'wfd_chla_status_2020' ,
n _elements : nodeContext ,
n _parentid : 336
} , {
n _id : 3364 ,
n _title : 'PCQI Status 2021' ,
code : 'wfd_pcqi_status_2021' ,
n _elements : nodeContext ,
n _parentid : 336
} , {
n _id : 3371 ,
n _title : 'Chemi Status 2018' ,
code : 'wfd_chem_status_2018' ,
n _elements : nodeContext ,
n _parentid : 337
} , {
n _id : 3372 ,
n _title : 'Chem Status 2019' ,
code : 'wfd_chem_status_2019' ,
n _elements : nodeContext ,
n _parentid : 337
} , {
n _id : 3373 ,
n _title : 'Chem Status 2020' ,
code : 'wfd_chem_status_2020' ,
n _elements : nodeContext ,
n _parentid : 337
} , {
n _id : 3374 ,
n _title : 'Chem Status 2021' ,
code : 'wfd_chem_status_2021' ,
n _elements : nodeContext ,
n _parentid : 337
}
] ;
/* =======================*/