@open-pioneer/overview-map 0.9.0 → 0.10.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/CHANGELOG.md CHANGED
@@ -1,5 +1,37 @@
1
1
  # @open-pioneer/overview-map
2
2
 
3
+ ## 0.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 193068a: Deprecate the `mapId` property on React components.
8
+ Use the `MapModel` directly instead to pass a reference to the map.
9
+
10
+ Example:
11
+
12
+ ```tsx
13
+ // Default map for entire component tree
14
+ <DefaultMapProvider map={mapModel}>
15
+ <Toc />
16
+ </DefaultMapProvider>
17
+
18
+ // Map for specific component
19
+ <Toc map={mapModel} />
20
+ ```
21
+
22
+ ### Patch Changes
23
+
24
+ - cd1435b: Update ol to 10.5.0
25
+ - 032eed7: Bump dependencies.
26
+ - cd1435b: Update to react 19.1.0
27
+ - Updated dependencies [2bafdad]
28
+ - Updated dependencies [cd1435b]
29
+ - Updated dependencies [193068a]
30
+ - Updated dependencies [032eed7]
31
+ - Updated dependencies [cd1435b]
32
+ - Updated dependencies [7558df4]
33
+ - @open-pioneer/map@0.10.0
34
+
3
35
  ## 0.9.0
4
36
 
5
37
  ### Minor Changes
package/README.md CHANGED
@@ -5,11 +5,11 @@ This helps the user to better understand the current map view in a larger scale
5
5
 
6
6
  ## Usage
7
7
 
8
- To integrate the overview map in your app, add the component with a map ID and configure a layer to be shown in the overview map:
8
+ To integrate the overview map in your app, add the component (with a map) and configure a layer to be shown in the overview map:
9
9
 
10
10
  ```jsx
11
11
  const overviewMapLayer = ... // an OpenLayers layer, see below
12
- <OverviewMap mapId="map_id" olLayer={overviewMapLayer} />;
12
+ <OverviewMap map={map} olLayer={overviewMapLayer} />; /* instead of passing the map, the `DefaultMapProvider` can alternatively be used */
13
13
  ```
14
14
 
15
15
  ### Configuring the layer
@@ -29,7 +29,7 @@ const overviewMapLayer = useMemo(
29
29
 
30
30
  // Later ...
31
31
 
32
- <OverviewMap mapId="map_id" olLayer={overviewMapLayer} />;
32
+ <OverviewMap map={map} olLayer={overviewMapLayer} />;
33
33
  ```
34
34
 
35
35
  > NOTE: Keep in mind that an OpenLayers `Layer` object should only be used from (at most) a single map.
@@ -43,7 +43,7 @@ To override the default size, use the `height` and `width` properties.
43
43
  Both properties support the usual values supported by Chakra UI:
44
44
 
45
45
  ```jsx
46
- <OverviewMap mapId="map_id" olLayer={overviewMapLayer} height="300px" width="400px" />
46
+ <OverviewMap map={map} olLayer={overviewMapLayer} height="300px" width="400px" />
47
47
  ```
48
48
 
49
49
  ## License
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@open-pioneer/overview-map",
4
- "version": "0.9.0",
4
+ "version": "0.10.0",
5
5
  "description": "This package offers a UI component with which an overview map can be integrated.",
6
6
  "keywords": [
7
7
  "open-pioneer-trails"
@@ -14,12 +14,12 @@
14
14
  "directory": "src/packages/overview-map"
15
15
  },
16
16
  "dependencies": {
17
- "@open-pioneer/chakra-integration": "^3.0.0",
18
- "@open-pioneer/react-utils": "^3.0.0",
19
- "@open-pioneer/runtime": "^3.0.0",
20
- "ol": "^10.4.0",
21
- "react": "^19.0.0",
22
- "@open-pioneer/map": "^0.9.0"
17
+ "@open-pioneer/chakra-integration": "^3.1.0",
18
+ "@open-pioneer/react-utils": "^3.1.0",
19
+ "@open-pioneer/runtime": "^3.1.0",
20
+ "ol": "^10.5.0",
21
+ "react": "^19.1.0",
22
+ "@open-pioneer/map": "^0.10.0"
23
23
  },
24
24
  "exports": {
25
25
  "./package.json": "./package.json",