Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| (7 välissä olevaa versiota samalta käyttäjältä ei näytetä) | |||
| Rivi 11: | Rivi 11: | ||
<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> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
| Rivi 40: | Rivi 40: | ||
if ( '<!--{$hero|default:false|escape:'html'}-->' == 'true' ) { | if ( '<!--{$hero|default:false|escape:'html'}-->' == 'true' ) { | ||
container = jQuery( '.hero-container' ).attr( 'id' ); | container = jQuery( '.hero-container' ).attr( 'id' ); | ||
jQuery( '.hero-container' ).addClass( 'hero-map' ); | |||
jQuery( '.hero-container' ).removeClass( 'hero-empty' ); | |||
jQuery ( '#' + container ).css( 'border-bottom', '1px solid #e4e3de' ); | jQuery ( '#' + container ).css( 'border-bottom', '1px solid #e4e3de' ); | ||
} | } | ||
| Rivi 56: | Rivi 58: | ||
var base = resultItem.Base[0] | var base = resultItem.Base[0] | ||
} else { | } else { | ||
var base = ' | var base = 'mmlTausta'; | ||
} | } | ||
| Rivi 89: | Rivi 91: | ||
'obsSearch': "[[Alue::" + decodeURI(page) + "]][[obsCode::ice||snow||temp||alg]]", | 'obsSearch': "[[Alue::" + decodeURI(page) + "]][[obsCode::ice||snow||temp||alg]]", | ||
'obsDays': 10, | 'obsDays': 10, | ||
'vesifi': false, | |||
'opacitySlider': false, | 'opacitySlider': false, | ||
'selectable': true, | 'selectable': true, | ||
| Rivi 94: | Rivi 97: | ||
}); | }); | ||
// do the base map with these settings | // do the base map with these settings | ||
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, | ||
| Rivi 103: | Rivi 105: | ||
'lat': lat, | 'lat': lat, | ||
'zoom': zoom, | 'zoom': zoom, | ||
'geolocation': true, | |||
'layers': layersArr, | 'layers': layersArr, | ||
'memo': memo | 'memo': memo | ||


