(Ak: Uusi sivu: <includeonly> <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/...) |
p (Tekstin korvaus – ”ol3_jwMakeMap” muotoon ”jwMakeMap”) |
||
(2 välissä olevaa versiota samalta käyttäjältä ei näytetä) | |||
Rivi 10: | Rivi 10: | ||
<script src="/scripts/jwol10js/jwol10.js"></script> | <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 139: | Rivi 139: | ||
}); | }); | ||
// do the base map with these settings | // do the base map with these settings | ||
jQuery ( '#' + container ).animate( { height: <!--{$height|default:500|escape:'html'}--> }, 100, function() { | jQuery ( '#' + container ).animate( { height: <!--{$height|default:500|escape:'html'}--> }, 100, function() { | ||
var map = | var map = jwMakeMap({ | ||
'container': container, //'<!--{$id|default:CommonObsMap|escape:'html'}-->_container', | 'container': container, //'<!--{$id|default:CommonObsMap|escape:'html'}-->_container', | ||
'base': base, | 'base': base, |