Ei muokkausyhteenvetoa |
p (Molindho siirsi sivun Widget:Ol3TestMap uudelle nimelle Widget:Ol10TestMap luomatta ohjausta: Tekstin korvaus – ”Ol3” muotoon ”Ol10”) |
||
(12 välissä olevaa versiota samalta käyttäjältä ei näytetä) | |||
Rivi 1: | Rivi 1: | ||
<includeonly> | <includeonly> | ||
<script src="/scripts/ | <link rel="stylesheet" href="/scripts/ol-10/ol.css" type="text/css"> | ||
<script src="/scripts/ol-10/ol.js"></script> | |||
<link rel="stylesheet" href="/scripts/ol-ext-10/dist/ol-ext.min.css" type="text/css"> | |||
<script src="/scripts/ol-ext-10/dist/ol-ext.min.js"></script> | |||
<script src="/scripts/proj4js/dist/proj4.js"></script> | |||
<script src=" | |||
< | <script src="/scripts/jwol10js/jwol10.js"></script> | ||
<div class="jwMapContainer" style="height:<!--{$height|default: | <div class="jwMapContainer" style="height:<!--{$height|default:500px|escape:'html'}-->" > | ||
<div style="height: 100%; width: 100%; position: relative;" id="<!--{$id|default:CommonObsMap|escape:'html'}-->_container"></div> | <div style="height: 100%; width: 100%; position: relative;" id="<!--{$id|default:CommonObsMap|escape:'html'}-->_container"></div> | ||
</div> | </div> | ||
Rivi 110: | Rivi 108: | ||
} | } | ||
layersArr.push( { 'type': 'geolocX', 'name': 'Sijaintisi', 'show': true, 'center': | 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 | ||
var map = | var map = jwMakeMap({ | ||
'container': '<!--{$id|default:CommonObsMap|escape:'html'}-->_container', | 'container': '<!--{$id|default:CommonObsMap|escape:'html'}-->_container', | ||
'base': base, | 'base': base, | ||
Rivi 119: | Rivi 117: | ||
'lat': lat, | 'lat': lat, | ||
'zoom': zoom, | 'zoom': zoom, | ||
'geolocation': true, | |||
'layers': layersArr, | 'layers': layersArr, | ||
'memo': memo | 'memo': memo | ||
Rivi 174: | Rivi 173: | ||
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; | ||
} | } |