• 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

18.52
/web/client/components/map/cesium/plugins/EmptyLayer.js
1
/**
2
 * Copyright 2022, 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
import Layers from '../../../../utils/cesium/Layers';
10
import {
11
    GeographicTilingScheme
12
} from 'cesium';
13

14
function EmptyImageryProvider({ color = '#ffffff' } = {}) {
×
15
    this._tilingScheme = new GeographicTilingScheme();
×
16
    // create a tile 1px x 1px of color white to simulate an empty background
UNCOV
17
    this._canvas = document.createElement('canvas');
×
18
    this._canvas.width = 1;
×
19
    this._canvas.height = 1;
×
20
    const ctx = this._canvas.getContext('2d');
×
21
    ctx.fillStyle = color;
×
22
    ctx.fillRect(0, 0, this._canvas.width, this._canvas.height);
×
23
}
24

25
Object.defineProperties(EmptyImageryProvider.prototype, {
1✔
26
    proxy: {
27
        get: function() {
UNCOV
28
            return undefined;
×
29
        }
30
    },
31
    tileWidth: {
32
        get: function() {
UNCOV
33
            return undefined;
×
34
        }
35
    },
36
    tileHeight: {
37
        get: function() {
UNCOV
38
            return undefined;
×
39
        }
40
    },
41
    maximumLevel: {
42
        get: function() {
UNCOV
43
            return undefined;
×
44
        }
45
    },
46
    minimumLevel: {
47
        get: function() {
UNCOV
48
            return undefined;
×
49
        }
50
    },
51
    tilingScheme: {
52
        get: function() {
UNCOV
53
            return this._tilingScheme;
×
54
        }
55
    },
56
    rectangle: {
57
        get: function() {
UNCOV
58
            return this._tilingScheme.rectangle;
×
59
        }
60
    },
61
    tileDiscardPolicy: {
62
        get: function() {
UNCOV
63
            return undefined;
×
64
        }
65
    },
66
    errorEvent: {
67
        get: function() {
UNCOV
68
            return undefined;
×
69
        }
70
    },
71
    credit: {
72
        get: function() {
UNCOV
73
            return undefined;
×
74
        }
75
    },
76
    hasAlphaChannel: {
77
        get: function() {
UNCOV
78
            return true;
×
79
        }
80
    }
81
});
82

83
EmptyImageryProvider.prototype.getTileCredits = function() {
1✔
84
    return undefined;
×
85
};
86

87
EmptyImageryProvider.prototype.requestImage = function() {
1✔
UNCOV
88
    return Promise.resolve(this._canvas);
×
89
};
90

91
EmptyImageryProvider.prototype.pickFeatures = function() {
1✔
UNCOV
92
    return undefined;
×
93
};
94

95
Layers.registerType('empty', () => {
1✔
UNCOV
96
    return new EmptyImageryProvider({ color: '#ffffff' });
×
97
});
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