@opengeoweb/webmap-react 8.0.0 → 8.2.0

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 (88) hide show
  1. package/README.md +0 -0
  2. package/index.esm.d.ts +0 -0
  3. package/index.esm.js +9 -5
  4. package/package.json +1 -1
  5. package/src/index.d.ts +0 -0
  6. package/src/lib/components/CanvasComponent/CanvasComponent.d.ts +0 -0
  7. package/src/lib/components/CanvasComponent/CanvasComponent.spec.d.ts +0 -0
  8. package/src/lib/components/CanvasComponent/CanvasComponentDynamic.stories.d.ts +0 -0
  9. package/src/lib/components/CanvasComponent/CanvasComponentStatic.stories.d.ts +0 -0
  10. package/src/lib/components/CanvasComponent/index.d.ts +0 -0
  11. package/src/lib/components/Legend/Legend.d.ts +0 -0
  12. package/src/lib/components/Legend/Legend.spec.d.ts +0 -0
  13. package/src/lib/components/Legend/Legend.stories.d.ts +0 -0
  14. package/src/lib/components/Legend/LegendDialog.d.ts +0 -0
  15. package/src/lib/components/Legend/LegendDialog.spec.d.ts +0 -0
  16. package/src/lib/components/Legend/LegendLayout.d.ts +0 -0
  17. package/src/lib/components/Legend/LegendLayout.spec.d.ts +0 -0
  18. package/src/lib/components/Legend/index.d.ts +0 -0
  19. package/src/lib/components/MapControls/MapControlButton.d.ts +0 -0
  20. package/src/lib/components/MapControls/MapControlButton.spec.d.ts +0 -0
  21. package/src/lib/components/MapControls/MapControls.d.ts +0 -0
  22. package/src/lib/components/MapControls/MapControls.spec.d.ts +0 -0
  23. package/src/lib/components/MapControls/ZoomControls.d.ts +0 -0
  24. package/src/lib/components/MapControls/ZoomControls.spec.d.ts +0 -0
  25. package/src/lib/components/MapControls/index.d.ts +0 -0
  26. package/src/lib/components/MapDraw/MapDraw.d.ts +0 -0
  27. package/src/lib/components/MapDraw/MapDraw.spec.d.ts +0 -0
  28. package/src/lib/components/MapDraw/MapDraw.stories.d.ts +0 -0
  29. package/src/lib/components/MapDraw/MapDrawContainer.d.ts +0 -0
  30. package/src/lib/components/MapDraw/MapDrawContainer.spec.d.ts +0 -0
  31. package/src/lib/components/MapDraw/geojsonShapes.d.ts +0 -0
  32. package/src/lib/components/MapDraw/index.d.ts +0 -0
  33. package/src/lib/components/MapDraw/mapDrawUtils.d.ts +0 -0
  34. package/src/lib/components/MapDraw/mapDrawUtils.spec.d.ts +0 -0
  35. package/src/lib/components/MapDraw/storyComponents/EditModeButton.d.ts +0 -0
  36. package/src/lib/components/MapDraw/storyComponents/FeatureInfo.d.ts +0 -0
  37. package/src/lib/components/MapDraw/storyComponents/FeatureInfoHTML.d.ts +0 -0
  38. package/src/lib/components/MapDraw/storyComponents/FeatureLayers.d.ts +0 -0
  39. package/src/lib/components/MapDraw/storyComponents/GeoJSONTextField.d.ts +0 -0
  40. package/src/lib/components/MapDraw/storyComponents/IntersectionSelect.d.ts +0 -0
  41. package/src/lib/components/MapDraw/storyComponents/MapDrawGeoJSON.d.ts +0 -0
  42. package/src/lib/components/MapDraw/storyComponents/StoryLayout.d.ts +0 -0
  43. package/src/lib/components/MapDraw/storyComponents/Synops.d.ts +0 -0
  44. package/src/lib/components/MapDraw/storyComponents/ToolButton.d.ts +0 -0
  45. package/src/lib/components/MapDraw/storyComponents/geojsonExamples.d.ts +0 -0
  46. package/src/lib/components/MapDraw/storyComponents/index.d.ts +0 -0
  47. package/src/lib/components/MapDraw/storyComponents/storyUtils.d.ts +0 -0
  48. package/src/lib/components/MapDrawTool/MapDrawTool.stories.d.ts +0 -0
  49. package/src/lib/components/MapDrawTool/MapDrawToolDoubleControls.stories.d.ts +0 -0
  50. package/src/lib/components/MapDrawTool/MapDrawToolIntersection.stories.d.ts +0 -0
  51. package/src/lib/components/MapDrawTool/index.d.ts +0 -0
  52. package/src/lib/components/MapDrawTool/types.d.ts +0 -0
  53. package/src/lib/components/MapDrawTool/useMapDrawTool.d.ts +0 -0
  54. package/src/lib/components/MapDrawTool/useMapDrawTool.spec.d.ts +0 -0
  55. package/src/lib/components/MapTime/MapTime.d.ts +0 -0
  56. package/src/lib/components/MapTime/MapTime.spec.d.ts +0 -0
  57. package/src/lib/components/MapTime/index.d.ts +0 -0
  58. package/src/lib/components/MapView/MapView.Error.stories.d.ts +0 -0
  59. package/src/lib/components/MapView/MapView.MapPin.stories.d.ts +0 -0
  60. package/src/lib/components/MapView/MapView.Passive.stories.d.ts +0 -0
  61. package/src/lib/components/MapView/MapView.RadarAnimation.stories.d.ts +0 -0
  62. package/src/lib/components/MapView/MapView.RadarData.stories.d.ts +0 -0
  63. package/src/lib/components/MapView/MapView.SetProjectionBBox.stories.d.ts +0 -0
  64. package/src/lib/components/MapView/MapView.SetProjectionBBoxLocalState.stories.d.ts +0 -0
  65. package/src/lib/components/MapView/MapView.ShowLayerInfo.stories.d.ts +0 -0
  66. package/src/lib/components/MapView/MapView.d.ts +0 -0
  67. package/src/lib/components/MapView/MapView.spec.d.ts +0 -0
  68. package/src/lib/components/MapView/MapViewLayer.d.ts +0 -0
  69. package/src/lib/components/MapView/index.d.ts +0 -0
  70. package/src/lib/components/MapWarning/MapWarningProperties.d.ts +0 -0
  71. package/src/lib/components/MapWarning/MapWarningProperties.spec.d.ts +0 -0
  72. package/src/lib/components/MapWarning/index.d.ts +0 -0
  73. package/src/lib/components/ReactMapView/ReactMapView.d.ts +0 -0
  74. package/src/lib/components/ReactMapView/ReactMapView.spec.d.ts +0 -0
  75. package/src/lib/components/ReactMapView/ReactMapViewLayer.d.ts +0 -0
  76. package/src/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +0 -0
  77. package/src/lib/components/ReactMapView/ReactMapViewParseLayer.spec.d.ts +0 -0
  78. package/src/lib/components/ReactMapView/index.d.ts +0 -0
  79. package/src/lib/components/ReactMapView/types.d.ts +1 -0
  80. package/src/lib/components/ReactMapView/utils.d.ts +0 -0
  81. package/src/lib/components/ReactMapView/utils.spec.d.ts +0 -0
  82. package/src/lib/components/index.d.ts +0 -0
  83. package/src/lib/index.d.ts +0 -0
  84. package/src/lib/layers/defaultLayers.d.ts +0 -0
  85. package/src/lib/layers/defaultStorybookSettings.d.ts +0 -0
  86. package/src/lib/layers/index.d.ts +0 -0
  87. package/src/lib/layers/publicLayers.d.ts +0 -0
  88. package/src/lib/layers/publicServices.d.ts +0 -0
