Mercurial > gemma
diff client/src/store/application.js @ 1115:1b160eda22cf store-refactoring
moved drawMode to map store
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Mon, 05 Nov 2018 14:05:01 +0100 |
parents | 8d12056d602a |
children | d9e6a1f6f394 |
line wrap: on
line diff
--- a/client/src/store/application.js Mon Nov 05 13:41:53 2018 +0100 +++ b/client/src/store/application.js Mon Nov 05 14:05:01 2018 +0100 @@ -39,8 +39,6 @@ iscollapsed: defaultCollapseState }, countries: ["AT", "SK", "HU", "HR", "RS", "BiH", "BG", "RO", "UA"], - // there are three states of drawMode: null, "LineString", "Polygon" - drawMode: null, version }, getters: { @@ -114,16 +112,6 @@ }, resetSplitScreen: state => { state.splitsceen = initializeSplitScreen(); - }, - toggleDrawModeLine: state => { - if (state.drawMode) { - state.drawMode = null; - } else { - state.drawMode = "LineString"; - } - }, - activateDrawModePolygon: state => { - state.drawMode = "Polygon"; } }, actions: {}