Skip to content

Commit 2b62fb4

Browse files
committed
[fix] 修复修复ol webmap npm项目使用报错
review by chengl
1 parent db3c402 commit 2b62fb4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/openlayers/mapping/WebMap.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4380,7 +4380,7 @@ export class WebMap extends Observable {
43804380
let layer = new olLayer.VectorTile({
43814381
//设置避让参数
43824382
declutter: true,
4383-
source: new olSource.VectorTileSuperMapRest({
4383+
source: new VectorTileSuperMapRest({
43844384
style: styles,
43854385
withCredentials,
43864386
projection: layerInfo.projection,
@@ -4443,9 +4443,9 @@ export class WebMap extends Observable {
44434443
let isSameDomain = CommonUtil.isInTheSameDomain(url), excledeCreditial;
44444444
if(isSameDomain && !token) {
44454445
// online上服务域名一直,要用token值
4446-
excledeCreditial = false;
4446+
excledeCreditial = false;
44474447
} else {
4448-
excledeCreditial = true;
4448+
excledeCreditial = true;
44494449
}
44504450
url = this.getRequestUrl(url, excledeCreditial);
44514451
return FetchRequest.get(url, null, {

0 commit comments

Comments
 (0)