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

geosolutions-it / MapStore2 / 19060241474

04 Nov 2025 06:46AM UTC coverage: 76.943% (+0.02%) from 76.92%
19060241474

Pull #11648

github

web-flow
Merge 763e0cf1e into 19e678788
Pull Request #11648: #11644: Implement dynamic request configurations

32057 of 49801 branches covered (64.37%)

201 of 222 new or added lines in 39 files covered. (90.54%)

4 existing lines in 3 files now uncovered.

39801 of 51728 relevant lines covered (76.94%)

39.94 hits per line

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

60.0
/web/client/components/map/cesium/plugins/MarkerLayer.js
1
/**
2
 * Copyright 2015, 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 * as Cesium from 'cesium';
11

12
import isEqual from 'lodash/isEqual';
13

14
/**
15
 * @deprecated
16
 */
17
Layers.registerType('marker', {
1✔
18
    create: (options, map) => {
19
        if (!options.visibility) {
1!
20
            return {
×
21
                detached: true,
22
                point: undefined,
23
                remove: () => {}
24
            };
25
        }
26
        const style = {
1✔
27
            point: {
28
                pixelSize: 5,
29
                color: Cesium.Color.RED,
30
                outlineColor: Cesium.Color.WHITE,
31
                outlineWidth: 2
32
            },
33
            ...options.style
34
        };
35
        const point = map.entities.add({
1✔
36
            position: Cesium.Cartesian3.fromDegrees(options?.point?.lng || 0, options?.point?.lat || 0),
2!
37
            ...style
38
        });
39
        return {
1✔
40
            detached: true,
41
            point: point,
42
            remove: () => {
43
                map.entities.remove(point);
1✔
44
            }
45
        };
46
    },
47
    update: function(layer, newOptions, oldOptions, map) {
NEW
48
        if (!isEqual(newOptions.point, oldOptions.point) || !isEqual(oldOptions.security, newOptions.security)) {
×
49
            return this.create(newOptions, map);
×
50
        }
51
        return null;
×
52
    }
53
});
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