Ero sivun ”Widget:Ol3LakeMapX” versioiden välillä
Järvi-meriwikistä
p (Tekstin korvaus – ”//www.jarviwiki.fi/scripts/” muotoon ”/scripts/”) |
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”) |
||
(13 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 12: | Rivi 12: | ||
<script src="/scripts/proj4js/dist/proj4.js"></script> | <script src="/scripts/proj4js/dist/proj4.js"></script> | ||
− | <script src="/scripts/jwol3js/ | + | <script src="/scripts/jwol3js/Gjwol3.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 102: | Rivi 102: | ||
'zoomToExtent': true | 'zoomToExtent': true | ||
}); | }); | ||
− | + | ||
layersArr.push({ | layersArr.push({ | ||
'type': 'syvyysalue', | 'type': 'syvyysalue', | ||
Rivi 124: | Rivi 124: | ||
'zoomToExtent': false | 'zoomToExtent': false | ||
}); | }); | ||
− | + | ||
+ | |||
+ | /* | ||
layersArr.push({ | layersArr.push({ | ||
'type': 'sitesNobses', | 'type': 'sitesNobses', | ||
Rivi 136: | Rivi 138: | ||
'zoomToExtent': false | 'zoomToExtent': false | ||
}); | }); | ||
− | + | */ | |
− | 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 }); |
// do the base map with these settings | // do the base map with these settings |