Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| (32 välissä olevaa versiota samalta käyttäjältä ei näytetä) | |||
| Rivi 56: | Rivi 56: | ||
var layersArr = []; | var layersArr = []; | ||
var filterlayer = false; | |||
memo.a = {}; | memo.a = {}; | ||
| Rivi 61: | Rivi 62: | ||
memo.c = {}; | memo.c = {}; | ||
if ( alue.indexOf( 'ELY' ) > 0 ) { | if ( alue.indexOf( 'ELY' ) > 0 || alue.indexOf( 'Ahvenanmaan') >= 0 ) { | ||
var short = alue + "-keskus"; | var short = alue + "-keskus"; | ||
| Rivi 68: | Rivi 69: | ||
} else if ( short == 'Etelä-Pohjanmaan ELY-keskus' ) { | } else if ( short == 'Etelä-Pohjanmaan ELY-keskus' ) { | ||
cql = "tilastointialueet:nimi='Etelä-Pohjanmaan ELY-keskus'+OR+tilastointialueet:nimi='Pohjanmaan ELY-keskus'"; | cql = "tilastointialueet:nimi='Etelä-Pohjanmaan ELY-keskus'+OR+tilastointialueet:nimi='Pohjanmaan ELY-keskus'"; | ||
} else if ( short.indexOf( 'Ahvenanmaan' ) >= 0 ) { | |||
cql = "tilastointialueet:nimi = 'Ahvenanmaa'"; | |||
} else { | } else { | ||
cql = "tilastointialueet:nimi = '" + short + "'"; | cql = "tilastointialueet:nimi = '" + short + "'"; | ||
| Rivi 82: | Rivi 85: | ||
'zoomToExtent': true, | 'zoomToExtent': true, | ||
'bbox': false, | 'bbox': false, | ||
'attribution': 'Alue: Tilastokeskus', | |||
}); | }); | ||
filterlayer = layersArr[ layersArr.length - 1 ]; | |||
} | |||
if ( alue.indexOf( 'Meri' ) >= 0 || alue.indexOf( 'Sisävedet' ) >= 0 ) { | |||
} else { | |||
var startDate = firstDayOfWeek (year, week); | |||
var endDate = new Date( startDate.getTime() ); | |||
endDate.setDate( endDate.getDate() + 7 ); | |||
layersArr.push({ | layersArr.push({ | ||
'type': 'coo311', | 'type': 'coo311', | ||
| Rivi 94: | Rivi 105: | ||
'service_code': 'algaebloom_service_code_201808151546171', | 'service_code': 'algaebloom_service_code_201808151546171', | ||
'hashtags': '_VesiFiObservation', | 'hashtags': '_VesiFiObservation', | ||
'startDate': | 'startDate': startDate, | ||
'endDate': | 'endDate': endDate, | ||
'selectable': true, | 'selectable': true, | ||
'clustered': false, | 'clustered': false, | ||
| Rivi 104: | Rivi 115: | ||
'visible': true | 'visible': true | ||
}); | }); | ||
//if ( alue.indexOf( 'Sisävedet' ) >= 0 ) { layersArr[ layersArr.length - 1 ].filtertype = 'outside'; } | |||
} | } | ||
| Rivi 110: | Rivi 122: | ||
'memo': memo.a, | 'memo': memo.a, | ||
'type': 'sitesNobses', | 'type': 'sitesNobses', | ||
'name': ' | 'name': 'Sinileväseurannan havainnot', | ||
'siteSearch': '', | 'siteSearch': '', | ||
'obsSearch': obsQuery + '[[Seuranta::Valtakunnallinen leväseuranta]]', | 'obsSearch': obsQuery + '[[Seuranta::Valtakunnallinen leväseuranta]][[ObsCode::alg]]', | ||
'order': 'greaterval', | 'order': 'greaterval', | ||
'opacitySlider': false, | 'opacitySlider': false, | ||
| Rivi 126: | Rivi 138: | ||
'name': 'Muut Järvi-meriwikin havainnot', | 'name': 'Muut Järvi-meriwikin havainnot', | ||
'siteSearch': '', | 'siteSearch': '', | ||
'obsSearch': obsQuery + '[[Seuranta::!Valtakunnallinen leväseuranta]]', | 'obsSearch': obsQuery + '[[Seuranta::!Valtakunnallinen leväseuranta]][[ObsCode::alg]]', | ||
'vesifi': false, | 'vesifi': false, | ||
'order': 'greaterval', | 'order': 'greaterval', | ||


