Skip to content

Commit 413b6bf

Browse files
committed
Fixed tests
1 parent fbb569f commit 413b6bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/v3/wms_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ func (layer *Layer) IsDataLayer() bool {
329329
}
330330

331331
func (layer *Layer) IsGroupLayer() bool {
332-
return layer.Layers != nil && len(*layer.Layers) > 0 && layer.Visible != nil && *layer.Visible
332+
return layer.Layers != nil && len(*layer.Layers) > 0
333333
}
334334

335335
func (layer *Layer) IsTopLayer(service *WMSService) bool {

internal/controller/mapfilegenerator/mapper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ func getWMSLayer(serviceLayer pdoknlv3.Layer, serviceExtent string, wms *pdoknlv
200200

201201
groupName := ""
202202
parent := serviceLayer.GetParent(&wms.Spec.Service.Layer)
203-
if parent.IsGroupLayer() {
203+
if parent.IsGroupLayer() && parent.Name != nil && (parent.Visible != nil && *parent.Visible) {
204204
groupName = *parent.Name
205205
}
206206

0 commit comments

Comments
 (0)