p (Tekstin korvaus – ”//www.jarviwiki.fi/scripts/” muotoon ”/scripts/”) |
Ei muokkausyhteenvetoa |
||
(17 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> | |||
<script src="/scripts/ | |||
<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="/scripts/proj4js/dist/proj4.js"></script> | ||
<script src="/scripts/jwol10js/jwol10.js"></script> | |||
<script src="/scripts/ | |||
<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 46: | Rivi 44: | ||
layersArr.push( { | layersArr.push( { | ||
'id': 'elys', | 'id': 'elys', | ||
'type': ' | 'type': 'anygeo', | ||
'name': ' | 'name': 'ELYt ilman ympäristövastuuta', | ||
'restUrl': '// | 'restUrl': '//geo.stat.fi/geoserver/tilastointialueet/', | ||
' | 'layer': 'tilastointialueet:ely1000k', | ||
'cql_filter': "tilastointialueet:id='03' OR tilastointialueet:id='12'", | |||
'fillColor': 'rgba( 100, 193, 203, 0.75 )', | |||
'selectable': true, | |||
'zoomToExtent': false, | |||
'bbox': false, | |||
'attribution': 'Maanmittauslaitos', | |||
}); | |||
layersArr.push( { | |||
'id': 'yelys', | |||
'type': 'anygeo', | |||
'name': 'Ympäristövastuu-ELYt', | |||
'restUrl': '//geo.stat.fi/geoserver/tilastointialueet/', | |||
'layer': 'tilastointialueet:ely1000k', | |||
'cql_filter': "tilastointialueet:id<>'03' AND tilastointialueet:id<>'12'", | |||
'fillColor': 'rgba( 132, 196, 151, 0.75 )', | |||
'selectable': true, | 'selectable': true, | ||
'zoomToExtent': true, | 'zoomToExtent': true, | ||
'bbox': false, | 'bbox': false, | ||
'attribution': 'Maanmittauslaitos', | |||
}); | }); | ||
// 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, |