Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
(13 välissä olevaa versiota samalta käyttäjältä ei näytetä) | |||
Rivi 1: | Rivi 1: | ||
<includeonly> | <includeonly> | ||
<link rel="stylesheet" href=" | <link rel="stylesheet" href="/scripts/ol-10/ol.css" type="text/css"> | ||
<script src="/scripts/ol-10/ol.js"></script> | |||
<script src=" | |||
< | <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=" | |||
<div class="jwMapContainer" style="height:<!--{$height|default: | <script src="/scripts/jwol10js/jwol10.js"></script> | ||
<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 21: | Rivi 19: | ||
var <!--{$id|default:CommonObsMap|escape:'html'}-->_memo = { 'SitesO': {}, 'TypesO': {}, 'obsTypeToShow': '' }; | var <!--{$id|default:CommonObsMap|escape:'html'}-->_memo = { 'SitesO': {}, 'TypesO': {}, 'obsTypeToShow': '' }; | ||
function <!--{$id|default:CommonObsMap|escape:'html'}-->_jQueryTest() { | |||
if ( typeof window.jQuery == 'undefined' ) { | |||
setTimeout( function(){ <!--{$id|default:CommonObsMap|escape:'html'}-->_jQueryTest() }, 300); | |||
} else { | |||
<!--{$id|default:CommonObsMap|escape:'html'}-->_func(); | |||
} | |||
} | |||
setTimeout( function(){ <!--{$id|default:CommonObsMap|escape:'html'}-->_jQueryTest() }, 300); | |||
function <!--{$id|default:CommonObsMap|escape:'html'}-->_func() { | function <!--{$id|default:CommonObsMap|escape:'html'}-->_func() { | ||
Rivi 42: | Rivi 47: | ||
layersArr.push( { | layersArr.push( { | ||
'id': 'reagion', | 'id': 'reagion', | ||
'type': ' | 'type': 'anygeo', | ||
'name': 'Maakunta', | 'name': 'Maakunta', | ||
'restUrl': '// | 'restUrl': '//geo.stat.fi/geoserver/tilastointialueet/', | ||
' | 'layer': 'tilastointialueet:maakunta1000k', | ||
'cql_filter': "tilastointialueet:nimi = '" + short + "'", | |||
'selectable': false, | 'selectable': false, | ||
'zoomToExtent': true, | 'zoomToExtent': true, | ||
Rivi 56: | Rivi 62: | ||
'type': 'anyrest', | 'type': 'anyrest', | ||
'name': 'Kunnat', | 'name': 'Kunnat', | ||
'restUrl': '//paikkatieto.ymparisto.fi/arcgis/rest/services/ | 'restUrl': '//paikkatieto.ymparisto.fi/arcgis/rest/services/sykemaps/GISAineistot2/MapServer/0/query', | ||
'search': "MKuntaNimi = '" + short + "'", | 'search': "MKuntaNimi = '" + short + "'", | ||
'selectable': true, | 'selectable': true, | ||
Rivi 86: | Rivi 92: | ||
'name': 'Paikat ja havainnot', | 'name': 'Paikat ja havainnot', | ||
//'siteSearch': '[[Maakunta::' + page + ']]', | //'siteSearch': '[[Maakunta::' + page + ']]', | ||
'obsSearch': '[[Maakunta::' + page + ']][[obsCode::ice | 'obsSearch': '[[Maakunta::' + page + ']][[obsCode::ice||temp||alg]]', | ||
'obsDays': 7, | 'obsDays': 7, | ||
//'attribution': 'Havainnot: Järvi-meriwiki', | //'attribution': 'Havainnot: Järvi-meriwiki', | ||
Rivi 94: | Rivi 100: | ||
}); | }); | ||
// 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, |