Mercurial > gemma
diff client/src/components/Maplayer.vue @ 2445:e0f423606929
client: import soundingdata: fix npe bug
Changes from bbc31150248c led to a null pointer exception, cause the default value of bottleneck was changed
from empty string to null... for reasons. However, this was the inspiration to improve the UI behavior.
The 'Download meta.json' button is now disabled as long as the form is lacking the necessary data.
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Fri, 01 Mar 2019 12:42:52 +0100 |
parents | 817b3d726b43 |
children | ba15d3534b2b |
line wrap: on
line diff
--- a/client/src/components/Maplayer.vue Fri Mar 01 12:24:37 2019 +0100 +++ b/client/src/components/Maplayer.vue Fri Mar 01 12:42:52 2019 +0100 @@ -352,6 +352,20 @@ ); layer.data.setVisible(layer.isVisible); + layer = this.getLayerByName(LAYERS.BOTTLENECKSTATUS); + layer.data.getSource().setLoader( + this.buildVectorLoader( + { + featureNS: "gemma", + featurePrefix: "gemma", + featureTypes: ["bottlenecks_geoserver"], + geometryName: "area" + }, + "/internal/wfs", + layer.data.getSource() + ) + ); + layer = this.getLayerByName(LAYERS.BOTTLENECKS); layer.data.getSource().setLoader( this.buildVectorLoader(