Skip to content

Commit d9f136a

Browse files
committed
[bug] 1. wmts未配置代理,请求还是使用了代理地址
2. wmts配置代理未出图
1 parent dcf951c commit d9f136a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/openlayers/mapping/WebMap.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1463,7 +1463,7 @@ export class WebMap extends Observable {
14631463
} else {
14641464
url += splitStr + '/1.0.0/WMTSCapabilities.xml';
14651465
}
1466-
return this.getRequestUrl(url, true, proxy);
1466+
return this.getRequestUrl(url, proxy);
14671467
}
14681468

14691469
/**
@@ -1662,7 +1662,7 @@ export class WebMap extends Observable {
16621662
return;
16631663
}
16641664
if(that.isAddProxy(src, layerInfo.proxy)) {
1665-
return `${that.getProxy('png')}${encodeURIComponent(src)}`;
1665+
imageTile.getImage().src = `${that.getProxy('png')}${encodeURIComponent(src)}`;
16661666
}
16671667
imageTile.getImage().src = src
16681668
}

0 commit comments

Comments
 (0)