Skip to content
Snippets Groups Projects
Commit 623e38b4 authored by esikkala's avatar esikkala
Browse files

Add nls-wmts API path

parent 16aa18d1
No related branches found
No related tags found
No related merge requests found
...@@ -205,11 +205,11 @@ class LeafletMap extends React.Component { ...@@ -205,11 +205,11 @@ class LeafletMap extends React.Component {
Password protected base layers from https://www.maanmittauslaitos.fi/karttakuvapalvelu/tekninen-kuvaus-wmts Password protected base layers from https://www.maanmittauslaitos.fi/karttakuvapalvelu/tekninen-kuvaus-wmts
Routed via backend. 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', // attribution: 'National Land Survey of Finland',
// maxZoom: 18 // 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', // attribution: 'National Land Survey of Finland',
// maxZoom: 18 // maxZoom: 18
// }) // })
......
...@@ -473,6 +473,37 @@ paths: ...@@ -473,6 +473,37 @@ paths:
schema: schema:
type: string type: string
format: binary 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}: /void/{perspectiveID}:
get: get:
summary: Retrieve a VoID description summary: Retrieve a VoID description
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment