Ero sivun ”Widget:Ol3RiverMap” versioiden välillä
Järvi-meriwikistä
Rivi 45: | Rivi 45: | ||
var resultItem = request.query.results[x].printouts; break; | var resultItem = request.query.results[x].printouts; break; | ||
} | } | ||
− | |||
− | |||
var vpdArr = []; | var vpdArr = []; | ||
Rivi 54: | Rivi 52: | ||
var vesalArr = []; | var vesalArr = []; | ||
+ | var vesalIdArr = []; | ||
+ | vesalArr.push( decodeURI(page) ); | ||
for ( var j in resultItem.Vesistöalue ) { | for ( var j in resultItem.Vesistöalue ) { | ||
− | + | vesalArr.push( resultItem.Vesistöalue[j].fulltext ); | |
− | + | vesalIdArr.push( "Jako3Tunnus LIKE '" + resultItem.Vesistöalue[j].fulltext.split( /\(|\)/ )[1] + "%'" ); | |
} | } | ||
− | |||
− | |||
var base = 'mmlTausta'; | var base = 'mmlTausta'; | ||
Rivi 88: | Rivi 86: | ||
'visible': true, | 'visible': true, | ||
'fillColor': 'rgba( 255, 0, 0, 0.75 )', | 'fillColor': 'rgba( 255, 0, 0, 0.75 )', | ||
− | 'strokeWidth': 8, | + | 'strokeWidth': 8, |
− | 'strokeColor': 'rgba( 0, 0, 255, 0.8 )', | + | 'strokeColor': 'rgba( 0, 0, 255, 0.8 )', |
'showLabels': false, | 'showLabels': false, | ||
'selectable': false, | 'selectable': false, | ||
Rivi 98: | Rivi 96: | ||
'type': 'sitesNobses', | 'type': 'sitesNobses', | ||
'name': 'Paikat ja havainnot', | 'name': 'Paikat ja havainnot', | ||
− | 'siteSearch': "[[Alue::" + | + | 'siteSearch': "[[Alue::" + vesalArr.join( ' || ' ) + "]]", |
− | 'obsSearch': "[[Alue::" + | + | 'obsSearch': "[[Alue::" + vesalArr.join( ' || ' ) + "]][[obsCode::ice||snow||temp||alg]]", |
'obsDays': 10, | 'obsDays': 10, | ||
− | + | 'attribution': 'Paikat ja havainnot: Järvi-meriwiki', | |
'opacitySlider': false, | 'opacitySlider': false, | ||
'selectable': true, | 'selectable': true, |