view client/src/identify/store.js @ 977:4a2ca0e20006

Fixed build error. Copied file to the wrong place and said 'go build' to another wrong place. Argh.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 18 Oct 2018 17:30:53 +0200
parents 3da707172772
children ca628dce90dd
line wrap: on
line source

// 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;