Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 60: | Rivi 60: | ||
//'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 99: | ||
'label': 'J', | 'label': 'J', | ||
//'zoomToExtent': false | //'zoomToExtent': false | ||
} ); | } ); | ||
layersArr.push({ | |||
'type': 'coo311', | |||
'name': 'Vesi.fi-havainnot', | |||
'service_code': 'algaebloom_service_code_201808151546171', | |||
'hashtags': '_VesiFiObservation', | |||
'startDate': startDate, | |||
'endDate': endDate, | |||
'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( { | ||


