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 38: | Rivi 38: | ||
var zoom = parseInt('<!--{$zoom|default:4|escape:'html'}-->'); | var zoom = parseInt('<!--{$zoom|default:4|escape:'html'}-->'); | ||
var page = '<!--{$page|escape:'html'}-->'; | var page = '<!--{$page|escape:'html'}-->'; | ||
var shortest = page.split(' ')[0]; | |||
var short = shortest + ' ELY-keskus'; | |||
var base = '<!--{$base|default:mmlTausta|escape:'html'}-->'; | var base = '<!--{$base|default:mmlTausta|escape:'html'}-->'; | ||
| Rivi 64: | Rivi 66: | ||
//'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>', | ||
}); | }); | ||
layersArr.push( { | |||
'id': 'munis', | |||
'type': 'anyrest', | |||
'name': 'Kunnat', | |||
'restUrl': '//paikkatieto.ymparisto.fi/arcgis/rest/services/sykemaps/GISAineistot2/MapServer/0/query', | |||
'search': "ELYyNimi LIKE '" + shortest + "%'", | |||
'selectable': false, | |||
'zoomToExtent': false, | |||
'bbox': false, | |||
'fillColor': 'rgba( 0, 0, 0, 0 )', | |||
'strokeColor': 'rgba( 0, 0, 0, 0 )', | |||
'displayInLayerSwitcher': false, | |||
}); | |||
var filterlayer = layersArr[ layersArr.length - 1 ]; | |||
/* | /* | ||
layersArr.push( { | layersArr.push( { | ||
| Rivi 92: | Rivi 111: | ||
//'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' } ] }, | |||
'obstypebar': false, | |||
'zoomToExtent': false, | |||
'filter': filterlayer, | |||
'visible': true | |||
}); | |||
layersArr.push( { | layersArr.push( { | ||
'type': 'sitesNobses', | 'type': 'sitesNobses', | ||
| Rivi 99: | Rivi 135: | ||
'obsSearch': '[[ELY-keskus::' + page + ']][[obsCode::ice||snow||temp||alg]]', | 'obsSearch': '[[ELY-keskus::' + page + ']][[obsCode::ice||snow||temp||alg]]', | ||
'obsDays': 7, | 'obsDays': 7, | ||
'vesifi': false, | |||
//'attribution': 'Havainnot: Järvi-meriwiki', | //'attribution': 'Havainnot: Järvi-meriwiki', | ||
'opacitySlider': false, | 'opacitySlider': false, | ||
| Rivi 107: | Rivi 144: | ||
// 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, | ||


