Ero sivun ”Widget:Ol3BaroMap” versioiden välillä
Järvi-meriwikistä
p (Tekstin korvaus – ”//cdn.polyfill.io/v2/polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList,URL” muotoon ”https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js”) |
|||
(23 välissä olevaa versiota samalta käyttäjältä ei näytetä) | |||
Rivi 2: | Rivi 2: | ||
<link rel="stylesheet" href="/scripts/ol3/ol.css" type="text/css"> | <link rel="stylesheet" href="/scripts/ol3/ol.css" type="text/css"> | ||
− | <script src="// | + | <script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js"></script> |
<script src="/scripts/ol3/ol.js"></script> | <script src="/scripts/ol3/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/dist/ol-ext.min.css" type="text/css"> | ||
<script src="/scripts/ol-ext/dist/ol-ext.min.js"></script> | <script src="/scripts/ol-ext/dist/ol-ext.min.js"></script> | ||
+ | <!-- | ||
<link rel="stylesheet" href="/scripts/ol-ext/overlay/popupoverlay.css" /> | <link rel="stylesheet" href="/scripts/ol-ext/overlay/popupoverlay.css" /> | ||
<link rel="stylesheet" href="/scripts/ol-ext/overlay/popupoverlay.anim.css" /> | <link rel="stylesheet" href="/scripts/ol-ext/overlay/popupoverlay.anim.css" /> | ||
− | + | --> | |
<script src="/scripts/proj4js/dist/proj4.js"></script> | <script src="/scripts/proj4js/dist/proj4.js"></script> | ||
− | <script src="/scripts/jwol3js/jwol3.js"></script> | + | <script src="/scripts/jwol3js/jwol3.js"></script> |
<div class="jwMapContainer" style="height:<!--{$height|default:500|escape:'html'}-->px" > | <div class="jwMapContainer" style="height:<!--{$height|default:500|escape:'html'}-->px" > | ||
Rivi 78: | Rivi 79: | ||
var layersArr = []; | var layersArr = []; | ||
− | + | /* | |
layersArr.push({ | layersArr.push({ | ||
'type': 'drainage', | 'type': 'drainage', | ||
Rivi 90: | Rivi 91: | ||
'zoomToExtent': false | 'zoomToExtent': false | ||
}); | }); | ||
− | + | */ | |
layersArr.push({ | layersArr.push({ | ||
'type': 'lake', | 'type': 'lake', | ||
Rivi 99: | Rivi 100: | ||
'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 115: | ||
'zoomToExtent': false | 'zoomToExtent': false | ||
}); | }); | ||
− | + | */ | |
+ | /* | ||
layersArr.push({ | layersArr.push({ | ||
'type': 'syvinpiste', | 'type': 'syvinpiste', | ||
Rivi 124: | Rivi 127: | ||
'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 147: | ||
//'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, |