(Ak: Uusi sivu: <includeonly> <link rel="stylesheet" href="/scripts/ol3/ol.css" type="text/css"> <script src="//cdn.polyfill.io/v2/polyfill.min.js?features=requestAnimationFrame,Elemen...) |
Ei muokkausyhteenvetoa |
||
| (8 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/ | <script src="/scripts/ol-10/ol.js"></script> | ||
<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/ | <script src="/scripts/jwol10js/jwol10.js"></script> | ||
<div class="jwMapContainer" style="height:<!--{$height|default:500px|escape:'html'}-->" > | |||
<div class="jwMapContainer" style="height:<!--{$height|default: | |||
<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 45: | Rivi 44: | ||
// do the base map with these settings | // do the base map with these settings | ||
var map = | var map = jwMakeMap({ | ||
'container': '<!--{$id|default:CommonObsMap|escape:'html'}-->_container', | 'container': '<!--{$id|default:CommonObsMap|escape:'html'}-->_container', | ||
'base': base, | 'base': base, | ||
| Rivi 62: | Rivi 61: | ||
'obsesColors': { 'type': 'cat', 'attribute': 'ice_combined_situation_singlevaluelist_201806011206544', 'values': [ { 'key': 1, 'color': '#308fb3' }, { 'key': 2, 'color': 'aqua' }, { 'key': 3, 'color': 'white' }, { 'key': 4, 'color': 'white' }, { 'key': 5, 'color': 'aqua' }, { 'key': 6, 'color': '#308fb3' } ] }, | 'obsesColors': { 'type': 'cat', 'attribute': 'ice_combined_situation_singlevaluelist_201806011206544', 'values': [ { 'key': 1, 'color': '#308fb3' }, { 'key': 2, 'color': 'aqua' }, { 'key': 3, 'color': 'white' }, { 'key': 4, 'color': 'white' }, { 'key': 5, 'color': 'aqua' }, { 'key': 6, 'color': '#308fb3' } ] }, | ||
'obsesLabels': { 'type': 'num', 'attribute': 'ice_combined_thickness_number_201806011206545' }, | 'obsesLabels': { 'type': 'num', 'attribute': 'ice_combined_thickness_number_201806011206545' }, | ||
'attribution': 'Havainnot: Järvi-meriwiki', | |||
'opacitySlider': false, | 'opacitySlider': false, | ||
'selectable': true, | 'selectable': true, | ||
'zoomToExtent': false | 'zoomToExtent': false | ||
}, | }, | ||
{ | { | ||
'type': 'coo311', | 'type': 'coo311', | ||
| Rivi 89: | Rivi 76: | ||
'obsesColors': { 'type': 'cat', 'attribute': 'ice_combined_situation_singlevaluelist_201806011206544', 'values': [ { 'key': 1, 'color': '#308fb3' }, { 'key': 2, 'color': 'aqua' }, { 'key': 3, 'color': 'white' }, { 'key': 4, 'color': 'white' }, { 'key': 5, 'color': 'aqua' }, { 'key': 6, 'color': '#308fb3' } ] }, | 'obsesColors': { 'type': 'cat', 'attribute': 'ice_combined_situation_singlevaluelist_201806011206544', 'values': [ { 'key': 1, 'color': '#308fb3' }, { 'key': 2, 'color': 'aqua' }, { 'key': 3, 'color': 'white' }, { 'key': 4, 'color': 'white' }, { 'key': 5, 'color': 'aqua' }, { 'key': 6, 'color': '#308fb3' } ] }, | ||
'obsesLabels': { 'type': 'num', 'attribute': 'ice_combined_thickness_number_201806011206545' }, | 'obsesLabels': { 'type': 'num', 'attribute': 'ice_combined_thickness_number_201806011206545' }, | ||
'attribution': 'Havainnot: Järvi-meriwiki', | |||
'opacitySlider': false, | 'opacitySlider': false, | ||
'selectable': true, | 'selectable': true, | ||
'zoomToExtent': false | 'zoomToExtent': false | ||
}, | }, | ||
*/ | |||
{ | { | ||
'type': 'sitesNobses', | 'type': 'sitesNobses', | ||
'name': 'Järvi-meriwikin | 'name': 'Järvi-meriwikin jäätilanne', | ||
'siteSearch': '', | 'siteSearch': '', | ||
'obsSearch': "[[obsCode::ice]]", | 'obsSearch': "[[obsCode::ice]]", | ||
'obsDays': days, | 'obsDays': days, | ||
'attribution': 'Havainnot: Järvi-meriwiki', | |||
'opacitySlider': false, | |||
'selectable': true, | |||
'obstypebar': false, | |||
'zoomToExtent': false | |||
}, | |||
{ | |||
'type': 'sitesNobses', | |||
'name': 'Järvi-meriwikin pintaveden lämpötilanne', | |||
'siteSearch': '', | |||
'obsSearch': "[[obsCode::temp]]", | |||
'obsDays': days, | |||
'attribution': 'Havainnot: Järvi-meriwiki', | |||
'opacitySlider': false, | 'opacitySlider': false, | ||
'selectable': true, | 'selectable': true, | ||
'obstypebar': false, | 'obstypebar': false, | ||
'zoomToExtent': false | 'zoomToExtent': false | ||
} | } | ||
], | ], | ||
'memo': memo | 'memo': memo | ||


