@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.
- package/README.md +0 -0
- package/index.esm.d.ts +0 -0
- package/index.esm.js +9 -5
- package/package.json +1 -1
- package/src/index.d.ts +0 -0
- package/src/lib/components/CanvasComponent/CanvasComponent.d.ts +0 -0
- package/src/lib/components/CanvasComponent/CanvasComponent.spec.d.ts +0 -0
- package/src/lib/components/CanvasComponent/CanvasComponentDynamic.stories.d.ts +0 -0
- package/src/lib/components/CanvasComponent/CanvasComponentStatic.stories.d.ts +0 -0
- package/src/lib/components/CanvasComponent/index.d.ts +0 -0
- package/src/lib/components/Legend/Legend.d.ts +0 -0
- package/src/lib/components/Legend/Legend.spec.d.ts +0 -0
- package/src/lib/components/Legend/Legend.stories.d.ts +0 -0
- package/src/lib/components/Legend/LegendDialog.d.ts +0 -0
- package/src/lib/components/Legend/LegendDialog.spec.d.ts +0 -0
- package/src/lib/components/Legend/LegendLayout.d.ts +0 -0
- package/src/lib/components/Legend/LegendLayout.spec.d.ts +0 -0
- package/src/lib/components/Legend/index.d.ts +0 -0
- package/src/lib/components/MapControls/MapControlButton.d.ts +0 -0
- package/src/lib/components/MapControls/MapControlButton.spec.d.ts +0 -0
- package/src/lib/components/MapControls/MapControls.d.ts +0 -0
- package/src/lib/components/MapControls/MapControls.spec.d.ts +0 -0
- package/src/lib/components/MapControls/ZoomControls.d.ts +0 -0
- package/src/lib/components/MapControls/ZoomControls.spec.d.ts +0 -0
- package/src/lib/components/MapControls/index.d.ts +0 -0
- package/src/lib/components/MapDraw/MapDraw.d.ts +0 -0
- package/src/lib/components/MapDraw/MapDraw.spec.d.ts +0 -0
- package/src/lib/components/MapDraw/MapDraw.stories.d.ts +0 -0
- package/src/lib/components/MapDraw/MapDrawContainer.d.ts +0 -0
- package/src/lib/components/MapDraw/MapDrawContainer.spec.d.ts +0 -0
- package/src/lib/components/MapDraw/geojsonShapes.d.ts +0 -0
- package/src/lib/components/MapDraw/index.d.ts +0 -0
- package/src/lib/components/MapDraw/mapDrawUtils.d.ts +0 -0
- package/src/lib/components/MapDraw/mapDrawUtils.spec.d.ts +0 -0
- package/src/lib/components/MapDraw/storyComponents/EditModeButton.d.ts +0 -0
- package/src/lib/components/MapDraw/storyComponents/FeatureInfo.d.ts +0 -0
- package/src/lib/components/MapDraw/storyComponents/FeatureInfoHTML.d.ts +0 -0
- package/src/lib/components/MapDraw/storyComponents/FeatureLayers.d.ts +0 -0
- package/src/lib/components/MapDraw/storyComponents/GeoJSONTextField.d.ts +0 -0
- package/src/lib/components/MapDraw/storyComponents/IntersectionSelect.d.ts +0 -0
- package/src/lib/components/MapDraw/storyComponents/MapDrawGeoJSON.d.ts +0 -0
- package/src/lib/components/MapDraw/storyComponents/StoryLayout.d.ts +0 -0
- package/src/lib/components/MapDraw/storyComponents/Synops.d.ts +0 -0
- package/src/lib/components/MapDraw/storyComponents/ToolButton.d.ts +0 -0
- package/src/lib/components/MapDraw/storyComponents/geojsonExamples.d.ts +0 -0
- package/src/lib/components/MapDraw/storyComponents/index.d.ts +0 -0
- package/src/lib/components/MapDraw/storyComponents/storyUtils.d.ts +0 -0
- package/src/lib/components/MapDrawTool/MapDrawTool.stories.d.ts +0 -0
- package/src/lib/components/MapDrawTool/MapDrawToolDoubleControls.stories.d.ts +0 -0
- package/src/lib/components/MapDrawTool/MapDrawToolIntersection.stories.d.ts +0 -0
- package/src/lib/components/MapDrawTool/index.d.ts +0 -0
- package/src/lib/components/MapDrawTool/types.d.ts +0 -0
- package/src/lib/components/MapDrawTool/useMapDrawTool.d.ts +0 -0
- package/src/lib/components/MapDrawTool/useMapDrawTool.spec.d.ts +0 -0
- package/src/lib/components/MapTime/MapTime.d.ts +0 -0
- package/src/lib/components/MapTime/MapTime.spec.d.ts +0 -0
- package/src/lib/components/MapTime/index.d.ts +0 -0
- package/src/lib/components/MapView/MapView.Error.stories.d.ts +0 -0
- package/src/lib/components/MapView/MapView.MapPin.stories.d.ts +0 -0
- package/src/lib/components/MapView/MapView.Passive.stories.d.ts +0 -0
- package/src/lib/components/MapView/MapView.RadarAnimation.stories.d.ts +0 -0
- package/src/lib/components/MapView/MapView.RadarData.stories.d.ts +0 -0
- package/src/lib/components/MapView/MapView.SetProjectionBBox.stories.d.ts +0 -0
- package/src/lib/components/MapView/MapView.SetProjectionBBoxLocalState.stories.d.ts +0 -0
- package/src/lib/components/MapView/MapView.ShowLayerInfo.stories.d.ts +0 -0
- package/src/lib/components/MapView/MapView.d.ts +0 -0
- package/src/lib/components/MapView/MapView.spec.d.ts +0 -0
- package/src/lib/components/MapView/MapViewLayer.d.ts +0 -0
- package/src/lib/components/MapView/index.d.ts +0 -0
- package/src/lib/components/MapWarning/MapWarningProperties.d.ts +0 -0
- package/src/lib/components/MapWarning/MapWarningProperties.spec.d.ts +0 -0
- package/src/lib/components/MapWarning/index.d.ts +0 -0
- package/src/lib/components/ReactMapView/ReactMapView.d.ts +0 -0
- package/src/lib/components/ReactMapView/ReactMapView.spec.d.ts +0 -0
- package/src/lib/components/ReactMapView/ReactMapViewLayer.d.ts +0 -0
- package/src/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +0 -0
- package/src/lib/components/ReactMapView/ReactMapViewParseLayer.spec.d.ts +0 -0
- package/src/lib/components/ReactMapView/index.d.ts +0 -0
- package/src/lib/components/ReactMapView/types.d.ts +1 -0
- package/src/lib/components/ReactMapView/utils.d.ts +0 -0
- package/src/lib/components/ReactMapView/utils.spec.d.ts +0 -0
- package/src/lib/components/index.d.ts +0 -0
- package/src/lib/index.d.ts +0 -0
- package/src/lib/layers/defaultLayers.d.ts +0 -0
- package/src/lib/layers/defaultStorybookSettings.d.ts +0 -0
- package/src/lib/layers/index.d.ts +0 -0
- package/src/lib/layers/publicLayers.d.ts +0 -0
- 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,
|
|
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.
|
|
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
|
-
|
|
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
|
-
|
|
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
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
|
|
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
|
|
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
|
package/src/lib/index.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|