Ero sivun ”Widget:Ol3SiteMap” 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”) |
|||
(5 välissä olevaa versiota samalta käyttäjältä ei näytetä) | |||
Rivi 1: | Rivi 1: | ||
<includeonly> | <includeonly> | ||
− | <link rel="stylesheet" href=" | + | <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=" | + | <script src="/scripts/ol3/ol.js"></script> |
− | <link rel="stylesheet" href=" | + | <link rel="stylesheet" href="/scripts/ol-ext/dist/ol-ext.min.css" type="text/css"> |
− | <script src=" | + | <script src="/scripts/ol-ext/dist/ol-ext.min.js"></script> |
− | <link rel="stylesheet" href=" | + | <link rel="stylesheet" href="/scripts/ol-ext/overlay/popupoverlay.css" /> |
− | <link rel="stylesheet" href=" | + | <link rel="stylesheet" href="/scripts/ol-ext/overlay/popupoverlay.anim.css" /> |
− | <script src=" | + | <script src="/scripts/proj4js/dist/proj4.js"></script> |
− | <script src=" | + | <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 23: | Rivi 23: | ||
var <!--{$id|default:TheSiteMap|escape:'html'}-->_memo = { 'SitesO': {}, 'TypesO': {}, 'obsTypeToShow': '' }; | var <!--{$id|default:TheSiteMap|escape:'html'}-->_memo = { 'SitesO': {}, 'TypesO': {}, 'obsTypeToShow': '' }; | ||
− | + | function <!--{$id|default:TheSiteMap|escape:'html'}-->_jQueryTest() { | |
+ | |||
+ | if ( typeof window.jQuery == 'undefined' ) { | ||
+ | setTimeout( function(){ <!--{$id|default:TheSiteMap|escape:'html'}-->_jQueryTest() }, 300); | ||
+ | } else { | ||
+ | <!--{$id|default:TheSiteMap|escape:'html'}-->_func(); | ||
+ | } | ||
+ | } | ||
+ | setTimeout( function(){ <!--{$id|default:TheSiteMap|escape:'html'}-->_jQueryTest() }, 300); | ||
function <!--{$id|default:TheSiteMap|escape:'html'}-->_func() { | function <!--{$id|default:TheSiteMap|escape:'html'}-->_func() { | ||
Rivi 31: | Rivi 39: | ||
memo.g = { 'sizeFactor': 1.5, 'lang': '<!--{$lang|default:fi|escape:'html'}-->' }; | memo.g = { 'sizeFactor': 1.5, 'lang': '<!--{$lang|default:fi|escape:'html'}-->' }; | ||
− | var page = "<!--{$page|escape:'urlpathinfo'}-->"; | + | var page = "<!--{$page|default:X|escape:'urlpathinfo'}-->"; |
var sid = "<!--{$siteid|default:X|escape:'urlpathinfo'}-->"; | var sid = "<!--{$siteid|default:X|escape:'urlpathinfo'}-->"; | ||
var selectable = ("<!--{$selectable|default:false|escape:'urlpathinfo'}-->" == "true"); | var selectable = ("<!--{$selectable|default:false|escape:'urlpathinfo'}-->" == "true"); | ||
Rivi 58: | Rivi 66: | ||
var layersArr = []; | var layersArr = []; | ||
− | layersArr.push({ 'type': 'geoloc', 'name': 'Sijaintisi', 'show': true, 'center': false, 'zoom': 12, 'track': false }); | + | //layersArr.push({ 'type': 'geoloc', 'name': 'Sijaintisi', 'show': true, 'center': false, 'zoom': 12, 'track': false }); |
layersArr.push({ | layersArr.push({ | ||
Rivi 65: | 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, |