@open-pioneer/coordinate-viewer 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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @open-pioneer/coordinate-viewer
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
+
3
27
  ## 0.9.0
4
28
 
5
29
  ### Minor Changes
package/README.md CHANGED
@@ -4,28 +4,28 @@ This package provides a UI component to show the current coordinates at the user
4
4
 
5
5
  ## Usage
6
6
 
7
- To integrate the coordinate viewer in your app, insert the following snippet and reference a map ID:
7
+ To integrate the coordinate viewer in your app, insert the following snippet (and reference a map):
8
8
 
9
9
  ```jsx
10
- <CoordinateViewer mapId="map_id" />
10
+ <CoordinateViewer map={map} />
11
11
  ```
12
12
 
13
13
  To define the number of decimal places shown, set the optional `precision` property:
14
14
 
15
15
  ```jsx
16
- <CoordinateViewer mapId="map_id" precision={2} />
16
+ <CoordinateViewer map={map} precision={2} />
17
17
  ```
18
18
 
19
19
  To show the coordinates in a specific projection, set the optional `displayProjectionCode` property:
20
20
 
21
21
  ```jsx
22
- <CoordinateViewer mapId="map_id" displayProjectionCode="EPSG:4326" />
22
+ <CoordinateViewer map={map} displayProjectionCode="EPSG:4326" />
23
23
  ```
24
24
 
25
25
  To show the coordinates in a specific coordinate format, set the optional `format` property (default: `decimal`):
26
26
 
27
27
  ```jsx
28
- <CoordinateViewer mapId="map_id" format="degree" />
28
+ <CoordinateViewer map={map} format="degree" />
29
29
  ```
30
30
 
31
31
  ## License
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@open-pioneer/coordinate-viewer",
4
- "version": "0.9.0",
4
+ "version": "0.10.0-dev.20250324141112",
5
5
  "description": "This package provides a UI component to show the current coordinates at the users current mouse position.",
6
6
  "keywords": [
7
7
  "open-pioneer-trails"
@@ -20,7 +20,7 @@
20
20
  "@open-pioneer/reactivity": "^3.0.0",
21
21
  "ol": "^10.4.0",
22
22
  "react": "^19.0.0",
23
- "@open-pioneer/map": "^0.9.0"
23
+ "@open-pioneer/map": "^0.10.0-dev.20250324141112"
24
24
  },
25
25
  "exports": {
26
26
  "./package.json": "./package.json",