Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 59: | Rivi 59: | ||
//'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>', | ||
}); | }); | ||
if ( typeof request.query.results != 'undefined' ) { | |||
var vpdsearchA = []; | |||
for ( var r in request.query.results ) { | for ( var r in request.query.results ) { | ||
vpdsearchA.push( "VPDTunnus = '" + request.query.results[ r ].printouts.VPDTunnus[0] + "'" ); | vpdsearchA.push( "VPDTunnus = '" + request.query.results[ r ].printouts.VPDTunnus[0] + "'" ); | ||
} | } | ||
if ( vpdsearchA.length > 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>', | |||
}); | |||
} | |||
} | } | ||


