diff --git a/src/openlayers/mapping/WebMap.js b/src/openlayers/mapping/WebMap.js index effdf63482..3ee1c76fd9 100644 --- a/src/openlayers/mapping/WebMap.js +++ b/src/openlayers/mapping/WebMap.js @@ -337,6 +337,8 @@ export class WebMap extends Observable { that.addLayers(mapInfo); } that.addGraticule(mapInfo); + }).catch(function (error) { + that.errorCallback && that.errorCallback(error, 'getMapFaild', that.map); }); } else { await that.addBaseMap(mapInfo); @@ -700,6 +702,8 @@ export class WebMap extends Observable { this.map.addLayer(layer); }); + }).catch(function (error){ + throw error; }); } /** @@ -1667,6 +1671,10 @@ export class WebMap extends Observable { that.addMVTMapLayer(mapInfo, layer, layerIndex).then(() => { that.layerAdded++; that.sendMapToUser(len); + }).catch(function (error) { + that.layerAdded++; + that.sendMapToUser(len); + that.errorCallback && that.errorCallback(error, 'getLayerFaild', that.map); }); } else if ((dataSource && dataSource.serverId) || layer.layerType === "MARKER" || layer.layerType === 'HOSTED_TILE' || isSampleData) { //数据存储到iportal上了 @@ -4384,7 +4392,7 @@ export class WebMap extends Observable { layerInfo.bounds = result.bounds; return layerInfo; }).catch(error => { - return error; + throw error; }) } 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