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

geosolutions-it / MapStore2 / 16467617135

23 Jul 2025 10:03AM UTC coverage: 76.923% (-0.001%) from 76.924%
16467617135

Pull #11331

github

web-flow
Merge 9ab7d3e8c into 13a50aa6b
Pull Request #11331: Fix #11103 Update cesium to latest stable 1.131.0 , reviewed all the cesium layers and cesium map.

31293 of 48685 branches covered (64.28%)

45 of 59 new or added lines in 9 files covered. (76.27%)

51 existing lines in 9 files now uncovered.

38834 of 50484 relevant lines covered (76.92%)

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

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

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

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

95
Layers.registerType('empty', () => {
1✔
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

© 2026 Coveralls, Inc