Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| (15 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> | |||
<script src="/scripts/ | |||
<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/jwol10js/jwol10.js"></script> | |||
<script src="/scripts/ | |||
<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 52: | Rivi 50: | ||
'type': 'anyrest', | 'type': 'anyrest', | ||
'name': 'Kunta', | 'name': 'Kunta', | ||
'restUrl': '//paikkatieto.ymparisto.fi/arcgis/rest/services/ | 'restUrl': '//paikkatieto.ymparisto.fi/arcgis/rest/services/sykemaps/GISAineistot2/MapServer/0/query', | ||
'search': "KuntaNimi = '" + muni + "'", | 'search': "KuntaNimi = '" + muni + "'", | ||
'selectable': false, | 'selectable': false, | ||
'zoomToExtent': true, | 'zoomToExtent': true, | ||
'bbox': false, | 'bbox': false, | ||
'fillColor': 'rgba( 0, 0, 0, 0 )', | |||
'strokeColor': 'rgba( 200, 100, 100, 0.5 )', | |||
'strokeWidth': 5 | |||
//'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>', | ||
}); | }); | ||
var filterlayer = layersArr[ layersArr.length - 1 ]; | |||
if ( typeof request.query.results != 'undefined' ) { | if ( typeof request.query.results != 'undefined' ) { | ||
| Rivi 67: | Rivi 70: | ||
vpdsearchA.push( "VPDTunnus = '" + request.query.results[ r ].printouts.VPDTunnus[0] + "'" ); | vpdsearchA.push( "VPDTunnus = '" + request.query.results[ r ].printouts.VPDTunnus[0] + "'" ); | ||
} | } | ||
if ( vpdsearchA.length > 0 ) { | if ( vpdsearchA.length > 0 ) { | ||
| Rivi 74: | Rivi 75: | ||
layersArr.push( { | layersArr.push( { | ||
'id': 'seavpd', | 'id': 'seavpd', | ||
'type': ' | 'type': 'seabody', | ||
'name': 'Merialueet', | 'name': 'Merialueet', | ||
'search': vpdsearchA.join( ' OR ' ), | 'search': vpdsearchA.join( ' OR ' ), | ||
'selectable': true, | 'selectable': true, | ||
| Rivi 82: | Rivi 82: | ||
'bbox': false, | 'bbox': false, | ||
//'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>', | ||
}); | }); | ||
} | } | ||
| Rivi 99: | Rivi 99: | ||
'label': 'J', | 'label': 'J', | ||
//'zoomToExtent': false | //'zoomToExtent': false | ||
} ); | } ); | ||
layersArr.push({ | |||
'type': 'coo311', | |||
'name': 'Vesi.fi-havainnot', | |||
'service_code': 'algaebloom_service_code_201808151546171', | |||
'hashtags': '_VesiFiObservation', | |||
'days': 7, | |||
'selectable': true, | |||
'clustered': false, | |||
'pointRadius': 8, | |||
'obsesColors': { type: 'cat', 'attribute': 'algaebloom_singlevaluelist_201808151546174', values: [ { key: 1, color: '#308fb3' }, { key: 2, color: '#8db335' }, { key: 3, color: '#f1cb00' }, { key: 4, color: '#ce0000' } ] }, | |||
'zoomToExtent': false, | |||
'filter': filterlayer, | |||
'visible': true | |||
}); | |||
layersArr.push( { | layersArr.push( { | ||
| Rivi 107: | Rivi 122: | ||
'obsSearch': '[[Kunta::' + page + ']][[obsCode::ice||snow||temp||alg||img]]', | 'obsSearch': '[[Kunta::' + page + ']][[obsCode::ice||snow||temp||alg||img]]', | ||
'obsDays': 7, | 'obsDays': 7, | ||
'vesifi': false, | |||
//'attribution': 'Havainnot: Järvi-meriwiki', | //'attribution': 'Havainnot: Järvi-meriwiki', | ||
'opacitySlider': false, | 'opacitySlider': false, | ||
| Rivi 113: | Rivi 129: | ||
}); | }); | ||
// 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 122: | Rivi 137: | ||
'lat': lat, | 'lat': lat, | ||
'zoom': zoom, | 'zoom': zoom, | ||
'geolocation': true, | |||
'layers': layersArr, | 'layers': layersArr, | ||
'memo': memo | 'memo': memo | ||


