Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| (2 välissä olevaa versiota samalta käyttäjältä ei näytetä) | |||
| Rivi 41: | Rivi 41: | ||
var muni = page.replace(' (kunta)', ''); | var muni = page.replace(' (kunta)', ''); | ||
var base = '<!--{$base|default:mmlTausta|escape:'html'}-->'; | var base = '<!--{$base|default:mmlTausta|escape:'html'}-->'; | ||
muni = ' | muni = 'Helsinki'; | ||
function gotSeaVPDs(request) { | function gotSeaVPDs(request) { | ||
| Rivi 61: | Rivi 61: | ||
}); | }); | ||
*/ | */ | ||
console.log( muniNameToNumber( muni ) ); | |||
layersArr.push( { | layersArr.push( { | ||
'id': 'muni', | 'id': 'muni', | ||
| Rivi 69: | Rivi 72: | ||
//'search': "KuntaNimi = '" + muni + "'", | //'search': "KuntaNimi = '" + muni + "'", | ||
//'cql_filter': 'nationalCode=' + muniNameToNumber( 'Pornainen' ), | //'cql_filter': 'nationalCode=' + muniNameToNumber( 'Pornainen' ), | ||
'cql_filter': | 'cql_filter': "nationalCode='" + muniNameToNumber( muni ) + "'", | ||
'selectable': false, | 'selectable': false, | ||
'zoomToExtent': true, | 'zoomToExtent': true, | ||


