Ei muokkausyhteenvetoa |
p (Molindho siirsi sivun Widget:Ol3BaroMap uudelle nimelle Widget:Ol10BaroMap luomatta ohjausta: Tekstin korvaus – ”Ol3” muotoon ”Ol10”) |
||
| (29 välissä olevaa versiota samalta käyttäjältä ei näytetä) | |||
| Rivi 1: | Rivi 1: | ||
<includeonly> | <includeonly> | ||
<link rel="stylesheet" href="/scripts/ | |||
<link rel="stylesheet" href="/scripts/ol-10/ol.css" type="text/css"> | |||
<script src="/scripts/ol-10/ol.js"></script> | |||
<link rel="stylesheet" href="/scripts/ol-ext/dist/ol-ext.min.css" type="text/css"> | <link rel="stylesheet" href="/scripts/ol-ext-10/dist/ol-ext.min.css" type="text/css"> | ||
<script src="/scripts/ol-ext/dist/ol-ext.min.js"></script | <script src="/scripts/ol-ext-10/dist/ol-ext.min.js"></script> | ||
<script src="/scripts/proj4js/dist/proj4.js"></script> | <script src="/scripts/proj4js/dist/proj4.js"></script> | ||
<script src="/scripts/ | <script src="/scripts/jwol10js/jwol10.js"></script> | ||
<div class="jwMapContainer" style="height:<!--{$height|default: | <div class="jwMapContainer" style="height:<!--{$height|default:500px|escape:'html'}-->" > | ||
<div style="height: 100%; width: 100%; position: relative;" id="<!--{$id|default:CommonObsMap|escape:'html'}-->_container"></div> | <div style="height: 100%; width: 100%; position: relative;" id="<!--{$id|default:CommonObsMap|escape:'html'}-->_container"></div> | ||
</div> | </div> | ||
| Rivi 78: | Rivi 76: | ||
var layersArr = []; | var layersArr = []; | ||
/* | |||
layersArr.push({ | layersArr.push({ | ||
'type': 'drainage', | 'type': 'drainage', | ||
| Rivi 90: | Rivi 88: | ||
'zoomToExtent': false | 'zoomToExtent': false | ||
}); | }); | ||
*/ | |||
layersArr.push({ | layersArr.push({ | ||
'type': 'lake', | 'type': 'lake', | ||
| Rivi 99: | Rivi 97: | ||
'opacitySlider': true, | 'opacitySlider': true, | ||
'showLabels': false, | 'showLabels': false, | ||
'fillColor': 'rgba( 255, 255, 255, 0.75 )', | |||
'selectable': false, | 'selectable': false, | ||
'zoomToExtent': true | 'zoomToExtent': true | ||
}); | }); | ||
/* | |||
layersArr.push({ | layersArr.push({ | ||
'type': 'syvyysalue', | 'type': 'syvyysalue', | ||
| Rivi 113: | Rivi 112: | ||
'zoomToExtent': false | 'zoomToExtent': false | ||
}); | }); | ||
*/ | |||
/* | |||
layersArr.push({ | layersArr.push({ | ||
'type': 'syvinpiste', | 'type': 'syvinpiste', | ||
| Rivi 124: | Rivi 124: | ||
'zoomToExtent': false | 'zoomToExtent': false | ||
}); | }); | ||
*/ | |||
layersArr.push({ | |||
'type': 'alerts', | |||
'name': 'Varoitukset', | |||
'obsSearch': "[[Alue::" + decodeURI(page) + "]][[ObsCode::alert]]", | |||
'obsDays': 150, | |||
'attribution': 'Varoitukset: Järvi-meriwiki', | |||
'opacitySlider': false, | |||
'obstypebar': false, | |||
'selectable': true, | |||
'clustered': false, | |||
'zoomToExtent': false | |||
}); | |||
layersArr.push({ | layersArr.push({ | ||
'type': 'sitesNobses', | 'type': 'sitesNobses', | ||
| Rivi 130: | Rivi 144: | ||
//'siteSearch': "[[Alue::" + decodeURI(page) + "]]", | //'siteSearch': "[[Alue::" + decodeURI(page) + "]]", | ||
'obsSearch': "[[Alue::" + decodeURI(page) + "]][[obsCode::ice]]", | 'obsSearch': "[[Alue::" + decodeURI(page) + "]][[obsCode::ice]]", | ||
'obsDays': | 'obsDays': 7, | ||
'attribution': 'Paikat ja havainnot: Järvi-meriwiki', | 'attribution': 'Paikat ja havainnot: Järvi-meriwiki', | ||
'opacitySlider': false, | 'opacitySlider': false, | ||
| Rivi 138: | Rivi 152: | ||
}); | }); | ||
// 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 147: | Rivi 160: | ||
'lat': lat, | 'lat': lat, | ||
'zoom': zoom, | 'zoom': zoom, | ||
'geolocation': true, | |||
'layers': layersArr, | 'layers': layersArr, | ||
'memo': memo | 'memo': memo | ||


