diff --git a/src/client/components/facet_results/LeafletMap.js b/src/client/components/facet_results/LeafletMap.js index 9e68721ca4ec91440aa621a745b2063d9bdcf8d6..251e70c5f8ab4a4e1a4e98e7905bdd19f2ce0f04 100644 --- a/src/client/components/facet_results/LeafletMap.js +++ b/src/client/components/facet_results/LeafletMap.js @@ -205,11 +205,11 @@ class LeafletMap extends React.Component { Password protected base layers from https://www.maanmittauslaitos.fi/karttakuvapalvelu/tekninen-kuvaus-wmts Routed via backend. */ - // const backgroundMapNLS = L.tileLayer(`${apiUrl}/nls-wmts?z={z}&x={x}&y={y}&layerID=taustakartta`, { + // const backgroundMapNLS = L.tileLayer(`${process.env.API_URL}/nls-wmts?z={z}&x={x}&y={y}&layerID=taustakartta`, { // attribution: 'National Land Survey of Finland', // maxZoom: 18 // }) - // const topographicalMapNLS = L.tileLayer(`${apiUrl}/nls-wmts?z={z}&x={x}&y={y}&layerID=maastokartta`, { + // const topographicalMapNLS = L.tileLayer(`${process.env.API_URL}/nls-wmts?z={z}&x={x}&y={y}&layerID=maastokartta`, { // attribution: 'National Land Survey of Finland', // maxZoom: 18 // }) diff --git a/src/server/openapi.yaml b/src/server/openapi.yaml index 4afd7624f30b506fe642083a9068a9d255707c09..011316fcfb2aa25539e7a81aaf5bf65d6ceb02dd 100644 --- a/src/server/openapi.yaml +++ b/src/server/openapi.yaml @@ -473,6 +473,37 @@ paths: schema: type: string format: binary + /nls-wmts: + get: + summary: Route for password protected WMTS layers. + parameters: + - in: query + name: layerID + schema: + type: string + required: true + - in: query + name: x + schema: + type: string + required: true + - in: query + name: y + schema: + type: string + required: true + - in: query + name: z + schema: + type: string + required: true + responses: + '200': + description: An array of GeoJSON layers. + content: + application/json: + schema: + type: array /void/{perspectiveID}: get: summary: Retrieve a VoID description