@open-pioneer/map-navigation 0.9.0 → 0.10.0-dev.20250324141112

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 (3) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +10 -8
  3. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @open-pioneer/map-navigation
2
2
 
3
+ ## 0.10.0-dev.20250324141112
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
+ - Updated dependencies [193068a]
25
+ - @open-pioneer/map@0.10.0-dev.20250324141112
26
+ - @open-pioneer/map-ui-components@0.10.0-dev.20250324141112
27
+
3
28
  ## 0.9.0
4
29
 
5
30
  ### Minor Changes
package/README.md CHANGED
@@ -10,25 +10,27 @@ This package provides a collection of the following map navigation controls:
10
10
 
11
11
  ### Initial extent
12
12
 
13
- To integrate the component in your app, insert the following snippet and reference a map ID:
13
+ To integrate the component in your app, insert the following snippet (and reference a map):
14
14
 
15
15
  ```jsx
16
- <InitialExtent mapId="map_id" />
16
+ <InitialExtent
17
+ map={map}
18
+ /> /* instead of passing the map, the `DefaultMapProvider` can alternatively be used */
17
19
  ```
18
20
 
19
21
  ### Zoom
20
22
 
21
- To integrate the component in your app, insert the following snippet and reference a map ID:
23
+ To integrate the component in your app, insert the following snippet (and reference a map):
22
24
 
23
25
  ```jsx
24
- <ZoomIn mapId="map_id" />
25
- <ZoomOut mapId="map_id" />
26
+ <ZoomIn map={map} /> /* instead of passing the map, the `DefaultMapProvider` can alternatively be used */
27
+ <ZoomOut map={map} />
26
28
  ```
27
29
 
28
30
  You can also use the generic `Zoom` component:
29
31
 
30
32
  ```jsx
31
- <Zoom mapId="map_id" zoomDirection="in" />
33
+ <Zoom map={map} zoomDirection="in" />
32
34
  ```
33
35
 
34
36
  ### View history forward and backward
@@ -36,8 +38,8 @@ You can also use the generic `Zoom` component:
36
38
  To integrate the component in your app, insert the following snippet and reference a view Model:
37
39
 
38
40
  ```jsx
39
- <HistoryBackward mapId="map_id" />
40
- <HistoryForward mapId="map_id" />
41
+ <HistoryBackward map={map} /> /* instead of passing the map, the `DefaultMapProvider` can alternatively be used */
42
+ <HistoryForward map={map} />
41
43
  ```
42
44
 
43
45
  #### Limitations
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@open-pioneer/map-navigation",
4
- "version": "0.9.0",
4
+ "version": "0.10.0-dev.20250324141112",
5
5
  "description": "This package provides a collection of map navigation controls.",
6
6
  "keywords": [
7
7
  "open-pioneer-trails"
@@ -23,8 +23,8 @@
23
23
  "ol": "^10.4.0",
24
24
  "react": "^19.0.0",
25
25
  "react-icons": "^5.3.0",
26
- "@open-pioneer/map-ui-components": "^0.9.0",
27
- "@open-pioneer/map": "^0.9.0"
26
+ "@open-pioneer/map": "^0.10.0-dev.20250324141112",
27
+ "@open-pioneer/map-ui-components": "^0.10.0-dev.20250324141112"
28
28
  },
29
29
  "exports": {
30
30
  "./package.json": "./package.json",