Skip to content

Commit

Permalink
GB3-1734: PR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TIL-EBP committed Dec 17, 2024
1 parent f158d46 commit f225032
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 17 deletions.
15 changes: 3 additions & 12 deletions src/app/shared/services/apis/gb3/gb3-print.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,7 @@ describe('Gb3PrintService', () => {
{
type: 'WMS',
map_title: 'karte 2',
custom_params: {
format: undefined,
transparent: undefined,
},
custom_params: undefined,
background: false,
layers: ['holla', 'die', 'waldfee'],
url: 'url 2',
Expand All @@ -151,10 +148,7 @@ describe('Gb3PrintService', () => {
{
type: 'WMS',
map_title: 'karte 3',
custom_params: {
format: undefined,
transparent: undefined,
},
custom_params: undefined,
background: false,
layers: ['yolo'],
url: 'url 3',
Expand All @@ -163,10 +157,7 @@ describe('Gb3PrintService', () => {
{
type: 'WMS',
map_title: 'karte 4',
custom_params: {
format: undefined,
transparent: undefined,
},
custom_params: undefined,
background: true,
layers: [],
url: 'url 4',
Expand Down
12 changes: 7 additions & 5 deletions src/app/shared/services/apis/gb3/gb3-print.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,13 @@ export class Gb3PrintService extends Gb3ApiService {
type: 'WMS',
url: mapItem.url,
layers: mapItem.layers,
custom_params: {
format: mapItem.customParams?.format,
transparent: mapItem.customParams?.transparent,
...mapItem.customParams?.dynamicStringParams,
},
custom_params: mapItem.customParams
? {
format: mapItem.customParams?.format,
transparent: mapItem.customParams?.transparent,
...mapItem.customParams?.dynamicStringParams,
}
: undefined,
opacity: mapItem.opacity,
map_title: mapItem.mapTitle,
background: mapItem.background,
Expand Down

0 comments on commit f225032

Please sign in to comment.