Mercurial > gemma
changeset 1057:7242b5a427bc crossprofile
completely nulling the units
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 25 Oct 2018 16:52:18 +0200 |
parents | 28eb62f7c676 |
children | 5a43d5602d14 |
files | client/src/fairway/store.js |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/fairway/store.js Thu Oct 25 16:19:46 2018 +0200 +++ b/client/src/fairway/store.js Thu Oct 25 16:52:18 2018 +0200 @@ -76,7 +76,7 @@ if (!state.maxAlt || state.maxAlt < result.maxAlt) { state.maxAlt = result.maxAlt; } - if (!state.totalLength || state.totalLength < result.totalLength) { + if (!state.totalLength || state.totalLength < result.lengthPolyLine) { state.totalLength = result.lengthPolyLine; } }, @@ -92,6 +92,12 @@ clearCurrentProfile: state => { state.additionalSurvey = ""; state.currentProfile = {}; + state.minAlt = null; + state.maxAlt = null; + state.totalLength = null; + state.fairwayCoordinates = []; + state.startPoint = null; + state.endPoint = null; } }, actions: {