Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/openlayers/mapping/WebMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -700,6 +702,8 @@ export class WebMap extends Observable {

this.map.addLayer(layer);
});
}).catch(function (error){
throw error;
});
}
/**
Expand Down Expand Up @@ -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上了
Expand Down Expand Up @@ -4384,7 +4392,7 @@ export class WebMap extends Observable {
layerInfo.bounds = result.bounds;
return layerInfo;
}).catch(error => {
return error;
throw error;
})
}

Expand Down