Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| (9 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 = 'Helsinki'; | |||
function gotSeaVPDs(request) { | function gotSeaVPDs(request) { | ||
| Rivi 61: | Rivi 61: | ||
}); | }); | ||
*/ | */ | ||
console.log( muniNameToNumber( muni ) ); | |||
layersArr.push( { | layersArr.push( { | ||
'id': 'muni', | 'id': 'muni', | ||
| Rivi 68: | Rivi 71: | ||
'layer': 'au:AdministrativeUnit', | 'layer': 'au:AdministrativeUnit', | ||
//'search': "KuntaNimi = '" + muni + "'", | //'search': "KuntaNimi = '" + muni + "'", | ||
//'cql_filter': 'nationalCode= | //'cql_filter': 'nationalCode=' + muniNameToNumber( 'Pornainen' ), | ||
'cql_filter': ' | 'cql_filter': "nationalCode='" + muniNameToNumber( muni ) + "'", | ||
'selectable': false, | 'selectable': false, | ||
'zoomToExtent': true, | 'zoomToExtent': true, | ||
| Rivi 105: | Rivi 108: | ||
cache: true | cache: true | ||
}); | }); | ||
} | } | ||


