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”) |
|||
(18 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 99: | Rivi 100: | ||
'opacitySlider': true, | 'opacitySlider': true, | ||
'showLabels': false, | 'showLabels': false, | ||
− | 'fillColor': 'rgba( 255, 255, 255, 0. | + | 'fillColor': 'rgba( 255, 255, 255, 0.75 )', |
'selectable': false, | 'selectable': false, | ||
'zoomToExtent': true | 'zoomToExtent': true | ||
Rivi 126: | Rivi 127: | ||
'zoomToExtent': false | 'zoomToExtent': false | ||
}); | }); | ||
− | */ | + | */ |
− | + | ||
layersArr.push({ | layersArr.push({ | ||
− | 'type': ' | + | 'type': 'alerts', |
'name': 'Varoitukset', | 'name': 'Varoitukset', | ||
− | |||
'obsSearch': "[[Alue::" + decodeURI(page) + "]][[ObsCode::alert]]", | 'obsSearch': "[[Alue::" + decodeURI(page) + "]][[ObsCode::alert]]", | ||
− | 'obsDays': | + | 'obsDays': 150, |
− | 'attribution': ' | + | 'attribution': 'Varoitukset: Järvi-meriwiki', |
'opacitySlider': false, | 'opacitySlider': false, | ||
'obstypebar': false, | 'obstypebar': false, | ||
'selectable': true, | 'selectable': true, | ||
+ | 'clustered': false, | ||
'zoomToExtent': false | 'zoomToExtent': false | ||
}); | }); | ||
− | + | ||
layersArr.push({ | layersArr.push({ | ||
'type': 'sitesNobses', | 'type': 'sitesNobses', | ||
Rivi 146: | 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, |