Skip to content

Commit

Permalink
add xtrasse to diplan client
Browse files Browse the repository at this point in the history
  • Loading branch information
warm-coolguy committed Feb 19, 2025
1 parent de516a1 commit 2c71ca2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/clients/diplan/example/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const basemap = 'basemapde_farbe'
const xplanwms = 'xplanwms'
const xplanwfs = 'xplanwfs'
const flurstuecke = 'flurstuecke'
const bstgasleitung = 'bst_gasleitung'

export default {
startResolution: 264.583190458,
Expand All @@ -20,12 +21,14 @@ export default {
[xplanwms]: 'XPlanWMS',
[xplanwfs]: 'XPlanSynWFS',
[flurstuecke]: 'Flurstücke',
[bstgasleitung]: 'BST Gasleitung',
},
attributions: {
[basemap]: `$t(diplan.layers.${basemap}) © GeoBasis-DE / BKG <YEAR> CC BY 4.0`,
[xplanwms]: `$t(diplan.layers.${xplanwms}) © ???`,
[xplanwfs]: `$t(diplan.layers.${xplanwfs}) © ???`,
[flurstuecke]: `$t(diplan.layers.${flurstuecke}) © ???`,
[bstgasleitung]: `$t(diplan.layers.${bstgasleitung}) © ???`,
},
},
},
Expand Down Expand Up @@ -75,6 +78,12 @@ export default {
type: 'mask',
name: `diplan.layers.${flurstuecke}`,
},
{
id: bstgasleitung,
visibility: false,
type: 'mask',
name: `diplan.layers.${bstgasleitung}`,
},
],
attributions: {
layerAttributions: [
Expand All @@ -94,6 +103,10 @@ export default {
id: flurstuecke,
title: `diplan.attributions.${flurstuecke}`,
},
{
id: bstgasleitung,
title: `diplan.attributions.${bstgasleitung}`,
},
],
},
draw: {
Expand Down
9 changes: 9 additions & 0 deletions packages/clients/diplan/example/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -451,4 +451,13 @@ export default [
crs: 'http://www.opengis.net/def/crs/EPSG/0/25832',
bboxCrs: 'http://www.opengis.net/def/crs/EPSG/0/25832',
},
{
id: 'bst_gasleitung',
typ: 'OAF',
name: 'bst_gasleitung',
url: 'https://xtrasse.ldproxy.develop.diplanung.de/xtrasse_PFS_gas',
collection: 'bst_gasleitung',
crs: 'http://www.opengis.net/def/crs/EPSG/0/25832',
bboxCrs: 'http://www.opengis.net/def/crs/EPSG/0/25832',
},
]

0 comments on commit 2c71ca2

Please sign in to comment.