Skip to content

Commit

Permalink
Merge pull request #12 from gisktzh/feature/gb3-1696-add-copyright
Browse files Browse the repository at this point in the history
GB3-1696: Add default copyright
  • Loading branch information
Tugark authored Oct 28, 2024
2 parents 7117572 + d9e3f39 commit 82c1a5e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/map/services/esri-services/esri-map.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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({
Expand All @@ -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,
});
}
}),
Expand Down

0 comments on commit 82c1a5e

Please sign in to comment.