Mercurial > gemma
comparison 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 |
comparison
equal
deleted
inserted
replaced
2444:7ca6bdb2d174 | 2445:e0f423606929 |
---|---|
350 layer.data.getSource() | 350 layer.data.getSource() |
351 ) | 351 ) |
352 ); | 352 ); |
353 layer.data.setVisible(layer.isVisible); | 353 layer.data.setVisible(layer.isVisible); |
354 | 354 |
355 layer = this.getLayerByName(LAYERS.BOTTLENECKSTATUS); | |
356 layer.data.getSource().setLoader( | |
357 this.buildVectorLoader( | |
358 { | |
359 featureNS: "gemma", | |
360 featurePrefix: "gemma", | |
361 featureTypes: ["bottlenecks_geoserver"], | |
362 geometryName: "area" | |
363 }, | |
364 "/internal/wfs", | |
365 layer.data.getSource() | |
366 ) | |
367 ); | |
368 | |
355 layer = this.getLayerByName(LAYERS.BOTTLENECKS); | 369 layer = this.getLayerByName(LAYERS.BOTTLENECKS); |
356 layer.data.getSource().setLoader( | 370 layer.data.getSource().setLoader( |
357 this.buildVectorLoader( | 371 this.buildVectorLoader( |
358 { | 372 { |
359 featureNS: "gemma", | 373 featureNS: "gemma", |