From 72ccf2e2fb29615041d8bc36b28adfbe56600c4f Mon Sep 17 00:00:00 2001 From: qiulinFV Date: Wed, 3 Feb 2021 10:08:02 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E4=BF=AE=E5=A4=8Dol=20webmap=20?= =?UTF-8?q?=E4=B8=AD=E5=90=AB=E6=97=A0=E6=9D=83=E9=99=90=E7=9F=A2=E9=87=8F?= =?UTF-8?q?=E7=93=A6=E7=89=87=E6=9C=8D=E5=8A=A1=EF=BC=88=E6=88=96=E8=A2=AB?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E7=9A=84=E7=9F=A2=E9=87=8F=E7=93=A6=E7=89=87?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=EF=BC=89=E6=97=B6=EF=BC=8C=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20review=20by=20zhaoq?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/openlayers/mapping/WebMap.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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