diff --git a/src/LayerTree/LayerTreeNode/LayerTreeNode.tsx b/src/LayerTree/LayerTreeNode/LayerTreeNode.tsx index 6b37eebd16..4556ce1235 100644 --- a/src/LayerTree/LayerTreeNode/LayerTreeNode.tsx +++ b/src/LayerTree/LayerTreeNode/LayerTreeNode.tsx @@ -29,6 +29,7 @@ class LayerTreeNode extends React.PureComponent { const { inResolutionRange, children, + icon, ...passThroughProps } = this.props; diff --git a/src/Panel/TimeLayerSliderPanel/TimeLayerSliderPanel.tsx b/src/Panel/TimeLayerSliderPanel/TimeLayerSliderPanel.tsx index 7f4ef24878..425b3385d2 100644 --- a/src/Panel/TimeLayerSliderPanel/TimeLayerSliderPanel.tsx +++ b/src/Panel/TimeLayerSliderPanel/TimeLayerSliderPanel.tsx @@ -8,6 +8,8 @@ import OlImageWMS from 'ol/source/ImageWMS'; import OlTileWMS from 'ol/source/TileWMS'; import { getUid } from 'ol'; +import dayjs from 'dayjs'; + import _isFinite from 'lodash/isFinite'; import _isEqual from 'lodash/isEqual'; @@ -437,7 +439,7 @@ export class TimeLayerSliderPanel extends React.Component { if (!range) { return; @@ -446,7 +448,8 @@ export class TimeLayerSliderPanel extends React.Component }