Mercurial > gemma
changeset 857:e653e72769da
Client: Set bottleneck_id in client, too.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 28 Sep 2018 16:51:17 +0200 |
parents | ce0d50b1d126 |
children | f82c31428a27 |
files | client/src/map/Maplayer.vue |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/map/Maplayer.vue Fri Sep 28 14:13:51 2018 +0200 +++ b/client/src/map/Maplayer.vue Fri Sep 28 16:51:17 2018 +0200 @@ -282,11 +282,11 @@ return loader; }, // TODOISO call if new survey is selected - updateBottleneckFilter(datestr) { + updateBottleneckFilter(datestr, bottleneck_id) { console.log(datestr); var wmsSrc = this.getLayerByName("Bottleneck isolines").data.getSource(); // TODOISO check if this works - wmsSrc.updateParams({ cql_filter: "date_info = '" + datestr + "'" }); + wmsSrc.updateParams({ cql_filter: "date_info='" + datestr + "' AND bottleneck_id='" + bottleneck_id + "'" }); } }, watch: { @@ -453,9 +453,9 @@ layer.data.setStyle(newstyle); // so none is shown - // this.updateBottleneckFilter("1999-10-01"); + // this.updateBottleneckFilter("1999-10-01", "AT_Bottleneck_44"); // test date - this.updateBottleneckFilter("2018-08-30"); + this.updateBottleneckFilter("2018-08-30", "AT_Bottleneck_44"); this.activateIdentifyMode(); } };