qwc2 2025.10.13 → 2025.10.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/actions/display.js +30 -1
- package/actions/editing.js +22 -1
- package/actions/layerinfo.js +13 -1
- package/actions/layers.js +213 -3
- package/actions/localConfig.js +58 -1
- package/actions/locale.js +21 -1
- package/actions/locate.js +26 -1
- package/actions/logging.js +10 -1
- package/actions/map.js +105 -2
- package/actions/measurement.js +12 -1
- package/actions/processNotifications.js +37 -1
- package/actions/redlining.js +18 -1
- package/actions/redliningPick.js +12 -1
- package/actions/search.js +12 -1
- package/actions/serviceinfo.js +12 -1
- package/actions/task.js +55 -3
- package/actions/theme.js +339 -19
- package/actions/windows.js +164 -5
- package/components/AppMenu.js +435 -3
- package/components/AttributeForm.js +928 -32
- package/components/AttributeTableWidget.js +1105 -13
- package/components/AutoEditForm.js +189 -3
- package/components/CoordinateDisplayer.js +78 -2
- package/components/EditComboField.js +190 -6
- package/components/EditUploadField.js +315 -3
- package/components/ExportSelection.js +203 -2
- package/components/FullscreenSwitcher.js +90 -3
- package/components/Icon.js +81 -2
- package/components/IdentifyViewer.js +1161 -6
- package/components/ImportLayer.js +718 -20
- package/components/LayerInfoWindow.js +145 -2
- package/components/LinkFeatureForm.js +246 -5
- package/components/MapButton.js +88 -2
- package/components/MapSelection.js +287 -8
- package/components/MessageBar.js +68 -2
- package/components/NumericInputWindow.js +359 -2
- package/components/PickFeature.js +266 -2
- package/components/PluginsContainer.js +227 -8
- package/components/PrintSelection.js +620 -49
- package/components/ProcessNotifications.js +104 -2
- package/components/QtDesignerForm.js +1137 -18
- package/components/ResizeableWindow.js +591 -8
- package/components/SearchBox.js +1307 -20
- package/components/ServiceInfoWindow.js +107 -2
- package/components/SideBar.js +204 -4
- package/components/StandardApp.js +381 -20
- package/components/Swipeable.js +15 -1
- package/components/TaskBar.js +85 -2
- package/components/ThemeLayersListWindow.js +216 -4
- package/components/ThemeList.js +381 -7
- package/components/Toolbar.js +106 -2
- package/components/WindowManager.js +178 -2
- package/components/map/OlLayer.js +257 -6
- package/components/map/OlMap.js +405 -5
- package/components/map/layers/BingLayer.js +31 -2
- package/components/map/layers/GoogleLayer.js +222 -19
- package/components/map/layers/GraticuleLayer.js +21 -1
- package/components/map/layers/ImageLayer.js +15 -1
- package/components/map/layers/MVTLayer.js +52 -2
- package/components/map/layers/OSMLayer.js +24 -2
- package/components/map/layers/OverlayLayer.js +55 -3
- package/components/map/layers/VectorLayer.js +173 -8
- package/components/map/layers/WFSLayer.js +220 -6
- package/components/map/layers/WMSLayer.js +180 -6
- package/components/map/layers/WMTSLayer.js +67 -3
- package/components/map/layers/XYZLayer.js +24 -2
- package/components/map/layers/index.js +28 -1
- package/components/map3d/EditDataset3D.js +190 -3
- package/components/map3d/HeightProfile3D.js +402 -3
- package/components/map3d/ImportObjects3D.js +162 -2
- package/components/map3d/Map3D.js +1304 -38
- package/components/map3d/MapControls3D.js +392 -7
- package/components/map3d/SearchField3D.js +183 -11
- package/components/map3d/View3DSwitcher.js +98 -2
- package/components/map3d/drawtool/CreateTool3D.js +174 -4
- package/components/map3d/drawtool/EditTool3D.js +590 -6
- package/components/map3d/drawtool/NumericInput3D.js +336 -4
- package/components/map3d/layers/GeoTIFFLayer3D.js +15 -1
- package/components/map3d/layers/VectorLayer3D.js +53 -2
- package/components/map3d/layers/WFSLayer3D.js +109 -3
- package/components/map3d/layers/WMSLayer3D.js +70 -2
- package/components/map3d/layers/WMTSLayer3D.js +27 -3
- package/components/map3d/layers/index.js +14 -1
- package/components/map3d/utils/FirstPersonControls3D.js +423 -16
- package/components/map3d/utils/MiscUtils3D.js +221 -13
- package/components/map3d/utils/OrbitControls3D.js +176 -5
- package/components/map3d/utils/Tiles3DStyle.js +238 -9
- package/components/share/ShareLink.js +54 -2
- package/components/share/ShareQRCode.js +62 -2
- package/components/share/ShareSocials.js +125 -3
- package/components/timeline/FixedTimeline.js +236 -5
- package/components/timeline/InfiniteTimeline.js +347 -8
- package/components/timeline/TimelineFeaturesSlider.js +439 -5
- package/components/widgets/AccordeonWidget.js +96 -2
- package/components/widgets/ButtonBar.js +124 -2
- package/components/widgets/ColorButton.js +201 -3
- package/components/widgets/ComboBox.js +166 -2
- package/components/widgets/CopyButton.js +110 -2
- package/components/widgets/DateTimeInput.js +100 -3
- package/components/widgets/EditableSelect.js +230 -3
- package/components/widgets/FileSelector.js +128 -4
- package/components/widgets/Input.js +124 -2
- package/components/widgets/InputContainer.js +96 -2
- package/components/widgets/LayerCatalogWidget.js +219 -3
- package/components/widgets/MenuButton.js +157 -1
- package/components/widgets/ModalDialog.js +64 -2
- package/components/widgets/NavBar.js +119 -2
- package/components/widgets/NumberInput.js +226 -4
- package/components/widgets/PopupMenu.js +72 -1
- package/components/widgets/Primitives.js +6 -1
- package/components/widgets/ReCaptchaWidget.js +55 -1
- package/components/widgets/SearchWidget.js +255 -2
- package/components/widgets/Spinner.js +44 -2
- package/components/widgets/SuggestionInput.js +77 -2
- package/components/widgets/TextInput.js +308 -2
- package/components/widgets/ToggleSwitch.js +85 -2
- package/components/widgets/VectorLayerPicker.js +85 -3
- package/libs/openlayers.js +225 -5
- package/package.json +1 -1
- package/plugins/API.js +358 -15
- package/plugins/AttributeTable.js +109 -3
- package/plugins/Authentication.js +130 -5
- package/plugins/BackgroundSwitcher.js +218 -4
- package/plugins/Bookmark.js +289 -3
- package/plugins/BottomBar.js +298 -4
- package/plugins/CookiePopup.js +67 -3
- package/plugins/Cyclomedia.js +442 -5
- package/plugins/Editing.js +497 -9
- package/plugins/FeatureForm.js +366 -4
- package/plugins/FeatureSearch.js +458 -3
- package/plugins/GeometryDigitizer.js +664 -7
- package/plugins/HeightProfile.js +768 -15
- package/plugins/Help.js +102 -3
- package/plugins/HomeButton.js +80 -3
- package/plugins/Identify.js +543 -5
- package/plugins/LayerCatalog.js +215 -4
- package/plugins/LayerTree.js +1194 -6
- package/plugins/LocateButton.js +94 -3
- package/plugins/Map.js +320 -16
- package/plugins/MapCompare.js +94 -3
- package/plugins/MapCopyright.js +127 -5
- package/plugins/MapExport.js +613 -20
- package/plugins/MapFilter.js +868 -12
- package/plugins/MapInfoTooltip.js +277 -3
- package/plugins/MapLegend.js +253 -4
- package/plugins/MapTip.js +290 -4
- package/plugins/Measure.js +220 -4
- package/plugins/NewsPopup.js +137 -3
- package/plugins/OverviewMap.js +167 -7
- package/plugins/Panoramax.js +340 -2
- package/plugins/Portal.js +199 -4
- package/plugins/Print.js +1231 -15
- package/plugins/Redlining.js +750 -6
- package/plugins/Reports.js +332 -3
- package/plugins/Routing.js +1278 -15
- package/plugins/ScratchDrawing.js +173 -5
- package/plugins/Settings.js +241 -4
- package/plugins/Share.js +198 -3
- package/plugins/StartupMarker.js +84 -4
- package/plugins/TaskButton.js +88 -3
- package/plugins/ThemeSwitcher.js +164 -4
- package/plugins/TimeManager.js +971 -10
- package/plugins/TopBar.js +300 -7
- package/plugins/TourGuide.js +213 -2
- package/plugins/ValueTool.js +419 -4
- package/plugins/View3D.js +519 -14
- package/plugins/ZoomButtons.js +165 -3
- package/plugins/map/EditingSupport.js +199 -7
- package/plugins/map/LocateSupport.js +260 -4
- package/plugins/map/MeasurementSupport.js +216 -8
- package/plugins/map/RedliningPickSupport.js +201 -7
- package/plugins/map/RedliningSupport.js +726 -17
- package/plugins/map/SnapInteraction.js +101 -1
- package/plugins/map/SnapSupport.js +210 -2
- package/plugins/map/SnappingSupport.js +356 -17
- package/plugins/map3d/BackgroundSwitcher3D.js +44 -3
- package/plugins/map3d/BottomBar3D.js +118 -3
- package/plugins/map3d/Compare3D.js +422 -8
- package/plugins/map3d/Draw3D.js +353 -6
- package/plugins/map3d/ExportObjects3D.js +393 -18
- package/plugins/map3d/HideObjects3D.js +313 -12
- package/plugins/map3d/Identify3D.js +283 -12
- package/plugins/map3d/LayerTree3D.js +323 -3
- package/plugins/map3d/MapCopyright3D.js +128 -5
- package/plugins/map3d/MapExport3D.js +590 -10
- package/plugins/map3d/MapLight3D.js +553 -6
- package/plugins/map3d/Measure3D.js +571 -20
- package/plugins/map3d/OverviewMap3D.js +169 -3
- package/plugins/map3d/Settings3D.js +73 -3
- package/plugins/map3d/TopBar3D.js +207 -9
- package/plugins/redlining/RedliningBufferSupport.js +206 -3
- package/reducers/display.js +34 -2
- package/reducers/editing.js +68 -3
- package/reducers/index.js +9 -1
- package/reducers/layerinfo.js +26 -2
- package/reducers/layers.js +456 -9
- package/reducers/localConfig.js +122 -2
- package/reducers/locale.js +38 -2
- package/reducers/locate.js +40 -2
- package/reducers/map.js +176 -5
- package/reducers/measurement.js +42 -2
- package/reducers/processNotifications.js +49 -2
- package/reducers/redlining.js +50 -2
- package/reducers/redliningPick.js +27 -2
- package/reducers/search.js +20 -1
- package/reducers/serviceinfo.js +25 -2
- package/reducers/task.js +45 -2
- package/reducers/theme.js +51 -2
- package/reducers/windows.js +203 -2
- package/scripts/dist.sh +1 -1
- package/scripts/gen-plugin-docs.js +152 -2
- package/scripts/makeIconkit.js +85 -6
- package/scripts/themesConfig.js +742 -40
- package/scripts/updateTranslations.js +251 -10
- package/selectors/searchproviders.js +44 -2
- package/stores/StandardStore.js +42 -2
- package/utils/ConfigUtils.js +84 -3
- package/utils/CoordinatesUtils.js +234 -23
- package/utils/DxfUtils.js +237 -11
- package/utils/EditingInterface.js +421 -87
- package/utils/EditingUtils.js +357 -13
- package/utils/ElevationInterface.js +83 -22
- package/utils/FeatureStyles.js +429 -5
- package/utils/IdentifyUtils.js +443 -7
- package/utils/ImageEditor.js +79 -9
- package/utils/LayerUtils.js +1516 -50
- package/utils/LocaleUtils.js +117 -7
- package/utils/MapUtils.js +241 -59
- package/utils/MeasureUtils.js +323 -2
- package/utils/MiscUtils.js +189 -11
- package/utils/PermaLinkUtils.js +429 -6
- package/utils/PluginStore.js +27 -1
- package/utils/ResourceRegistry.js +15 -1
- package/utils/RoutingInterface.js +307 -7
- package/utils/SearchProviders.js +722 -19
- package/utils/ServiceLayerUtils.js +669 -14
- package/utils/Signal.js +32 -2
- package/utils/ThemeUtils.js +341 -7
- package/utils/VectorLayerUtils.js +589 -15
- package/utils/expr_grammar/grammar.js +2239 -2
- package/utils/expr_grammar/test.js +65 -3
package/actions/display.js
CHANGED
|
@@ -4,4 +4,33 @@
|
|
|
4
4
|
*
|
|
5
5
|
* This source code is licensed under the BSD-style license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import displayReducer from '../reducers/display';
|
|
10
|
+
import ReducerIndex from '../reducers/index';
|
|
11
|
+
ReducerIndex.register("display", displayReducer);
|
|
12
|
+
export var TOGGLE_FULLSCREEN = 'TOGGLE_FULLSCREEN';
|
|
13
|
+
export var SET_VIEW_3D_MODE = 'SET_VIEW_3D_MODE';
|
|
14
|
+
export var View3DMode = {
|
|
15
|
+
DISABLED: 0,
|
|
16
|
+
FULLSCREEN: 1,
|
|
17
|
+
SPLITSCREEN: 2,
|
|
18
|
+
DISABLING: 3
|
|
19
|
+
};
|
|
20
|
+
export function toggleFullscreen(fullscreen) {
|
|
21
|
+
if (fullscreen) {
|
|
22
|
+
document.documentElement.requestFullscreen()["catch"](function () {});
|
|
23
|
+
} else {
|
|
24
|
+
document.exitFullscreen()["catch"](function () {});
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
type: TOGGLE_FULLSCREEN,
|
|
28
|
+
fullscreen: fullscreen
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function setView3dMode(mode) {
|
|
32
|
+
return {
|
|
33
|
+
type: SET_VIEW_3D_MODE,
|
|
34
|
+
mode: mode
|
|
35
|
+
};
|
|
36
|
+
}
|
package/actions/editing.js
CHANGED
|
@@ -4,4 +4,25 @@
|
|
|
4
4
|
*
|
|
5
5
|
* This source code is licensed under the BSD-style license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import editingReducer from '../reducers/editing';
|
|
10
|
+
import ReducerIndex from '../reducers/index';
|
|
11
|
+
ReducerIndex.register("editing", editingReducer);
|
|
12
|
+
export var SET_EDIT_CONTEXT = 'SET_EDIT_CONTEXT';
|
|
13
|
+
export var CLEAR_EDIT_CONTEXT = 'CLEAR_EDIT_CONTEXT';
|
|
14
|
+
export function setEditContext(contextId, editContext) {
|
|
15
|
+
return {
|
|
16
|
+
type: SET_EDIT_CONTEXT,
|
|
17
|
+
contextId: contextId,
|
|
18
|
+
editContext: editContext
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export function clearEditContext(contextId) {
|
|
22
|
+
var newActiveContextId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
23
|
+
return {
|
|
24
|
+
type: CLEAR_EDIT_CONTEXT,
|
|
25
|
+
contextId: contextId,
|
|
26
|
+
newActiveContextId: newActiveContextId
|
|
27
|
+
};
|
|
28
|
+
}
|
package/actions/layerinfo.js
CHANGED
|
@@ -4,4 +4,16 @@
|
|
|
4
4
|
*
|
|
5
5
|
* This source code is licensed under the BSD-style license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import ReducerIndex from '../reducers/index';
|
|
10
|
+
import layerinfoReducer from '../reducers/layerinfo';
|
|
11
|
+
ReducerIndex.register("layerinfo", layerinfoReducer);
|
|
12
|
+
export var SET_ACTIVE_LAYERINFO = 'SET_ACTIVE_LAYERINFO';
|
|
13
|
+
export function setActiveLayerInfo(layer, sublayer) {
|
|
14
|
+
return {
|
|
15
|
+
type: SET_ACTIVE_LAYERINFO,
|
|
16
|
+
layer: layer,
|
|
17
|
+
sublayer: sublayer
|
|
18
|
+
};
|
|
19
|
+
}
|
package/actions/layers.js
CHANGED
|
@@ -1,8 +1,218 @@
|
|
|
1
|
-
function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
/**
|
|
2
8
|
* Copyright 2016-2024 Sourcepole AG
|
|
3
9
|
* All rights reserved.
|
|
4
10
|
*
|
|
5
11
|
* This source code is licensed under the BSD-style license found in the
|
|
6
12
|
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
8
|
-
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import ReducerIndex from '../reducers/index';
|
|
16
|
+
import layersReducer from '../reducers/layers';
|
|
17
|
+
ReducerIndex.register("layers", layersReducer);
|
|
18
|
+
import ConfigUtils from '../utils/ConfigUtils';
|
|
19
|
+
import LayerUtils from '../utils/LayerUtils';
|
|
20
|
+
import LocaleUtils from '../utils/LocaleUtils';
|
|
21
|
+
export var SET_LAYER_LOADING = 'SET_LAYER_LOADING';
|
|
22
|
+
export var ADD_LAYER = 'ADD_LAYER';
|
|
23
|
+
export var ADD_LAYER_SEPARATOR = 'ADD_LAYER_SEPARATOR';
|
|
24
|
+
export var REMOVE_LAYER = 'REMOVE_LAYER';
|
|
25
|
+
export var REORDER_LAYER = 'REORDER_LAYER';
|
|
26
|
+
export var ADD_LAYER_FEATURES = 'ADD_LAYER_FEATURES';
|
|
27
|
+
export var ADD_THEME_SUBLAYER = 'ADD_THEME_SUBLAYER';
|
|
28
|
+
export var REMOVE_LAYER_FEATURES = 'REMOVE_LAYER_FEATURES';
|
|
29
|
+
export var CLEAR_LAYER = 'CLEAR_LAYER';
|
|
30
|
+
export var CHANGE_LAYER_PROPERTY = 'CHANGE_LAYER_PROPERTY';
|
|
31
|
+
export var SET_LAYER_DIMENSIONS = 'SET_LAYER_DIMENSIONS';
|
|
32
|
+
export var REFRESH_LAYER = 'REFRESH_LAYER';
|
|
33
|
+
export var REMOVE_ALL_LAYERS = 'REMOVE_ALL_LAYERS';
|
|
34
|
+
export var REPLACE_PLACEHOLDER_LAYER = 'REPLACE_PLACEHOLDER_LAYER';
|
|
35
|
+
export var SET_SWIPE = 'SET_SWIPE';
|
|
36
|
+
export var SET_FILTER = 'SET_FILTER';
|
|
37
|
+
export var SET_THEME_LAYERS_VISIBILITY_PRESET = 'SET_THEME_LAYERS_VISIBILITY_PRESET';
|
|
38
|
+
export var LayerRole = {
|
|
39
|
+
BACKGROUND: 1,
|
|
40
|
+
THEME: 2,
|
|
41
|
+
USERLAYER: 3,
|
|
42
|
+
SELECTION: 4,
|
|
43
|
+
MARKER: 5
|
|
44
|
+
};
|
|
45
|
+
export function addLayer(layer) {
|
|
46
|
+
var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
47
|
+
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
48
|
+
if (layer.serverType === 'qgis' && !layer.translations) {
|
|
49
|
+
return function (dispatch) {
|
|
50
|
+
return LocaleUtils.loadThemeTranslations(layer.url).then(function (translations) {
|
|
51
|
+
return dispatch({
|
|
52
|
+
type: ADD_LAYER,
|
|
53
|
+
layer: _objectSpread(_objectSpread({}, LayerUtils.applyTranslations(layer, translations)), {}, {
|
|
54
|
+
translations: translations
|
|
55
|
+
}),
|
|
56
|
+
pos: pos,
|
|
57
|
+
options: options
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
} else {
|
|
62
|
+
return {
|
|
63
|
+
type: ADD_LAYER,
|
|
64
|
+
layer: layer,
|
|
65
|
+
pos: pos,
|
|
66
|
+
options: options
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
export function addLayerSeparator(title, afterLayerId, afterSublayerPath) {
|
|
71
|
+
return {
|
|
72
|
+
type: ADD_LAYER_SEPARATOR,
|
|
73
|
+
title: title,
|
|
74
|
+
afterLayerId: afterLayerId,
|
|
75
|
+
afterSublayerPath: afterSublayerPath
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
export function removeLayer(layerId) {
|
|
79
|
+
var sublayerpath = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
80
|
+
return {
|
|
81
|
+
type: REMOVE_LAYER,
|
|
82
|
+
layerId: layerId,
|
|
83
|
+
sublayerpath: sublayerpath
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
export function reorderLayer(layer, sublayerpath, direction) {
|
|
87
|
+
return function (dispatch, getState) {
|
|
88
|
+
dispatch({
|
|
89
|
+
type: REORDER_LAYER,
|
|
90
|
+
layer: layer,
|
|
91
|
+
sublayerpath: sublayerpath,
|
|
92
|
+
direction: direction,
|
|
93
|
+
preventSplittingGroups: ConfigUtils.getConfigProp("preventSplittingGroupsWhenReordering", getState().theme.current)
|
|
94
|
+
});
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
export function addLayerFeatures(layer, features) {
|
|
98
|
+
var clear = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
99
|
+
return {
|
|
100
|
+
type: ADD_LAYER_FEATURES,
|
|
101
|
+
layer: layer,
|
|
102
|
+
features: features,
|
|
103
|
+
clear: clear
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
export function removeLayerFeatures(layerId, featureIds) {
|
|
107
|
+
var keepEmptyLayer = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
108
|
+
return {
|
|
109
|
+
type: REMOVE_LAYER_FEATURES,
|
|
110
|
+
layerId: layerId,
|
|
111
|
+
featureIds: featureIds,
|
|
112
|
+
keepEmptyLayer: keepEmptyLayer
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
export function clearLayer(layerId) {
|
|
116
|
+
return {
|
|
117
|
+
type: CLEAR_LAYER,
|
|
118
|
+
layerId: layerId
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
export function addThemeSublayer(layer) {
|
|
122
|
+
return {
|
|
123
|
+
type: ADD_THEME_SUBLAYER,
|
|
124
|
+
layer: layer
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// recurseDirection: null (don't recurse), 'parents', 'children', 'both'
|
|
129
|
+
export function changeLayerProperty(layerId, property, newvalue) {
|
|
130
|
+
var sublayerpath = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
131
|
+
var recurseDirection = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
|
|
132
|
+
return {
|
|
133
|
+
type: CHANGE_LAYER_PROPERTY,
|
|
134
|
+
layerId: layerId,
|
|
135
|
+
property: property,
|
|
136
|
+
newvalue: newvalue,
|
|
137
|
+
sublayerpath: sublayerpath,
|
|
138
|
+
recurseDirection: recurseDirection
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
export function setLayerDimensions(layerId, dimensions) {
|
|
142
|
+
return {
|
|
143
|
+
type: SET_LAYER_DIMENSIONS,
|
|
144
|
+
layerId: layerId,
|
|
145
|
+
dimensions: dimensions
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
export function setLayerLoading(layerId, loading) {
|
|
149
|
+
return {
|
|
150
|
+
type: SET_LAYER_LOADING,
|
|
151
|
+
layerId: layerId,
|
|
152
|
+
loading: loading
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
export function addMarker(id, point) {
|
|
156
|
+
var label = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
|
|
157
|
+
var crs = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'EPSG:4326';
|
|
158
|
+
var zIndex = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
|
|
159
|
+
var layer = {
|
|
160
|
+
id: "markers",
|
|
161
|
+
role: LayerRole.MARKER,
|
|
162
|
+
zIndex: zIndex
|
|
163
|
+
};
|
|
164
|
+
var feature = {
|
|
165
|
+
id: id,
|
|
166
|
+
geometry: {
|
|
167
|
+
type: 'Point',
|
|
168
|
+
coordinates: point
|
|
169
|
+
},
|
|
170
|
+
properties: {
|
|
171
|
+
label: label
|
|
172
|
+
},
|
|
173
|
+
crs: crs,
|
|
174
|
+
styleName: 'marker'
|
|
175
|
+
};
|
|
176
|
+
return addLayerFeatures(layer, [feature]);
|
|
177
|
+
}
|
|
178
|
+
export function removeMarker(id) {
|
|
179
|
+
return removeLayerFeatures("markers", [id]);
|
|
180
|
+
}
|
|
181
|
+
export function refreshLayer(filter) {
|
|
182
|
+
return {
|
|
183
|
+
type: REFRESH_LAYER,
|
|
184
|
+
filter: filter
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
export function removeAllLayers() {
|
|
188
|
+
return {
|
|
189
|
+
type: REMOVE_ALL_LAYERS
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
export function replacePlaceholderLayer(id, layer) {
|
|
193
|
+
return {
|
|
194
|
+
type: REPLACE_PLACEHOLDER_LAYER,
|
|
195
|
+
id: id,
|
|
196
|
+
layer: layer
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
export function setSwipe(swipe) {
|
|
200
|
+
return {
|
|
201
|
+
type: SET_SWIPE,
|
|
202
|
+
swipe: swipe
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
export function setFilter(filter, filterGeom, timeRange) {
|
|
206
|
+
return {
|
|
207
|
+
type: SET_FILTER,
|
|
208
|
+
filter: filter,
|
|
209
|
+
filterGeom: filterGeom,
|
|
210
|
+
timeRange: timeRange
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
export function setThemeLayersVisibilityPreset(preset) {
|
|
214
|
+
return {
|
|
215
|
+
type: SET_THEME_LAYERS_VISIBILITY_PRESET,
|
|
216
|
+
preset: preset
|
|
217
|
+
};
|
|
218
|
+
}
|
package/actions/localConfig.js
CHANGED
|
@@ -4,4 +4,61 @@
|
|
|
4
4
|
*
|
|
5
5
|
* This source code is licensed under the BSD-style license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import ReducerIndex from '../reducers/index';
|
|
10
|
+
import localConfigReducer from '../reducers/localConfig';
|
|
11
|
+
ReducerIndex.register("localConfig", localConfigReducer);
|
|
12
|
+
export var LOCAL_CONFIG_LOADED = 'LOCAL_CONFIG_LOADED';
|
|
13
|
+
export var SET_STARTUP_PARAMETERS = 'SET_STARTUP_PARAMETERS';
|
|
14
|
+
export var SET_COLOR_SCHEME = 'SET_COLOR_SCHEME';
|
|
15
|
+
export var SET_USER_INFO_FIELDS = 'SET_USER_INFO_FIELDS';
|
|
16
|
+
export var SET_PERMALINK_PARAMETERS = 'SET_PERMALINK_PARAMETERS';
|
|
17
|
+
export var REGISTER_CUSTOM_PLUGIN = 'REGISTER_CUSTOM_PLUGIN';
|
|
18
|
+
export var UNREGISTER_CUSTOM_PLUGIN = 'UNREGISTER_CUSTOM_PLUGIN';
|
|
19
|
+
export function localConfigLoaded(config) {
|
|
20
|
+
return {
|
|
21
|
+
type: LOCAL_CONFIG_LOADED,
|
|
22
|
+
config: config
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export function setStartupParameters(params, state) {
|
|
26
|
+
return {
|
|
27
|
+
type: SET_STARTUP_PARAMETERS,
|
|
28
|
+
params: params,
|
|
29
|
+
state: state
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function setColorScheme(colorScheme) {
|
|
33
|
+
var storeInLocalStorage = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
34
|
+
return {
|
|
35
|
+
type: SET_COLOR_SCHEME,
|
|
36
|
+
colorScheme: colorScheme,
|
|
37
|
+
storeInLocalStorage: storeInLocalStorage
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function setUserInfoFields(fields) {
|
|
41
|
+
return {
|
|
42
|
+
type: SET_USER_INFO_FIELDS,
|
|
43
|
+
fields: fields
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function setPermalinkParameters(params) {
|
|
47
|
+
return {
|
|
48
|
+
type: SET_PERMALINK_PARAMETERS,
|
|
49
|
+
params: params
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function registerCustomPlugin(name, availableIn3D) {
|
|
53
|
+
return {
|
|
54
|
+
type: REGISTER_CUSTOM_PLUGIN,
|
|
55
|
+
name: name,
|
|
56
|
+
availableIn3D: availableIn3D
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
export function unregisterCustomPlugin(name) {
|
|
60
|
+
return {
|
|
61
|
+
type: UNREGISTER_CUSTOM_PLUGIN,
|
|
62
|
+
name: name
|
|
63
|
+
};
|
|
64
|
+
}
|
package/actions/locale.js
CHANGED
|
@@ -5,4 +5,24 @@
|
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the BSD-style license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import ReducerIndex from '../reducers/index';
|
|
11
|
+
import localeReducer from '../reducers/locale';
|
|
12
|
+
ReducerIndex.register("locale", localeReducer);
|
|
13
|
+
export var CHANGE_LOCALE = 'CHANGE_LOCALE';
|
|
14
|
+
export var ADD_TRANSLATIONS = 'ADD_TRANSLATIONS';
|
|
15
|
+
export function changeLocale(localeData, fallbackLocaleData) {
|
|
16
|
+
return {
|
|
17
|
+
type: CHANGE_LOCALE,
|
|
18
|
+
locale: localeData.locale,
|
|
19
|
+
messages: localeData.messages,
|
|
20
|
+
fallbackMessages: fallbackLocaleData.messages
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export function addTranslations(translations) {
|
|
24
|
+
return {
|
|
25
|
+
type: ADD_TRANSLATIONS,
|
|
26
|
+
translations: translations
|
|
27
|
+
};
|
|
28
|
+
}
|
package/actions/locate.js
CHANGED
|
@@ -5,4 +5,29 @@
|
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the BSD-style license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import ReducerIndex from '../reducers/index';
|
|
11
|
+
import locateReducer from '../reducers/locate';
|
|
12
|
+
ReducerIndex.register("locate", locateReducer);
|
|
13
|
+
export var CHANGE_LOCATE_STATE = 'CHANGE_LOCATE_STATE';
|
|
14
|
+
export var CHANGE_LOCATE_POSITION = 'CHANGE_LOCATE_POSITION';
|
|
15
|
+
export var LOCATE_ERROR = 'LOCATE_ERROR';
|
|
16
|
+
export function changeLocateState(state) {
|
|
17
|
+
return {
|
|
18
|
+
type: CHANGE_LOCATE_STATE,
|
|
19
|
+
state: state
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export function changeLocatePosition(position) {
|
|
23
|
+
return {
|
|
24
|
+
type: CHANGE_LOCATE_POSITION,
|
|
25
|
+
position: position
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export function onLocateError(error) {
|
|
29
|
+
return {
|
|
30
|
+
type: LOCATE_ERROR,
|
|
31
|
+
error: error
|
|
32
|
+
};
|
|
33
|
+
}
|
package/actions/logging.js
CHANGED
|
@@ -4,4 +4,13 @@
|
|
|
4
4
|
*
|
|
5
5
|
* This source code is licensed under the BSD-style license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export var LOG_ACTION = 'LOG_ACTION';
|
|
10
|
+
export function logAction(actionType, data) {
|
|
11
|
+
return {
|
|
12
|
+
type: LOG_ACTION,
|
|
13
|
+
actionType: actionType,
|
|
14
|
+
data: data
|
|
15
|
+
};
|
|
16
|
+
}
|
package/actions/map.js
CHANGED
|
@@ -5,11 +5,114 @@
|
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the BSD-style license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import ReducerIndex from '../reducers/index';
|
|
11
|
+
import mapReducer from '../reducers/map';
|
|
12
|
+
ReducerIndex.register("map", mapReducer);
|
|
13
|
+
export var CHANGE_MAP_VIEW = 'CHANGE_MAP_VIEW';
|
|
14
|
+
export var CONFIGURE_MAP = 'CONFIGURE_MAP';
|
|
15
|
+
export var CLICK_ON_MAP = 'CLICK_ON_MAP';
|
|
16
|
+
export var CHANGE_ZOOM_LVL = 'CHANGE_ZOOM_LVL';
|
|
17
|
+
export var PAN_TO = 'PAN_TO';
|
|
18
|
+
export var ZOOM_TO_EXTENT = 'ZOOM_TO_EXTENT';
|
|
19
|
+
export var ZOOM_TO_POINT = 'ZOOM_TO_POINT';
|
|
20
|
+
export var CHANGE_ROTATION = 'CHANGE_ROTATION';
|
|
21
|
+
export var TOGGLE_MAPTIPS = 'TOGGLE_MAPTIPS';
|
|
22
|
+
export var SET_DISPLAY_CRS = 'SET_DISPLAY_CRS';
|
|
23
|
+
export var SET_SNAPPING_CONFIG = 'SET_SNAPPING_CONFIG';
|
|
24
|
+
export function changeMapView(center, zoom, bbox, size, mapStateSource, projection) {
|
|
25
|
+
return {
|
|
26
|
+
type: CHANGE_MAP_VIEW,
|
|
27
|
+
center: center,
|
|
28
|
+
zoom: zoom,
|
|
29
|
+
bbox: bbox,
|
|
30
|
+
size: size,
|
|
31
|
+
mapStateSource: mapStateSource,
|
|
32
|
+
projection: projection
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
9
37
|
* @param crs {string} The map projection
|
|
10
38
|
* @param scales {Array} List of map scales
|
|
11
39
|
* @param view {Object} The map view, as follows:
|
|
12
40
|
* {center: [x, y], zoom: ..., crs: ...}
|
|
13
41
|
* or
|
|
14
42
|
* {bounds: [xmin, ymin, xmax, ymax], crs: ...}
|
|
15
|
-
*/
|
|
43
|
+
*/
|
|
44
|
+
export function configureMap(crs, scales, view, defaultdisplaycrs) {
|
|
45
|
+
return {
|
|
46
|
+
type: CONFIGURE_MAP,
|
|
47
|
+
crs: crs,
|
|
48
|
+
scales: scales,
|
|
49
|
+
view: view,
|
|
50
|
+
defaultdisplaycrs: defaultdisplaycrs
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export function clickOnMap(clickData) {
|
|
54
|
+
return {
|
|
55
|
+
type: CLICK_ON_MAP,
|
|
56
|
+
click: clickData
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
export function changeZoomLevel(zoomLvl, mapStateSource) {
|
|
60
|
+
return {
|
|
61
|
+
type: CHANGE_ZOOM_LVL,
|
|
62
|
+
zoom: zoomLvl,
|
|
63
|
+
mapStateSource: mapStateSource
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
export function panTo(pos, crs) {
|
|
67
|
+
var rotation = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
|
|
68
|
+
return {
|
|
69
|
+
type: PAN_TO,
|
|
70
|
+
pos: pos,
|
|
71
|
+
crs: crs,
|
|
72
|
+
rotation: rotation
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export function zoomToExtent(extent, crs) {
|
|
76
|
+
var zoomOffset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
77
|
+
return {
|
|
78
|
+
type: ZOOM_TO_EXTENT,
|
|
79
|
+
extent: extent,
|
|
80
|
+
crs: crs,
|
|
81
|
+
zoomOffset: zoomOffset
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
export function zoomToPoint(pos, zoom, crs) {
|
|
85
|
+
var rotation = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : undefined;
|
|
86
|
+
return {
|
|
87
|
+
type: ZOOM_TO_POINT,
|
|
88
|
+
pos: pos,
|
|
89
|
+
zoom: zoom,
|
|
90
|
+
crs: crs,
|
|
91
|
+
rotation: rotation
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
export function changeRotation(rotation) {
|
|
95
|
+
return {
|
|
96
|
+
type: CHANGE_ROTATION,
|
|
97
|
+
rotation: rotation
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
export function toggleMapTips(active) {
|
|
101
|
+
return {
|
|
102
|
+
type: TOGGLE_MAPTIPS,
|
|
103
|
+
active: active
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
export function setSnappingConfig(enabled, active) {
|
|
107
|
+
return {
|
|
108
|
+
type: SET_SNAPPING_CONFIG,
|
|
109
|
+
enabled: enabled,
|
|
110
|
+
active: active
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
export function setDisplayCrs(displayCrs) {
|
|
114
|
+
return {
|
|
115
|
+
type: SET_DISPLAY_CRS,
|
|
116
|
+
displayCrs: displayCrs
|
|
117
|
+
};
|
|
118
|
+
}
|
package/actions/measurement.js
CHANGED
|
@@ -5,4 +5,15 @@
|
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the BSD-style license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import ReducerIndex from '../reducers/index';
|
|
11
|
+
import measurementReducer from '../reducers/measurement';
|
|
12
|
+
ReducerIndex.register("measurement", measurementReducer);
|
|
13
|
+
export var CHANGE_MEASUREMENT_STATE = 'CHANGE_MEASUREMENT_STATE';
|
|
14
|
+
export function changeMeasurementState(measureState) {
|
|
15
|
+
return {
|
|
16
|
+
type: CHANGE_MEASUREMENT_STATE,
|
|
17
|
+
data: measureState
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -4,4 +4,40 @@
|
|
|
4
4
|
*
|
|
5
5
|
* This source code is licensed under the BSD-style license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import ReducerIndex from '../reducers/index';
|
|
10
|
+
import processNotificationsReducer from '../reducers/processNotifications';
|
|
11
|
+
ReducerIndex.register("processNotifications", processNotificationsReducer);
|
|
12
|
+
export var PROCESS_STARTED = 'PROCESS_STARTED';
|
|
13
|
+
export var PROCESS_FINISHED = 'PROCESS_FINISHED';
|
|
14
|
+
export var CLEAR_PROCESS = 'CLEAR_PROCESS';
|
|
15
|
+
export var ProcessStatus = {
|
|
16
|
+
BUSY: 1,
|
|
17
|
+
SUCCESS: 2,
|
|
18
|
+
FAILURE: 3
|
|
19
|
+
};
|
|
20
|
+
export function processStarted(id, name) {
|
|
21
|
+
return {
|
|
22
|
+
type: PROCESS_STARTED,
|
|
23
|
+
id: id,
|
|
24
|
+
name: name
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export function processFinished(id, success) {
|
|
28
|
+
var message = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "";
|
|
29
|
+
var timeout = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
|
|
30
|
+
return {
|
|
31
|
+
type: PROCESS_FINISHED,
|
|
32
|
+
id: id,
|
|
33
|
+
success: success,
|
|
34
|
+
message: message,
|
|
35
|
+
timeout: timeout
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function clearProcess(id) {
|
|
39
|
+
return {
|
|
40
|
+
type: CLEAR_PROCESS,
|
|
41
|
+
id: id
|
|
42
|
+
};
|
|
43
|
+
}
|
package/actions/redlining.js
CHANGED
|
@@ -4,4 +4,21 @@
|
|
|
4
4
|
*
|
|
5
5
|
* This source code is licensed under the BSD-style license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import ReducerIndex from '../reducers/index';
|
|
10
|
+
import redliningReducer from '../reducers/redlining';
|
|
11
|
+
ReducerIndex.register("redlining", redliningReducer);
|
|
12
|
+
export var CHANGE_REDLINING_STATE = 'CHANGE_REDLINING_STATE';
|
|
13
|
+
export var RESET_REDLINING_STATE = 'RESET_REDLINING_STATE';
|
|
14
|
+
export function changeRedliningState(redliningState) {
|
|
15
|
+
return {
|
|
16
|
+
type: CHANGE_REDLINING_STATE,
|
|
17
|
+
data: redliningState
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export function resetRedliningState() {
|
|
21
|
+
return {
|
|
22
|
+
type: RESET_REDLINING_STATE
|
|
23
|
+
};
|
|
24
|
+
}
|