const state = {
  menuRootName: '9cd5fbf9-35fd-4fb2-8c24-1f871afd67be',
  map: null,
  activeQyId: null,
  gisLayer: null,
  gisSource: null
}

const getters = {
}

const mutations = {
  SET_GIS_MAP(state, map) {
    state.map = map
  },
  SET_ACTIVE_QY_ID(state, id) {
    state.activeQyId = id
  }
}

const actions = {
  LOAD_GIS_MAP({ commit }: any, map: any) {
    commit('SET_GIS_MAP', map)
  },
  LOAD_ACTIVE_QY_ID({ commit }: any, id: any) {
    commit('SET_ACTIVE_QY_ID', id)
  },
}

export default {
  namespaced: true,
  state,
  getters,
  mutations,
  actions
}