Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 62: | Rivi 62: | ||
//'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>', | ||
}); | }); | ||
layersArr.push( { | if ( request.query.results.length > 0 ) { | ||
var vpdsearchA = []; | |||
for ( var r in request.query.results ) { | |||
vpdsearchA.push( "VPDTunnus = '" + request.query.results[ r ].printouts.VPDTunnus[0] + "'" ); | |||
} | |||
layersArr.push( { | |||
'id': 'seavpd', | |||
'type': 'anyrest', | |||
'name': 'Merialueet', | |||
'restUrl': 'http://paikkatieto.ymparisto.fi/arcgis/rest/services/INSPIRE/SYKE_AlueidenHallintaJaRajoitukset1/MapServer/3/query', | |||
'search': vpdsearchA.join( ' OR ' ), | |||
'selectable': true, | |||
'zoomToExtent': false, | |||
'bbox': false, | |||
//'attribution': '<a href="//wwwp2.ymparisto.fi/kayttoehdot.html">Ympäristöhallinnon paikkatietoaineistot</a>', | |||
}); | |||
} | |||
layersArr.push( { | layersArr.push( { | ||
'type': 'jwanypage', | 'type': 'jwanypage', | ||


