Mercurial > gemma
view client/src/identify/store.js @ 1059:51d412a79e4f crossprofile
omit render while clearing profile
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 25 Oct 2018 17:19:50 +0200 |
parents | ca628dce90dd |
children |
line wrap: on
line source
/* * This is Free Software under GNU Affero General Public License v >= 3.0 * without warranty, see README.md and license for details. * * SPDX-License-Identifier: AGPL-3.0-or-later * License-Filename: LICENSES/AGPL-3.0.txt * * Copyright (C) 2018 by via donau * – Österreichische Wasserstraßen-Gesellschaft mbH * Software engineering by Intevation GmbH * * Author(s): * Thomas Junk <thomas.junk@intevation.de> */ // note that some identified features may not have an id // especially related to drawing in our own vector layer const IndentifyStore = { namespaced: true, state: { identifiedFeatures: [], currentMeasurement: null }, getters: { identifiedFeatures: state => { return state.identifiedFeatures; }, currentMeasurement: state => { return state.currentMeasurement; } }, mutations: { setIdentifiedFeatures: (state, identifiedFeatures) => { state.identifiedFeatures = identifiedFeatures; }, setCurrentMeasurement: (state, measurement) => { state.currentMeasurement = measurement; } } }; export default IndentifyStore;