Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Commit

Permalink
Forvaltningstjeneste 2
Browse files Browse the repository at this point in the history
  • Loading branch information
finnjordal committed Jul 6, 2020
1 parent 2d914d2 commit 5f7b29f
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 7 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const map = new Map({
view: kort.view,
controls: defaultControls().extend([
new MultiSearchControl(ressourcer),
new PolygonControl({popup: popup}),
// new PolygonControl({popup: popup}),
new LayerSwitcher()
]),
});
Expand Down
48 changes: 42 additions & 6 deletions modules/kort.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,33 @@ export var baggrundskort= new LayerGroup({
// 'STYLES':''
// }
// })
// }),
// }),
new LayerTile({
//opacity: 1.0,
title:'Forvaltningskort',
title:'Forvaltningskort: Adresse-byggesag',
type:'base',
visible: true, // by default this layer is visible
source: new TileWMS({
url: "https://services.kortforsyningen.dk/forvaltning?token="+kftoken,
url: "https://services.kortforsyningen.dk/forvaltning2?token="+kftoken,
params: {
'LAYERS':'basis_kort',
'LAYERS':'Adresse-byggesag',
'VERSION':'1.1.1',
'TRANSPARENT':'false',
'FORMAT': "image/png",
'STYLES':'default',
},
attributions: getAttributions()
})
}),
new LayerTile({
//opacity: 1.0,
title:'Forvaltningskort: Basis',
type:'base',
visible: true, // by default this layer is visible
source: new TileWMS({
url: "https://services.kortforsyningen.dk/forvaltning2?token="+kftoken,
params: {
'LAYERS':'Basis_kort',
'VERSION':'1.1.1',
'TRANSPARENT':'false',
'FORMAT': "image/png",
Expand Down Expand Up @@ -386,7 +403,26 @@ export var historiskeKort= new LayerGroup({
export var adresselag= new LayerGroup({
title: 'Adresselag',
fold: 'open',
layers: [
layers: [
new LayerTile({
//opacity: 1.0,
title:'Vejnavne',
type:'overlay',
visible: false,
opacity: 1.0,
zIndex:1000,
source: new TileWMS({
url: "https://services.kortforsyningen.dk/forvaltning2?token="+kftoken,
params: {
'LAYERS':'Navne_basis_kort',
'VERSION':'1.1.1',
'TRANSPARENT':'true',
'FORMAT': "image/png",
'STYLES':'',
},
attributions: getAttributions()
})
}),
new ImageLayer({
title:'Vejtilslutningspunkter',
type:'overlay',
Expand Down Expand Up @@ -494,7 +530,7 @@ export var adresselag= new LayerGroup({
},
attributions: getAttributions()
})
})
})
]
});

Expand Down

0 comments on commit 5f7b29f

Please sign in to comment.