Ero sivun ”Widget:Ol3TestMap” 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”) |
|||
(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> | ||
<script src="/scripts/proj4js/dist/proj4.js"></script> | <script src="/scripts/proj4js/dist/proj4.js"></script> | ||
− | <script src="/ | + | <link rel="stylesheet" href="https://viglino.github.io/ol-ext/dist/ol-ext.css" type="text/css"> |
+ | <script src="https://viglino.github.io/ol-ext/dist/ol-ext.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/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 109: | Rivi 110: | ||
} | } | ||
− | layersArr.push( { | + | layersArr.push( { 'type': 'geolocX', 'name': 'Sijaintisi', 'show': true, 'center': true, 'zoom': 18, 'track': false, 'button': true } ); |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
// do the base map with these settings | // do the base map with these settings | ||
Rivi 182: | Rivi 174: | ||
else geometry = new ol.geom.LineString(coordinates); | else geometry = new ol.geom.LineString(coordinates); | ||
this.nbpts = geometry.getCoordinates().length; | this.nbpts = geometry.getCoordinates().length; | ||
+ | |||
+ | console.log('dddd'); | ||
return geometry; | return geometry; | ||
} | } | ||
Rivi 228: | Rivi 222: | ||
editbar.addControl ( fedit ); | editbar.addControl ( fedit ); | ||
editbar.addControl ( medit ); | editbar.addControl ( medit ); | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
jQuery('#jwChosenObsTypeContainer').html('Siirrä ja zoomaa karttaa kunnes risti osoittaa tarkoittamaasi paikkaan'); | jQuery('#jwChosenObsTypeContainer').html('Siirrä ja zoomaa karttaa kunnes risti osoittaa tarkoittamaasi paikkaan'); |