Skip to content

Commit 2711a63

Browse files
dnlkochsimonseyock
authored andcommitted
fix: adjust to breaking changes in latest version of react-util
1 parent 74b7587 commit 2711a63

25 files changed

+50
-49
lines changed

src/BackgroundLayerChooser/BackgroundLayerChooser.example.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ The BackgroundLayerChooser
22

33
```jsx
44
import BackgroundLayerChooser from '@terrestris/react-geo/dist/BackgroundLayerChooser/BackgroundLayerChooser';
5+
import MapComponent from '@terrestris/react-util/dist/Components/MapComponent/MapComponent';
56
import MapContext from '@terrestris/react-util/dist/Context/MapContext/MapContext';
6-
import { useMap } from '@terrestris/react-util/dist/hooks/useMap';
7-
import MapComponent from '@terrestris/react-util/dist/Map/MapComponent/MapComponent';
7+
import { useMap } from '@terrestris/react-util/dist/Hooks/useMap/useMap';
88
import OlLayerTile from 'ol/layer/Tile';
99
import OlMap from 'ol/Map';
1010
import OlSourceOsm from 'ol/source/OSM';

src/BackgroundLayerChooser/BackgroundLayerChooser.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import {
77
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
88
import BackgroudLayerChooserBase, {
99
BackgroundLayerButtonProps
10-
} from '@terrestris/react-util/dist/BackgroundLayerChooser/BackgroundLayerChooser';
10+
} from '@terrestris/react-util/dist/Components/BackgroundLayerChooser/BackgroundLayerChooser';
1111
import {
1212
BackgroundLayerLoadingMaskProps
13-
} from '@terrestris/react-util/dist/BackgroundLayerPreview/BackgroundLayerPreview';
13+
} from '@terrestris/react-util/dist/Components/BackgroundLayerPreview/BackgroundLayerPreview';
1414
import Spin from 'antd/lib/spin';
1515
import OlLayerBase from 'ol/layer/Base';
1616
import OlLayer from 'ol/layer/Layer';

src/Button/CopyButton/CopyButton.example.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ This demonstrates the use of the CopyButton.
22

33
```jsx
44
import CopyButton from '@terrestris/react-geo/dist/Button/CopyButton/CopyButton';
5+
import MapComponent from '@terrestris/react-util/dist/Components/MapComponent/MapComponent';
56
import MapContext from '@terrestris/react-util/dist/Context/MapContext/MapContext'
6-
import MapComponent from '@terrestris/react-util/dist/Map/MapComponent/MapComponent';
77
import {DigitizeUtil} from '@terrestris/react-util/dist/Util/DigitizeUtil';
88
import OlFormatGeoJSON from 'ol/format/GeoJSON';
99
import OlLayerTile from 'ol/layer/Tile';

src/Button/CopyButton/CopyButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import AnimateUtil from '@terrestris/ol-util/dist/AnimateUtil/AnimateUtil';
2-
import useMap from '@terrestris/react-util/dist/hooks/useMap';
2+
import useMap from '@terrestris/react-util/dist/Hooks/useMap/useMap';
33
import { DigitizeUtil } from '@terrestris/react-util/dist/Util/DigitizeUtil';
44
import OlGeometry from 'ol/geom/Geometry';
55
import { SelectEvent as OlSelectEvent } from 'ol/interaction/Select';

src/Button/DeleteButton/DeleteButton.example.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ This demonstrates the use of the DeleteButton.
22

33
```jsx
44
import { DeleteButton } from '@terrestris/react-geo/dist/Button/DeleteButton/DeleteButton';
5+
import MapComponent from '@terrestris/react-util/dist/Components/MapComponent/MapComponent';
56
import MapContext from '@terrestris/react-util/dist/Context/MapContext/MapContext'
6-
import MapComponent from '@terrestris/react-util/dist/Map/MapComponent/MapComponent';
77
import { DigitizeUtil } from '@terrestris/react-util/dist/Util/DigitizeUtil';
88
import OlFormatGeoJSON from 'ol/format/GeoJSON';
99
import OlLayerTile from 'ol/layer/Tile';

src/Button/DeleteButton/DeleteButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import useMap from '@terrestris/react-util/dist/hooks/useMap';
1+
import useMap from '@terrestris/react-util/dist/Hooks/useMap/useMap';
22
import { DigitizeUtil } from '@terrestris/react-util/dist/Util/DigitizeUtil';
33
import OlGeometry from 'ol/geom/Geometry';
44
import { SelectEvent as OlSelectEvent } from 'ol/interaction/Select';

src/Button/DrawButton/DrawButton.example.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ This demonstrates the use of the DrawButton.
33
```jsx
44
import DrawButton from '@terrestris/react-geo/dist/Button/DrawButton/DrawButton';
55
import ToggleGroup from '@terrestris/react-geo/dist/Button/ToggleGroup/ToggleGroup';
6+
import MapComponent from '@terrestris/react-util/dist/Components/MapComponent/MapComponent';
67
import MapContext from '@terrestris/react-util/dist/Context/MapContext/MapContext'
7-
import MapComponent from '@terrestris/react-util/dist/Map/MapComponent/MapComponent';
88
import OlLayerTile from 'ol/layer/Tile';
99
import OlMap from 'ol/Map';
1010
import { fromLonLat } from 'ol/proj';

src/Button/DrawButton/DrawButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import useMap from '@terrestris/react-util/dist/hooks/useMap';
1+
import useMap from '@terrestris/react-util/dist/Hooks/useMap/useMap';
22
import { DigitizeUtil } from '@terrestris/react-util/dist/Util/DigitizeUtil';
33
import { EventsKey } from 'ol/events';
44
import * as OlEventConditions from 'ol/events/condition';

src/Button/ModifyButton/ModifyButton.example.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ This demonstrates the use of the ModifyButton.
22

33
```jsx
44
import {ModifyButton} from '@terrestris/react-geo/dist/Button/ModifyButton/ModifyButton';
5+
import MapComponent from '@terrestris/react-util/dist/Components/MapComponent/MapComponent';
56
import MapContext from '@terrestris/react-util/dist/Context/MapContext/MapContext'
6-
import MapComponent from '@terrestris/react-util/dist/Map/MapComponent/MapComponent';
77
import {DigitizeUtil} from '@terrestris/react-util/dist/Util/DigitizeUtil';
88
import OlFormatGeoJSON from 'ol/format/GeoJSON';
99
import OlLayerTile from 'ol/layer/Tile';

src/Button/ModifyButton/ModifyButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import useMap from '@terrestris/react-util/dist/hooks/useMap';
1+
import useMap from '@terrestris/react-util/dist/Hooks/useMap/useMap';
22
import { DigitizeUtil } from '@terrestris/react-util/dist/Util/DigitizeUtil';
33
import OlCollection from 'ol/Collection';
44
import { singleClick } from 'ol/events/condition';

0 commit comments

Comments
 (0)