p (Tekstin korvaus – ”//layersArr.push({ 'type': 'geoloc', 'name': 'Sijaintisi', 'show': true, 'center': false, 'zoom': 12, 'track': false });↵” muotoon ””) |
Ei muokkausyhteenvetoa |
||
| (6 välissä olevaa versiota samalta käyttäjältä ei näytetä) | |||
| 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 73: | Rivi 75: | ||
layersArr.push( { | layersArr.push( { | ||
'id': 'seavpd', | 'id': 'seavpd', | ||
'type': ' | 'type': 'seabody', | ||
'name': 'Merialueet', | 'name': 'Merialueet', | ||
'search': vpdsearchA.join( ' OR ' ), | 'search': vpdsearchA.join( ' OR ' ), | ||
'selectable': true, | 'selectable': true, | ||
| Rivi 81: | Rivi 82: | ||
'bbox': false, | 'bbox': false, | ||
//'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>', | ||
}); | }); | ||
} | } | ||
| Rivi 98: | 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', | |||
'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( { | ||
| Rivi 106: | Rivi 122: | ||
'obsSearch': '[[Kunta::' + page + ']][[obsCode::ice||snow||temp||alg||img]]', | 'obsSearch': '[[Kunta::' + page + ']][[obsCode::ice||snow||temp||alg||img]]', | ||
'obsDays': 7, | 'obsDays': 7, | ||
'vesifi': false, | |||
//'attribution': 'Havainnot: Järvi-meriwiki', | //'attribution': 'Havainnot: Järvi-meriwiki', | ||
'opacitySlider': false, | 'opacitySlider': false, | ||
| Rivi 114: | Rivi 131: | ||
// do the base map with these settings | // do the base map with these settings | ||
var map = | var map = jwMakeMap({ | ||
'container': '<!--{$id|default:CommonObsMap|escape:'html'}-->_container', | 'container': '<!--{$id|default:CommonObsMap|escape:'html'}-->_container', | ||
'base': base, | 'base': base, | ||
| Rivi 120: | Rivi 137: | ||
'lat': lat, | 'lat': lat, | ||
'zoom': zoom, | 'zoom': zoom, | ||
'geolocation': true, | |||
'layers': layersArr, | 'layers': layersArr, | ||
'memo': memo | 'memo': memo | ||


