Skip to content

Commit 9f671d3

Browse files
committed
[fix]影像api sonar失败 log review by songym
1 parent cfec922 commit 9f671d3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/common/overlay/levelRenderer/Log.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ export class Log {
1919

2020
this.CLASS_NAME = "SuperMap.LevelRenderer.Tool.Log";
2121
return function () {
22-
if (Config.debugMode === 0) {
22+
if (+Config.debugMode === 0) {
2323
return;
24-
} else if (Config.debugMode === 1) {
24+
} else if (+Config.debugMode === 1) {
2525
for (let k in arguments) {
2626
throw new Error(arguments[k]);
2727
}
28-
} else if (Config.debugMode > 1) {
28+
} else if (+Config.debugMode > 1) {
2929
for (let k in arguments) {
3030
console.log(arguments[k]);
3131
}

src/common/overlay/levelRenderer/Transformable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export class Transformable {
183183
}
184184
}
185185
} else {
186-
if (this.rotation !== 0) {
186+
if (+this.rotation !== 0) {
187187
SUtil.Util_matrix.rotate(m, m, this.rotation);
188188
}
189189
}

src/openlayers/mapping/ImageTileSuperMapRest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class ImageTileSuperMapRest extends XYZ {
6666
return layerUrl;
6767
}
6868

69-
function _getAllRequestParams() {
69+
function _getAllRequestParams(options) {
7070
var params = {};
7171
params['transparent'] = options.transparent;
7272
params['cacheEnabled'] = !(options.cacheEnabled === false);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy