Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| 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> | ||
<!-- | |||
<link rel="stylesheet" href="/scripts/ol-ext/overlay/popupoverlay.css" /> | |||
<link rel="stylesheet" href="/scripts/ol-ext/overlay/popupoverlay.anim.css" /> | |||
--> | |||
<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:500|escape:'html'}-->px" > | <div class="jwMapContainer" style="height:<!--{$height|default:500|escape:'html'}-->px" > | ||
| Rivi 36: | Rivi 39: | ||
var page = '<!--{$page|escape:'urlpathinfo'}-->'; | var page = '<!--{$page|escape:'urlpathinfo'}-->'; | ||
var container = '<!--{$id|default:CommonObsMap|escape:'html'}-->_container'; | |||
if ( '<!--{$hero|default:false|escape:'html'}-->' == 'true' ) { | |||
container = jQuery( '.hero-container' ).attr( 'id' ); | |||
jQuery ( '#' + container ).css( 'border-bottom', '1px solid #e4e3de' ); | |||
} | |||
function gotCoords(request) { | function gotCoords(request) { | ||
| Rivi 137: | Rivi 146: | ||
// do the base map with these settings | // do the base map with these settings | ||
var map = ol3_jwMakeMap({ | |||
jQuery ( '#' + container ).animate( { height: <!--{$height|default:500|escape:'html'}--> }, 100, function() { | |||
var map = ol3_jwMakeMap({ | |||
'container': container, //'<!--{$id|default:CommonObsMap|escape:'html'}-->_container', | |||
'base': base, | |||
'lon': lon, | |||
'lat': lat, | |||
'zoom': zoom, | |||
}); | 'layers': layersArr, | ||
'memo': memo | |||
}); | |||
} ); | |||


