Skip to content

Commit 11e0411

Browse files
committed
【bug】1) webmap解决,dv访问ipt注册服务的地址列表。没有权限。UI给出对应的提示.webMap抛出错误
(reviewed by chengl)
1 parent e533fd1 commit 11e0411

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/openlayers/mapping/WebMap.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1297,10 +1297,13 @@ export class WebMap extends Observable {
12971297
}
12981298
return FetchRequest.get(that.getRequestUrl(`${layerInfo.url}.json`), null, options).then(function (response) {
12991299
return response.json();
1300-
}).then(async function (result) {
1300+
}).then(function (result) {
13011301
// layerInfo.projection = mapInfo.projection;
13021302
// layerInfo.extent = [mapInfo.extent.leftBottom.x, mapInfo.extent.leftBottom.y, mapInfo.extent.rightTop.x, mapInfo.extent.rightTop.y];
13031303
// 比例尺 单位
1304+
if(result.code !== 200) {
1305+
throw result;
1306+
}
13041307
if (result.visibleScales) {
13051308
layerInfo.visibleScales = result.visibleScales;
13061309
layerInfo.coordUnit = result.coordUnit;
@@ -1321,7 +1324,7 @@ export class WebMap extends Observable {
13211324
}
13221325

13231326
}).catch(function (error) {
1324-
that.errorCallback && that.errorCallback(error, 'getWmtsFaild', that.map)
1327+
that.errorCallback && that.errorCallback(error, 'getTileInfo', that.map)
13251328
});
13261329
}
13271330
/**

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