Ero sivun ”Widget:Ol3SiteMapX” 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”) |
|||
(Yhtä 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> | ||
Rivi 46: | Rivi 46: | ||
function gotCoords(request) { | function gotCoords(request) { | ||
− | + | ||
for (var x in request.query.results) { | for (var x in request.query.results) { | ||
var resultItem = request.query.results[x].printouts; break; | var resultItem = request.query.results[x].printouts; break; | ||
Rivi 73: | Rivi 73: | ||
'siteSearch': "[[SiteID::" + siteid + "]]", | 'siteSearch': "[[SiteID::" + siteid + "]]", | ||
'obsSearch': "[[SiteID::" + siteid + "]][[obsCode::ice||snow||temp||alg]]", | 'obsSearch': "[[SiteID::" + siteid + "]][[obsCode::ice||snow||temp||alg]]", | ||
+ | 'vesifi': false, | ||
'obsDays': 10, | 'obsDays': 10, | ||
'opacitySlider': false, | 'opacitySlider': false, | ||
Rivi 79: | Rivi 80: | ||
attribution: '' | attribution: '' | ||
}); | }); | ||
− | + | ||
− | |||
− | |||
− | |||
// do the base map with these settings | // do the base map with these settings | ||
var map = ol3_jwMakeMap({ | var map = ol3_jwMakeMap({ |