Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| (19 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', | ||
'type': ' | 'type': 'anygeo', | ||
'name': 'Kunta', | 'name': 'Kunta', | ||
'restUrl': ' | 'restUrl': '//inspire-wfs.maanmittauslaitos.fi/inspire-wfs/au', | ||
'layer': 'au:AdministrativeUnit', | 'layer': 'au:AdministrativeUnit', | ||
//'search': "KuntaNimi = '" + muni + "'", | //'search': "KuntaNimi = '" + muni + "'", | ||
'cql_filter': ' | //'cql_filter': 'nationalCode=' + muniNameToNumber( 'Pornainen' ), | ||
'cql_filter': "nationalCode='" + muniNameToNumber( muni ) + "'", | |||
'selectable': false, | 'selectable': false, | ||
'zoomToExtent': true, | 'zoomToExtent': true, | ||
| Rivi 104: | Rivi 108: | ||
cache: true | cache: true | ||
}); | }); | ||
} | } | ||


