Mercurial > gemma
comparison client/src/store/imports.js @ 2909:5105f6ad0176
client: stretches: fixed highlighting of selected stretch
The vectorloader for each layer can now take a callback to postprocess the returned features.
For the stretches layer the selectedStretch (which is now stored in the vuex store) now gets
a 'highlighted' flag. The layer respects that flag to alter the styles.
A watcher on selectedStretch resets the styles when selectedStretch changes and sets the highlighted
flag for the new selectedStretch, if present, otherwise the vectorloader does this job.
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Tue, 02 Apr 2019 18:19:43 +0200 |
parents | c40540889b53 |
children | c8c7122047a2 |
comparison
equal
deleted
inserted
replaced
2908:2821113846a9 | 2909:5105f6ad0176 |
---|---|
30 pending: false, | 30 pending: false, |
31 accepted: false, | 31 accepted: false, |
32 declined: false, | 32 declined: false, |
33 warning: false, | 33 warning: false, |
34 stretches: [], | 34 stretches: [], |
35 selectedStretch: null, | |
35 imports: [], | 36 imports: [], |
36 reviewed: [], | 37 reviewed: [], |
37 show: null, | 38 show: null, |
38 showAdditional: null, | 39 showAdditional: null, |
39 showLogs: null, | 40 showLogs: null, |
125 clearFilters: state => { | 126 clearFilters: state => { |
126 clearFilterCriteria(state); | 127 clearFilterCriteria(state); |
127 }, | 128 }, |
128 setStretches: (state, stretches) => { | 129 setStretches: (state, stretches) => { |
129 state.stretches = stretches; | 130 state.stretches = stretches; |
131 }, | |
132 selectedStretch: (state, stretch) => { | |
133 state.selectedStretch = stretch; | |
130 }, | 134 }, |
131 setReviewed: (state, reviewed) => { | 135 setReviewed: (state, reviewed) => { |
132 state.reviewed = reviewed; | 136 state.reviewed = reviewed; |
133 }, | 137 }, |
134 setImports: (state, imports) => { | 138 setImports: (state, imports) => { |