package/README.md CHANGED
File without changes
package/index.esm.d.ts CHANGED
File without changes
package/index.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { Component, forwardRef, useContext, Children, isValidElement, cloneElement, useRef, useState, useEffect, useCallback, createRef, PureComponent } from 'react';
3
- import { legendImageStore, WMImageEventType, webmapUtils, getLegendGraphicURLForLayer, getMapImageStore, LayerType, WMBBOX, debug, DebugType, WMLayer, WMJSMap, tilesettings } from '@opengeoweb/webmap';
3
+ import { legendImageStore, WMImageEventType, webmapUtils, getLegendGraphicURLForLayer, getMapImageStore, LayerType, WMBBOX, debugLogger, DebugType, WMLayer, WMJSMap, tilesettings } from '@opengeoweb/webmap';
4
4
  import { CustomTooltip, ToolContainerDraggable, dateUtils, CustomIconButton } from '@opengeoweb/shared';
5
5
  import { jsx, jsxs } from 'react/jsx-runtime';
6
6
  import * as ReactDOM from 'react-dom';
@@ -3889,7 +3889,8 @@ function useControlled({
3889
3889
  }
3890
3890
 
3891
3891
  /**
3892
- * https://github.com/facebook/react/issues/14099#issuecomment-440013892
3892
+ * Inspired by https://github.com/facebook/react/issues/14099#issuecomment-440013892
3893
+ * See RFC in https://github.com/reactjs/rfcs/pull/220
3893
3894
  */
3894
3895
 
3895
3896
  function useEventCallback(fn) {
@@ -7164,7 +7165,7 @@ process.env.NODE_ENV !== "production" ? GlobalStyles$2.propTypes = {
7164
7165
  } : void 0;
7165
7166
 
7166
7167
  /**
7167
- * @mui/styled-engine v5.14.8
7168
+ * @mui/styled-engine v5.14.10
7168
7169
  *
7169
7170
  * @license MIT
7170
7171
  * This source code is licensed under the MIT license found in the
@@ -54111,6 +54112,9 @@ class ReactMapView extends React.Component {
54111
54112
  wmjsMap.displayScaleBarInMap(props.showScaleBar !== false);
54112
54113
  needsRedraw = true;
54113
54114
  }
54115
+ if (!prevProps || prevProps.timestep !== props.timestep) {
54116
+ wmjsMap.timestepInMinutes = props.timestep;
54117
+ }
54114
54118
  /* Check map dimensions */
54115
54119
  if (!prevProps || prevProps.dimensions !== props.dimensions) {
54116
54120
  if (props.dimensions) {
@@ -54198,7 +54202,7 @@ class ReactMapView extends React.Component {
54198
54202
  console.warn('ReactWMJSLayer has a duplicate id', child);
54199
54203
  }
54200
54204
  } else {
54201
- debug(DebugType.Warning, 'ReactElement child ignored: has no props or id', child);
54205
+ debugLogger(DebugType.Warning, 'ReactElement child ignored: has no props or id', child);
54202
54206
  }
54203
54207
  }
54204
54208
  });
@@ -54343,7 +54347,7 @@ class ReactMapView extends React.Component {
54343
54347
  needsRedraw = true;
54344
54348
  }
54345
54349
  } else {
54346
- debug(DebugType.Warning, `MapView: Dimension does not exist, skipping ${child.props.name} :: ${dim.name} = ${dim.currentValue}`);
54350
+ debugLogger(DebugType.Warning, `MapView: Dimension does not exist, skipping ${child.props.name} :: ${dim.name} = ${dim.currentValue}`);
54347
54351
  }
54348
54352
  }
54349
54353
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/webmap-react",
3
- "version": "8.0.0",
3
+ "version": "8.2.0",
4
4
  "description": "GeoWeb react wrapper for webmap",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
package/src/index.d.ts CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -17,6 +17,7 @@ export interface ReactMapViewProps {
17
17
  passiveMap?: boolean;
18
18
  displayTimeInMap?: boolean;
19
19
  animationDelay?: number;
20
+ timestep?: number;
20
21
  dimensions?: Dimension[];
21
22
  onClick?: () => void;
22
23
  displayMapPin?: boolean;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes