Skip to content

Commit

Permalink
configure bkg address search
Browse files Browse the repository at this point in the history
  • Loading branch information
jedi-of-the-sea committed Oct 21, 2024
1 parent 0553854 commit 5ebdbaf
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 5 deletions.
22 changes: 22 additions & 0 deletions packages/clients/dish/src/externMapConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import {
denkmaelerWMS,
hintergrundkarte,
dishBaseUrl,
dishCloudBaseUrl,
alkisWfs,
// dop20,
} from './services'

export const exportMapConfiguration = {
Expand All @@ -23,6 +25,12 @@ export const exportMapConfiguration = {
type: 'background',
name: 'Basemap Graustufen',
},
// {
// id: dop20,
// visibility: true,
// type: 'background',
// name: 'DOP 20',
// },
{
id: denkmaelerWfsExtern,
visibility: false,
Expand Down Expand Up @@ -132,6 +140,17 @@ export const exportMapConfiguration = {
topic: null,
},
},
{
groupId: 'groupDenkmalsuche',
categoryId: 'categoryBkgSuche',
queryParameters: {
filter: {
bundesland: 'Schleswig-Holstein',
},
},
type: 'bkg',
url: `${dishCloudBaseUrl}/bkg/search/geosearch.json`,
},
],
groupProperties: {
groupDenkmalsuche: {
Expand All @@ -151,6 +170,9 @@ export const exportMapConfiguration = {
categoryDenkmalsucheDish: {
label: 'Denkmalsuche Treffer',
},
categoryBkgSuche: {
label: 'Adresssuche Treffer',
},
},
minLength: 3,
},
Expand Down
20 changes: 18 additions & 2 deletions packages/clients/dish/src/internMapConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
denkmaelerWmsIntern,
denkmaelerWFSIntern,
kontrollbedarfIntern,
alkisWfs,
} from './services'
import { shBlue } from './colors'

Expand All @@ -21,13 +22,21 @@ export const internMapConfiguration = {
type: 'background',
name: 'Basemap Graustufen',
},
{
id: alkisWfs,
visibility: false,
gfiMode: 'bboxDot',
type: 'mask',
name: 'ALKIS Katasterbezirke (WFS)',
minZoom: 7,
},
{
id: denkmaelerWFSIntern,
visibility: false,
hideInMenu: true,
hideInMenu: false,
type: 'mask',
name: 'Denkmal (WFS) Intern',
minZoom: 7,
minZoom: 5,
},
{
id: denkmaelerWmsIntern,
Expand Down Expand Up @@ -110,6 +119,7 @@ export const internMapConfiguration = {
},
gfi: {
mode: 'intersects',
activeLayerPath: 'plugin/layerChooser/activeMaskIds',
layers: {
[denkmaelerWFSIntern]: {
geometry: true,
Expand All @@ -118,6 +128,12 @@ export const internMapConfiguration = {
geometryName: 'app:geometry',
exportProperty: 'Export',
},
[alkisWfs]: {
geometry: true,
window: true,
maxFeatures: 10,
geometryName: 'geometry',
},
},
coordinateSources: [
'plugin/pins/transformedCoordinate',
Expand Down
23 changes: 20 additions & 3 deletions packages/clients/dish/src/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const denkmaelerWmsIntern = 'denkmaelerWmsIntern'
export const denkmaelerWFSIntern = 'denkmaelerWFSIntern'
export const kontrollbedarfIntern = 'kontrollbedarfIntern'
export const alkisWfs = 'alkisWfS'
export const dop20 = 'dop20'

export const servicePrefix = 'https://stage.afm.schleswig-holstein.de/bkg/'

Expand All @@ -27,7 +28,7 @@ export const dishBaseUrl = isDevMode

export const dishAutocompleteUrl = `${dishBaseUrl}/dish_suche/ergebnisse/json/alleBezeichnungenEindeutig.JSON`

const dishCloudBaseUrl = 'https://dishreserveproxy.dsecurecloud.de/dish'
export const dishCloudBaseUrl = 'https://dishreserveproxy.dsecurecloud.de/dish'

// TODO
const internServicesBaseUrl = isDevMode
Expand Down Expand Up @@ -97,6 +98,18 @@ const AlkisWfService = {
featureType: 'ave:Flurstueck',
}

// const dop20Service = {
// id: dop20,
// name: 'DOP 20',
// url: `${dishCloudBaseUrl}/bkg/DOP`,
// typ: 'WMS',
// layers: 'DOP20COL',
// legendURL: 'ignore',
// format: 'image/png',
// version: '1.3.0',
// transparent: true,
// }

const servicesCommon = [
{
id: hintergrundkarte,
Expand All @@ -109,10 +122,14 @@ const servicesCommon = [
singleTile: false,
transparent: true,
},
denkmaelerWmsService,
AlkisWfService,
]

const servicesExtern = [AlkisWfService, denkmaelerWfsServiceExtern]
const servicesExtern = [
denkmaelerWmsService,
denkmaelerWfsServiceExtern,
// dop20Service,
]

const servicesIntern = [
denkmaelerWfsServiceIntern,
Expand Down

0 comments on commit 5ebdbaf

Please sign in to comment.