Skip to content

Commit 7251223

Browse files
committed
【update】web 打印 ut 优化; review by songym
1 parent 41d2d76 commit 7251223

File tree

5 files changed

+79
-21
lines changed

5 files changed

+79
-21
lines changed

src/leaflet/services/WebPrintingJobService.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,6 @@ export var WebPrintingJobService = ServiceBase.extend({
130130
},
131131

132132
_processParams(params) {
133-
if (!params) {
134-
return {};
135-
}
136133
if (params.layoutOptions && params.layoutOptions.littleMapOptions) {
137134
params.layoutOptions.littleMapOptions.center = this._toPointObject(
138135
params.layoutOptions.littleMapOptions.center

src/mapboxgl/services/WebPrintingJobService.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,6 @@ export class WebPrintingJobService extends ServiceBase {
130130
}
131131

132132
_processParams(params) {
133-
if (!params) {
134-
return {};
135-
}
136133
if (params.layoutOptions && params.layoutOptions.littleMapOptions) {
137134
params.layoutOptions.littleMapOptions.center = this._toPointObject(params.layoutOptions.littleMapOptions.center);
138135
}

src/openlayers/services/WebPrintingJobService.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,6 @@ export class WebPrintingJobService extends ServiceBase {
129129
}
130130

131131
_processParams(params) {
132-
if (!params) {
133-
return {};
134-
}
135132
if (params.layoutOptions && params.layoutOptions.littleMapOptions) {
136133
params.layoutOptions.littleMapOptions.center = this._toPointObject(
137134
params.layoutOptions.littleMapOptions.center

0 commit comments

Comments
 (0)