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

geosolutions-it / MapStore2 / 13858667147

14 Mar 2025 02:23PM UTC coverage: 76.975% (+0.004%) from 76.971%
13858667147

Pull #10921

github

web-flow
Merge 857f245f9 into c7f7aa09a
Pull Request #10921: Fix #10899 About Plugin content

30969 of 48200 branches covered (64.25%)

38486 of 49998 relevant lines covered (76.98%)

35.82 hits per line

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

0.0
/web/client/components/contextcreator/ConfigureMapStep.jsx
1
/*
2
 * Copyright 2019, 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 React from 'react';
10

11

12
import ConfirmDialog from '../layout/ConfirmDialog';
13
import MapViewer from '../../containers/MapViewer';
14
import { MapLibraries } from '../../utils/MapTypeUtils';
15

16
export default ({
17
    pluginsConfig = {},
×
18
    plugins = {},
×
19
    mapType = MapLibraries.OPENLAYERS,
×
20
    className = 'viewer context-creator-viewer',
×
21
    showConfirm = false,
×
22
    confirmMessage = 'contextCreator.configureMap.confirm',
×
23
    onReloadConfirm = () => {},
×
24
    onMapViewerReload = () => {}
×
25
}) => (
26
    <React.Fragment>
×
27
        <ConfirmDialog
28
            show={showConfirm}
29
            onCancel={() => {
30
                onReloadConfirm(false);
×
31
            }}
32
            onConfirm={() => {
33
                onReloadConfirm(false);
×
34
                onMapViewerReload();
×
35
            }}
36
            titleId={confirmMessage}
37
            preventHide
38
            variant="danger"
39
            confirmId="confirm"
40
            cancelId="cancel">
41
        </ConfirmDialog>
42
        <MapViewer
43
            className={className}
44
            pluginsConfig={pluginsConfig}
45
            plugins={plugins}
46
            params={{
47
                mapType,
48
                mapId: 'new'
49
            }}/>
50
    </React.Fragment>
51
);
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