@open-pioneer/coordinate-viewer 1.5.0-dev.20260917081843 → 1.5.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 +22 -25
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
# @open-pioneer/coordinate-viewer
|
|
2
2
|
|
|
3
|
-
## 1.5.0
|
|
3
|
+
## 1.5.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
7
|
- f790fda: Update to Chakra 3.37.0
|
|
8
|
+
- a186f5d: Update core packages to 4.8.0.
|
|
8
9
|
|
|
9
10
|
### Patch Changes
|
|
10
11
|
|
|
@@ -76,17 +77,17 @@
|
|
|
76
77
|
- 193068a: Deprecate the `mapId` property on React components.
|
|
77
78
|
Use the `MapModel` directly instead to pass a reference to the map.
|
|
78
79
|
|
|
79
|
-
|
|
80
|
+
Example:
|
|
80
81
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
```tsx
|
|
83
|
+
// Default map for entire component tree
|
|
84
|
+
<DefaultMapProvider map={mapModel}>
|
|
85
|
+
<Toc />
|
|
86
|
+
</DefaultMapProvider>
|
|
86
87
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
// Map for specific component
|
|
89
|
+
<Toc map={mapModel} />
|
|
90
|
+
```
|
|
90
91
|
|
|
91
92
|
### Patch Changes
|
|
92
93
|
|
|
@@ -105,9 +106,9 @@
|
|
|
105
106
|
### Minor Changes
|
|
106
107
|
|
|
107
108
|
- 2fa8020: Update trails core package dependencies.
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
- Also updates Chakra UI to the latest 2.x version and Chakra React Select to version 5.
|
|
110
|
+
- Removes any obsolete references to `@chakra-ui/system`.
|
|
111
|
+
This dependency seems to be no longer required and may lead to duplicate packages in your dependency tree.
|
|
111
112
|
|
|
112
113
|
### Patch Changes
|
|
113
114
|
|
|
@@ -126,16 +127,16 @@
|
|
|
126
127
|
- 583f1d6: The `mapId` or `map` properties are now optional on individual components.
|
|
127
128
|
You can use the `DefaultMapProvider` to configure an implicit default value.
|
|
128
129
|
|
|
129
|
-
|
|
130
|
+
Note that configuring _neither_ a default _nor_ an explicit `map` or `mapId` will trigger a runtime error.
|
|
130
131
|
|
|
131
132
|
- 583f1d6: All UI components in this project now accept the `mapId` (a `string`) _or_ the `map` (a `MapModel`) directly.
|
|
132
133
|
- a8b3449: Switch to a new versioning strategy.
|
|
133
134
|
From now on, packages released by this repository share a common version number.
|
|
134
135
|
- 6b59779: Added option to display geographic coordinates in angle format (DMS) in CoordinateViewer:
|
|
135
136
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
```jsx
|
|
138
|
+
<CoordinateViewer mapId="map_id" format="degree" />
|
|
139
|
+
```
|
|
139
140
|
|
|
140
141
|
- 900eb11: Update dependencies.
|
|
141
142
|
|
|
@@ -179,15 +180,11 @@
|
|
|
179
180
|
|
|
180
181
|
- 66f5733: add optional property for display coordinate projection
|
|
181
182
|
|
|
182
|
-
|
|
183
|
+
example (show WGS84 coordinates on display):
|
|
183
184
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
precision={2}
|
|
188
|
-
displayProjectionCode="EPSG:4326"
|
|
189
|
-
/>
|
|
190
|
-
```
|
|
185
|
+
```jsx
|
|
186
|
+
<CoordinateViewer mapId={MAP_ID} precision={2} displayProjectionCode="EPSG:4326" />
|
|
187
|
+
```
|
|
191
188
|
|
|
192
189
|
## 0.3.0
|
|
193
190
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@open-pioneer/coordinate-viewer",
|
|
4
|
-
"version": "1.5.0
|
|
4
|
+
"version": "1.5.0",
|
|
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"
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@chakra-ui/react": "^3.37.0",
|
|
18
|
-
"@open-pioneer/map": "1.5.0
|
|
19
|
-
"@open-pioneer/react-utils": "4.8.0
|
|
20
|
-
"@open-pioneer/reactivity": "4.8.0
|
|
21
|
-
"@open-pioneer/runtime": "4.8.0
|
|
18
|
+
"@open-pioneer/map": "1.5.0",
|
|
19
|
+
"@open-pioneer/react-utils": "^4.8.0",
|
|
20
|
+
"@open-pioneer/reactivity": "^4.8.0",
|
|
21
|
+
"@open-pioneer/runtime": "^4.8.0",
|
|
22
22
|
"ol": "^10.10.0",
|
|
23
23
|
"react": "^19.3.0"
|
|
24
24
|
},
|