Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| (12 välissä olevaa versiota samalta käyttäjältä ei näytetä) | |||
| Rivi 1: | Rivi 1: | ||
<includeonly> | <includeonly> | ||
<link rel="stylesheet" href="/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/dist/ol-ext.min.css" type="text/css"> | <link rel="stylesheet" href="/scripts/ol-ext-10/dist/ol-ext.min.css" type="text/css"> | ||
<script src="/scripts/ol-ext/dist/ol-ext.min.js"></script | <script src="/scripts/ol-ext-10/dist/ol-ext.min.js"></script> | ||
<script src="/scripts/proj4js/dist/proj4.js"></script> | <script src="/scripts/proj4js/dist/proj4.js"></script> | ||
<script src="/scripts/ | <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 47: | Rivi 44: | ||
var days = parseInt('<!--{$days|default:365|escape:'html'}-->'); | var days = parseInt('<!--{$days|default:365|escape:'html'}-->'); | ||
var pointradius = parseInt('<!--{$pointradius|default:6|escape:'html'}-->'); | var pointradius = parseInt('<!--{$pointradius|default:6|escape:'html'}-->'); | ||
var obstypebar = ("<!--{$obstypebar|default:yes|escape:'html'}-->" == "yes" ); | var obstypebar = ( "<!--{$obstypebar|default:yes|escape:'html'}-->" == "yes" ); | ||
var zoomto = ("<!--{$zoomto|default:false|escape:'html'}-->" == "true"); | var zoomto = ("<!--{$zoomto|default:false|escape:'html'}-->" == "true"); | ||
var simplepoints = ("<!--{$simplepoints|default:false|escape:'html'}-->" == "true"); | var simplepoints = ("<!--{$simplepoints|default:false|escape:'html'}-->" == "true"); | ||
| Rivi 68: | Rivi 65: | ||
'zoomToExtent': true, | 'zoomToExtent': true, | ||
'bbox': false, | 'bbox': false, | ||
'fillColor': 'rgba( 0, 0, 0, 0 )', | 'fillColor': 'rgba( 0, 0, 0, 0.1 )', | ||
'strokeColor': 'rgba( | 'strokeColor': 'rgba( 0, 0, 0, 0.15 )', | ||
'strokeWidth': 5 | 'strokeWidth': 5 | ||
//'attribution': '<a href="//wwwp2.ymparisto.fi/kayttoehdot.html">Ympäristöhallinnon paikkatietoaineistot</a>', | //'attribution': '<a href="//wwwp2.ymparisto.fi/kayttoehdot.html">Ympäristöhallinnon paikkatietoaineistot</a>', | ||
}); | }); | ||
} | } | ||
console.log( "<!--{$obstypebar|default:yes|escape:'html'}-->" ); | |||
console.log( obstypebar ); | |||
layersArr.push({ | layersArr.push({ | ||
| Rivi 92: | Rivi 92: | ||
}); | }); | ||
// 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, | ||


