Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import java.util.Objects;
import java.util.Optional;
import java.util.Set;
import java.util.stream.Collectors;
import org.apache.commons.lang3.ObjectUtils;
import org.gaul.modernizer_maven_annotations.SuppressModernizer;
import org.geotools.api.referencing.crs.CoordinateReferenceSystem;
Expand Down Expand Up @@ -458,6 +459,11 @@ private boolean addAppLayerItem(AppTreeLayerNode layerRef) {

boolean webMercatorAvailable = this.isWebMercatorAvailable(service, serviceLayer, hiDpiSubstituteLayer);

Set<String> keywords = serviceLayer.getKeywords().stream()
.filter(k -> !serviceLayerSettings.getHiddenKeywords().contains(k))
.collect(Collectors.toSet());
Comment thread
matthijsln marked this conversation as resolved.
Dismissed
keywords.addAll(serviceLayerSettings.getExtraKeywords());

mapResponse.addAppLayersItem(new AppLayer()
.id(layerRef.getId())
.serviceId(serviceLayerServiceIds.get(serviceLayer))
Expand Down Expand Up @@ -492,6 +498,7 @@ private boolean addAppLayerItem(AppTreeLayerNode layerRef) {
.visible(layerRef.getVisible())
.attribution(attribution)
.description(description)
.keywords(keywords)
.webMercatorAvailable(webMercatorAvailable)
.tileset3dStyle(appLayerSettings.getTileset3dStyle())
.hiddenFunctionality(appLayerSettings.getHiddenFunctionality())
Expand Down
6 changes: 6 additions & 0 deletions src/main/resources/openapi/viewer-schemas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ components:
description:
description: 'Description text to show for this layer, may contain some links and images (see htmlify pipe)'
type: string
keywords:
description: 'Keywords for this layer, to be used for filtering layers'
type: array
items:
type: string
uniqueItems: true
autoRefreshInSeconds:
description: 'Automatically refresh the layer (in seconds)'
type: number
Expand Down
Loading