Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| (10 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:BalticSeaMap|escape:'html'}-->_container"></div> | <div style="height: 100%; width: 100%; position: relative;" id="<!--{$id|default:BalticSeaMap|escape:'html'}-->_container"></div> | ||
</div> | </div> | ||
| Rivi 49: | Rivi 47: | ||
'type': 'anyrest', | 'type': 'anyrest', | ||
'name': 'Itämeren allas', | 'name': 'Itämeren allas', | ||
'restUrl': '//maps.helcom.fi/arcgis/rest/services/MADS/ | 'restUrl': '//maps.helcom.fi/arcgis/rest/services/MADS/Monitoring/MapServer/92/query', | ||
'search': 'SUBID=' + subid, | 'search': 'SUBID=' + subid, | ||
'zoomToExtent': true, | 'zoomToExtent': true, | ||
| Rivi 58: | Rivi 56: | ||
if ( subid == 3 ) { search = "HELCOM_ID = 'SEA-013'"; } | if ( subid == 3 ) { search = "HELCOM_ID = 'SEA-013'"; } | ||
else { search = ''; } | else { search = ''; } | ||
console.log( vhaid ); | |||
layersArr.push({ | layersArr.push({ | ||
'type': 'seabody', | 'type': 'seabody', | ||
'name': 'Merialue', | 'name': 'Merialue', | ||
'search': " | 'search': "vhatunnus='" + vhaid + "'", | ||
//'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>', | ||
'visible': true, | 'visible': true, | ||
| Rivi 85: | Rivi 71: | ||
}); | }); | ||
// do the base map with these settings | // do the base map with these settings | ||
var map = | var map = jwMakeMap({ | ||
'container': '<!--{$id|default:BalticSeaMap|escape:'html'}-->_container', | 'container': '<!--{$id|default:BalticSeaMap|escape:'html'}-->_container', | ||
'base': base, | 'base': base, | ||


