qwc2
Version:
QGIS Web Client
8 lines • 787 B
JavaScript
/**
* Copyright 2015 GeoSolutions Sas
* Copyright 2016-2024 Sourcepole AG
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/import ReducerIndex from"../reducers/index";import locateReducer from"../reducers/locate";ReducerIndex.register("locate",locateReducer);export var CHANGE_LOCATE_STATE="CHANGE_LOCATE_STATE";export var CHANGE_LOCATE_POSITION="CHANGE_LOCATE_POSITION";export var LOCATE_ERROR="LOCATE_ERROR";export function changeLocateState(state){return{type:CHANGE_LOCATE_STATE,state:state}}export function changeLocatePosition(position){return{type:CHANGE_LOCATE_POSITION,position:position}}export function onLocateError(error){return{type:LOCATE_ERROR,error:error}}