Skip to content

Commit 73ce4b8

Browse files
committed
Add showFilter to the demo's layertree
1 parent c39287c commit 73ce4b8

2 files changed

Lines changed: 53 additions & 1 deletion

File tree

application/config/applications/mapbender_user.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ parameters:
244244
7-basesourceswitcher:
245245
title: mb.demoapps.noBackground
246246
group: null
247-
instances: []
247+
instances: []
248248
fi-button:
249249
class: Mapbender\CoreBundle\Element\ControlButton
250250
icon: iconInfoActive
@@ -419,6 +419,7 @@ parameters:
419419
hideSelect: true
420420
hideInfo: false
421421
useTheme: true
422+
showFilter: true
422423
themes:
423424
-
424425
id: themes
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
parameters:
2+
applications:
3+
tms_yaml:
4+
title: TMS Demo YAML
5+
published: true
6+
template: Mapbender\CoreBundle\Template\Fullscreen
7+
layersets:
8+
background themes:
9+
selected: true
10+
basemap_wmts:
11+
type: tms
12+
title: Ahovecar TMS
13+
basesource: false
14+
opacity: 100
15+
url: https://osm-demo.wheregroup.com/tms/1.0.0/
16+
layers:
17+
# Layer ID from the TMS capabilities (attribute "title" of <Tilemap>)
18+
osm-grey/webmercator:
19+
title: Basemap Grau
20+
active: true # if false, the layer is ignored (default: true)
21+
selected: false # initial state of the layer. (default: true)
22+
allowSelected: true # can the user change state in the layertree? If selected and allowSelected are both false, the layer is ignored. (default: true)
23+
osm/webmercator:
24+
title: Basemap Farbe
25+
elements:
26+
content:
27+
map:
28+
class: Mapbender\CoreBundle\Element\Map
29+
layersets: [themes,background themes]
30+
srs: EPSG:3857
31+
extents:
32+
# Freiburg
33+
start: [866322.89,6102554.89,881937.85,6112331.21]
34+
max: [-20037508.34278924,-20037508.34278924,20037508.34278924,20037508.34278924]
35+
scales: [50000000,25000000,10000000,5000000,1000000,500000,100000,50000,25000,10000,7500,5000,2500,1000,500]
36+
otherSrs: ["EPSG:25832","EPSG:25833","EPSG:31466","EPSG:31467","EPSG:3857"]
37+
zoombar:
38+
class: Mapbender\CoreBundle\Element\ZoomBar
39+
target: map
40+
anchor: right-top
41+
draggable: false
42+
scalebar:
43+
class: Mapbender\CoreBundle\Element\ScaleBar
44+
target: map
45+
anchor: 'right-bottom'
46+
maxWidth: 200
47+
units: km
48+
screenType: desktop
49+
sidepane:
50+
layertree:
51+
class: Mapbender\CoreBundle\Element\Layertree

0 commit comments

Comments
 (0)