Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 38: | Rivi 38: | ||
var zoom = parseInt('<!--{$zoom|default:4|escape:'html'}-->'); | var zoom = parseInt('<!--{$zoom|default:4|escape:'html'}-->'); | ||
var page = '<!--{$page|escape:'html'}-->'; | var page = '<!--{$page|escape:'html'}-->'; | ||
var shortest = page.split(' ')[0]; | |||
var short = shortest + ' ELY-keskus'; | |||
var base = '<!--{$base|default:mmlTausta|escape:'html'}-->'; | var base = '<!--{$base|default:mmlTausta|escape:'html'}-->'; | ||
| Rivi 61: | Rivi 63: | ||
'selectable': false, | 'selectable': false, | ||
'zoomToExtent': true, | 'zoomToExtent': true, | ||
'bbox': false, | |||
//'attribution': '<a href="//wwwp2.ymparisto.fi/kayttoehdot.html">Ympäristöhallinnon paikkatietoaineistot</a>', | |||
}); | |||
layersArr.push( { | |||
'id': 'munis', | |||
'type': 'anyrest', | |||
'name': 'Kunnat', | |||
'restUrl': '//paikkatieto.ymparisto.fi/arcgis/rest/services/sykemaps/GISAineistot2/MapServer/0/query', | |||
'search': "ELYyNimi LIKE '" + shortest + %27'", | |||
'selectable': false, | |||
'zoomToExtent': false, | |||
'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>', | ||


