From d9e3f393695e241f52633f6704656f0c78d9466d Mon Sep 17 00:00:00 2001 From: Lukas Merz Date: Thu, 24 Oct 2024 11:19:09 +0200 Subject: [PATCH] GB3-1696: Add default copyright --- src/app/map/services/esri-services/esri-map.service.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/map/services/esri-services/esri-map.service.ts b/src/app/map/services/esri-services/esri-map.service.ts index 534cff0f..61c5b389 100644 --- a/src/app/map/services/esri-services/esri-map.service.ts +++ b/src/app/map/services/esri-services/esri-map.service.ts @@ -70,6 +70,8 @@ import GraphicHit = __esri.GraphicHit; const DEFAULT_POINT_ZOOM_EXTENT_SCALE = 750; +const DEFAULT_COPYRIGHT = '© OpenStreetMap Contributors and MapServer Developers'; + // used to distinguish between info-click and drawing-edit in the click listener enum EsriMouseButtonType { LeftClick = 0, @@ -769,6 +771,7 @@ export class EsriMapService implements MapService, OnDestroy { sublayers: baseMap.layers.map((basemapLayer) => ({name: basemapLayer.name})), visible: initialBasemapId === baseMap.id, imageFormat: this.wmsImageFormatMimeType, + copyright: DEFAULT_COPYRIGHT, }); case 'blank': return new EsriFeatureLayer({ @@ -779,6 +782,7 @@ export class EsriMapService implements MapService, OnDestroy { source: [], // empty source as this is a blank basemap spatialReference: new EsriSpatialReference({wkid: this.configService.mapConfig.defaultMapConfig.srsId}), visible: initialBasemapId === baseMap.id, + copyright: DEFAULT_COPYRIGHT, }); } }),