forked from geosolutions-it/geonode-mapstore-client
-
Notifications
You must be signed in to change notification settings - Fork 104
/
plugins.js
125 lines (118 loc) · 4.86 KB
/
plugins.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
/**
* Copyright 2017, GeoSolutions Sas.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
// geonode specific epics
import epics from "@js/epics";
import { extendPluginsDefinition } from "@extend/jsapi/plugins";
import AddGroupPlugin from '@mapstore/framework/plugins/AddGroup';
import IdentifyPlugin from '@mapstore/framework/plugins/Identify';
import TOCPlugin from '@mapstore/framework/plugins/TOC';
import MapPlugin from '@mapstore/framework/plugins/Map';
import ToolbarPlugin from '@mapstore/framework/plugins/Toolbar';
import DrawerMenuPlugin from '@mapstore/framework/plugins/DrawerMenu';
import ZoomAllPlugin from '@mapstore/framework/plugins/ZoomAll';
import MapLoadingPlugin from '@mapstore/framework/plugins/MapLoading';
import OmniBarPlugin from '@mapstore/framework/plugins/OmniBar';
import BackgroundSelectorPlugin from '@mapstore/framework/plugins/BackgroundSelector';
import FullScreenPlugin from '@mapstore/framework/plugins/FullScreen';
import ZoomInPlugin from '@mapstore/framework/plugins/ZoomIn';
import ZoomOutPlugin from '@mapstore/framework/plugins/ZoomOut';
import ExpanderPlugin from '@mapstore/framework/plugins/Expander';
import BurgerMenuPlugin from '@mapstore/framework/plugins/BurgerMenu';
import HistoryPlugin from '@mapstore/framework/plugins/History';
import ScaleBoxPlugin from '@mapstore/framework/plugins/ScaleBox';
import MapFooterPlugin from '@mapstore/framework/plugins/MapFooter';
import PrintPlugin from '@mapstore/framework/plugins/Print';
import MeasurePlugin from '@mapstore/framework/plugins/Measure';
import FilterLayerPlugin from '@mapstore/framework/plugins/FilterLayer';
import TOCItemsSettingsPlugin from '@mapstore/framework/plugins/TOCItemsSettings';
import WidgetsPlugin from '@mapstore/framework/plugins/Widgets';
import WidgetsBuilderPlugin from '@mapstore/framework/plugins/WidgetsBuilder';
import WidgetsTrayPlugin from '@mapstore/framework/plugins/WidgetsTray';
import NotificationsPlugin from '@mapstore/framework/plugins/Notifications';
import FeatureEditorPlugin from '@mapstore/framework/plugins/FeatureEditor';
import QueryPanelPlugin from '@mapstore/framework/plugins/QueryPanel';
import MetadataExplorerPlugin from '@mapstore/framework/plugins/MetadataExplorer';
import GridContainerPlugin from '@mapstore/framework/plugins/GridContainer';
import StyleEditorPlugin from '@mapstore/framework/plugins/StyleEditor';
import TimelinePlugin from '@mapstore/framework/plugins/Timeline';
import PlaybackPlugin from '@mapstore/framework/plugins/Playback';
import MousePositionPlugin from '@mapstore/framework/plugins/MousePosition';
import SearchPlugin from '@mapstore/framework/plugins/Search';
import SearchServicesConfigPlugin from '@mapstore/framework/plugins/SearchServicesConfig';
import SwipePlugin from '@mapstore/framework/plugins/Swipe';
import LocatePlugin from '@mapstore/framework/plugins/Locate';
import SavePlugin from '@js/plugins/Save';
import SaveAsPlugin from '@js/plugins/SaveAs';
import SharePlugin from '@js/plugins/Share';
import security from '@mapstore/framework/reducers/security';
import maps from '@mapstore/framework/reducers/maps';
import maplayout from '@mapstore/framework/reducers/maplayout';
import ReactSwipe from 'react-swipeable-views';
import SwipeHeader from '@mapstore/framework/components/data/identify/SwipeHeader';
const pluginsDefinition = {
plugins: {
AddGroupPlugin,
IdentifyPlugin,
TOCPlugin,
MapPlugin,
ToolbarPlugin,
DrawerMenuPlugin,
ZoomAllPlugin,
MapLoadingPlugin,
OmniBarPlugin,
BackgroundSelectorPlugin,
FullScreenPlugin,
ZoomInPlugin,
ZoomOutPlugin,
ExpanderPlugin,
BurgerMenuPlugin,
UndoPlugin: HistoryPlugin,
RedoPlugin: HistoryPlugin,
ScaleBoxPlugin,
MapFooterPlugin,
PrintPlugin,
MeasurePlugin,
FilterLayerPlugin,
TOCItemsSettingsPlugin,
WidgetsPlugin,
WidgetsBuilderPlugin,
WidgetsTrayPlugin,
NotificationsPlugin,
FeatureEditorPlugin,
QueryPanelPlugin,
SavePlugin,
SaveAsPlugin,
MetadataExplorerPlugin,
GridContainerPlugin,
StyleEditorPlugin,
TimelinePlugin,
PlaybackPlugin,
MousePositionPlugin,
SearchPlugin,
SearchServicesConfigPlugin,
SwipePlugin,
LocatePlugin,
SharePlugin,
AddReducersAndEpics: {
reducers: {
security,
maps,
maplayout
},
epics
}
},
requires: {
ReactSwipe,
SwipeHeader
}
};
const extendedPluginsDefinition = extendPluginsDefinition
? extendPluginsDefinition(pluginsDefinition)
: pluginsDefinition;
export default extendedPluginsDefinition;