• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

geosolutions-it / MapStore2 / 19710972030

26 Nov 2025 03:38PM UTC coverage: 76.665% (-0.3%) from 76.929%
19710972030

Pull #11119

github

web-flow
Fix maven publish (#11739)
Pull Request #11119: Layer Selection Plugin on ArcGIS, WFS & WMS layers

32272 of 50209 branches covered (64.28%)

3 of 3 new or added lines in 2 files covered. (100.0%)

3018 existing lines in 249 files now uncovered.

40157 of 52380 relevant lines covered (76.66%)

37.9 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

90.91
/web/client/reducers/swipe.js
1
/**
2
 * Copyright 2020, GeoSolutions Sas.
3
 * All rights reserved.
4
 *
5
 * This source code is licensed under the BSD-style license found in the
6
 * LICENSE file in the root directory of this source tree.
7
 */
8

9

10
import { SET_ACTIVE, SET_MODE, SET_SWIPE_TOOL_DIRECTION, SET_SPY_TOOL_RADIUS, SET_SWIPE_LAYER, SET_SWIPE_SLIDER_OPTIONS } from '../actions/swipe';
11
import { MAP_CONFIG_LOADED } from '../actions/config';
12

13
export default (state = {}, action) => {
3✔
14
    switch (action.type) {
13!
15
    case SET_ACTIVE: {
16
        return { ...state, [action.prop]: action.active, ...(action.active === false && { sliderOptions: {} }) };
3✔
17
    }
18
    case MAP_CONFIG_LOADED: {
19
        return action.config?.swipe || {};
2✔
20
    }
21
    case SET_SWIPE_LAYER: {
UNCOV
22
        return { ...state, layerId: action.layerId };
×
23
    }
24
    case SET_MODE: {
25
        return { ...state, mode: action.mode };
1✔
26
    }
27
    case SET_SWIPE_TOOL_DIRECTION: {
28
        const newSwipeSetting = {
2✔
29
            ...state.swipe,
30
            direction: action.direction
31
        };
32
        return { ...state, swipe: newSwipeSetting, sliderOptions: {} };
2✔
33
    }
34
    case SET_SPY_TOOL_RADIUS: {
35
        const newSpySetting = {
1✔
36
            ...state.spy,
37
            radius: action.radius
38
        };
39
        return { ...state, spy: newSpySetting };
1✔
40
    }
41
    case SET_SWIPE_SLIDER_OPTIONS: {
42
        return {
1✔
43
            ...state,
44
            sliderOptions: action.options
45
        };
46
    }
47
    default:
48
        return state;
3✔
49
    }
50
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc