Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| (3 välissä olevaa versiota samalta käyttäjältä ei näytetä) | |||
| Rivi 48: | Rivi 48: | ||
layersArr.push( { | layersArr.push( { | ||
'id': 'muni', | 'id': 'muni', | ||
'type': ' | 'type': 'anygeo', | ||
'name': 'Kunta', | 'name': 'Kunta', | ||
'restUrl': '// | 'restUrl': '//inspire-wfs.maanmittauslaitos.fi/inspire-wfs/au', | ||
' | 'layer': 'au:AdministrativeUnit', | ||
'cql_filter': "nationalCode=%27" + muniNameToNumber( muni ) + "%27", | |||
'selectable': false, | 'selectable': false, | ||
'zoomToExtent': true, | 'zoomToExtent': true, | ||
| Rivi 60: | Rivi 61: | ||
//'attribution': '<a href="//wwwp2.ymparisto.fi/kayttoehdot.html">Ympäristöhallinnon paikkatietoaineistot</a>', | //'attribution': '<a href="//wwwp2.ymparisto.fi/kayttoehdot.html">Ympäristöhallinnon paikkatietoaineistot</a>', | ||
}); | }); | ||
var filterlayer = layersArr[ layersArr.length - 1 ]; | |||
if ( typeof request.query.results != 'undefined' ) { | if ( typeof request.query.results != 'undefined' ) { | ||
| Rivi 97: | Rivi 100: | ||
'label': 'J', | 'label': 'J', | ||
//'zoomToExtent': false | //'zoomToExtent': false | ||
} ); | } ); | ||
layersArr.push({ | |||
'type': 'coo311', | |||
'name': 'Vesi.fi-havainnot', | |||
'service_code': 'algaebloom_service_code_201808151546171', | |||
'hashtags': '_VesiFiObservation', | |||
'days': 7, | |||
'selectable': true, | |||
'clustered': false, | |||
'pointRadius': 8, | |||
'obsesColors': { type: 'cat', 'attribute': 'algaebloom_singlevaluelist_201808151546174', values: [ { key: 1, color: '#308fb3' }, { key: 2, color: '#8db335' }, { key: 3, color: '#f1cb00' }, { key: 4, color: '#ce0000' } ] }, | |||
'zoomToExtent': false, | |||
'filter': filterlayer, | |||
'visible': true | |||
}); | |||
layersArr.push( { | layersArr.push( { | ||


