/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2016-2017 Dan "Ducky" Little
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

/** Dictionary of GeoMoose Actions.
 *
 *  Every action for GeoMoose needs to be mapped to
 *  one of the 'action' dictionaries below.
 *
 */

export const CATALOG = {
    ADD_LAYER: 'CATALOG_ADD_LAYER',
    ADD_GROUP: 'CATALOG_ADD_GROUP',
    ADD_CHILD: 'CATALOG_ADD_CHILD',
    REMOVE_LAYER: 'CATALOG_RM_LAYER',
    REMOVE_GROUP: 'CATALOG_RM_GROUP',
    GROUP_VIS: 'CATALOG_GROUP_VIS',
    FAVORITE: 'CATALOG_FAVORITE',
    REFRESH: 'CATALOG_REFRESH',
    LEGEND_VIS: 'CATALOG_LEGEND_VIS'
};

export const MAP = {
    MOVE: 'MAP_MOVE',
    CURSOR: 'MAP_CURSOR',
    CHANGE_TOOL: 'MAP_CHANGE_TOOL',

    ADD_SELECTION_FEATURE: 'MAP_ADD_SELECTION_FEATURE',
    CLEAR_SELECTION_FEATURES: 'MAP_CLEAR_SELECTION_FEATURES',
    BUFFER_SELECTION_FEATURES: 'MAP_BUFFER_SELECTION_FEATURES',

    QUERY_NEW: 'MAP_QUERY_NEW',
    QUERY_PROGRESS: 'MAP_QUERY_PROGRESS',
    QUERY_START: 'MAP_QUERY_START',
    QUERY_FINISHED: 'MAP_QUERY_FINISHED',
    QUERY_RESULTS: 'MAP_QUERY_RESULTS',
    QUERY_REMOVE: 'MAP_QUERY_REMOVE',
    QUERY_RESULTS_REMOVE: 'MAP_QUERY_FEATURES_REMOVE',

    QUERY_RENDERED_RESULTS: 'MAP_QUERY_RENDERED_RESULTS',

    SKETCH_GEOMETRY: 'MAP_SKETCH_GEOMETRY',

    ZOOM_TO_EXTENT: 'MAP_ZOOM_TO_EXTENT',

    ADD_FILTER: 'MAP_ADD_FILTER',
    REMOVE_FILTER: 'MAP_REMOVE_FILTER',

    SET_EDIT_PATH: 'MAP_SET_EDIT_PATH',
    SET_EDIT_TOOLS: 'MAP_SET_EDIT_TOOLS',
    RESIZE: 'MAP_RESIZE',
};

export const QUERY = {
    START: 'QUERY_START',
    RESULTS: 'QUERY_RESULTS',
    EMPTY: 'QUERY_EMPTY',
    ADD: 'QUERY_ADD_ITEM',
    REMOVE: 'QUERY_REMOVE_ITEM'
};

export const SERVICE = {
    START: 'SERVICE_START',
    FINISH: 'SERVICE_FINISH',
    SHOW_FORM: 'SERVICE_SHOW_FORM',
};

export const UI = {
    HINT: 'UI_HINT',
    CLEAR_HINT: 'UI_CLEAR_HINT',
    RUN_ACTION: 'UI_RUN_ACTION',
    CLEAR_ACTION: 'UI_CLEAR_ACTION',
    SHOW_MODAL: 'UI_SHOW_MODAL',
};

export const PRINT = {
    FINISHED: 'PRINT_DONE',
    REQUEST: 'PRINT_REQUEST',
    IMAGE: 'PRINT_IMAGE',
};

export const EDITOR = {
    START_EDIT: 'GM3_EDITOR_START_EDIT',
    FINISH_EDIT: 'GM3_EDITOR_FINISH_EDIT',
    REMOVE: 'GM3_EDITOR_REMOVE',
};

@@ -1297,360 +1297,8 @@
 */%0A%0A
-export const CATALOG = %7B%0A    ADD_LAYER: 'CATALOG_ADD_LAYER',%0A    ADD_GROUP: 'CATALOG_ADD_GROUP',%0A    ADD_CHILD: 'CATALOG_ADD_CHILD',%0A    REMOVE_LAYER: 'CATALOG_RM_LAYER',%0A    REMOVE_GROUP: 'CATALOG_RM_GROUP',%0A    GROUP_VIS: 'CATALOG_GROUP_VIS',%0A    FAVORITE: 'CATALOG_FAVORITE',%0A    REFRESH: 'CATALOG_REFRESH',%0A    LEGEND_VIS: 'CATALOG_LEGEND_VIS'%0A%7D;%0A%0A
 expo
@@ -2497,189 +2497,8 @@
 %7D;%0A%0A
-export const UI = %7B%0A    HINT: 'UI_HINT',%0A    CLEAR_HINT: 'UI_CLEAR_HINT',%0A    RUN_ACTION: 'UI_RUN_ACTION',%0A    CLEAR_ACTION: 'UI_CLEAR_ACTION',%0A    SHOW_MODAL: 'UI_SHOW_MODAL',%0A%7D;%0A%0A
 expo

clean up old action types