Ei muokkausyhteenvetoa |
p (Molindho siirsi sivun Widget:Ol3AllBodysMap uudelle nimelle Widget:Ol10AllBodysMap luomatta ohjausta: Tekstin korvaus – ”Ol3” muotoon ”Ol10”) |
||
(14 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:AllBodysMap|escape:'html'}-->_container"></div> | <div style="height: 100%; width: 100%; position: relative;" id="<!--{$id|default:AllBodysMap|escape:'html'}-->_container"></div> | ||
</div> | </div> | ||
Rivi 50: | Rivi 47: | ||
'type': 'seabody', | 'type': 'seabody', | ||
'name': 'Merialueet', | 'name': 'Merialueet', | ||
'search': "VPDTunnus LIKE '%'", | |||
//'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 58: | Rivi 55: | ||
'zoomToExtent': false, | 'zoomToExtent': false, | ||
'bbox': true, | 'bbox': true, | ||
'maxResolution': | 'maxResolution': 200 | ||
}); | }); | ||
Rivi 65: | Rivi 62: | ||
'type': 'lake', | 'type': 'lake', | ||
'name': 'Järvet', | 'name': 'Järvet', | ||
'search': "jarviTunnus LIKE '%'", | |||
//'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>', | ||
'fillColor': 'rgba( 100, 100, 0, 0.25 )', | |||
'visible': true, | 'visible': true, | ||
'opacitySlider': true, | 'opacitySlider': true, | ||
Rivi 73: | Rivi 71: | ||
'zoomToExtent': false, | 'zoomToExtent': false, | ||
'bbox': true, | 'bbox': true, | ||
'maxResolution': | 'maxResolution': 200 | ||
}); | }); | ||
console.log( layersArr ); | |||
console.log( layersArr ); | |||
// do the base map with these settings | // do the base map with these settings | ||
var map = | var map = jwMakeMap({ | ||
'container': '<!--{$id|default:AllBodysMap|escape:'html'}-->_container', | 'container': '<!--{$id|default:AllBodysMap|escape:'html'}-->_container', | ||
'base': base, | 'base': base, |