qwc2 2025.10.13 → 2025.10.14

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