Mercurial > gemma
changeset 5151:2584fedb2e99
Set empty feature array if loading failed for WFS.
author | Raimund Renkert <raimund@renkert.org> |
---|---|
date | Wed, 01 Apr 2020 14:19:38 +0200 |
parents | 6a6eaa536787 |
children | 482046e5b63b |
files | client/src/components/layers/layers.js |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/layers/layers.js Wed Apr 01 13:51:04 2020 +0200 +++ b/client/src/components/layers/layers.js Wed Apr 01 14:19:38 2020 +0200 @@ -78,6 +78,8 @@ vectorSource.addFeatures(features); } catch (error) { console.log(error); + console.log("Loading failed for:", vectorSource); + vectorSource.addFeatures([]); } }) .catch(error => {