@open-pioneer/scale-setter 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 +32 -0
- package/README.md +5 -3
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @open-pioneer/scale-setter
|
|
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
|
@@ -4,10 +4,12 @@ This package provides a UI component to change the scale of the map.
|
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
|
-
To integrate the scale-setter into your app, insert the following snippet and reference a map
|
|
7
|
+
To integrate the scale-setter into your app, insert the following snippet (and reference a map):
|
|
8
8
|
|
|
9
9
|
```jsx
|
|
10
|
-
<ScaleSetter
|
|
10
|
+
<ScaleSetter
|
|
11
|
+
map={map}
|
|
12
|
+
/> /* instead of passing the map, the `DefaultMapProvider` can alternatively be used */
|
|
11
13
|
```
|
|
12
14
|
|
|
13
15
|
To configure custom scales, provide the optional `scales` prop (a `number[]`) to the component.
|
|
@@ -15,7 +17,7 @@ By default, scale options are taken from the [standard levels by AdV](https://ww
|
|
|
15
17
|
|
|
16
18
|
```jsx
|
|
17
19
|
<ScaleSetter
|
|
18
|
-
|
|
20
|
+
map={map}
|
|
19
21
|
scales={[
|
|
20
22
|
336, 671, 1343, 2685, 5371, 10741, 21478, 42941, 85819, 171384, 341757, 679450, 1342389,
|
|
21
23
|
2651369
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@open-pioneer/scale-setter",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.10.0",
|
|
5
5
|
"description": "This package provides a UI component to change the scale of the map.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"open-pioneer-trails"
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@chakra-ui/icons": "^2.2.4",
|
|
18
|
-
"@open-pioneer/chakra-integration": "^3.
|
|
19
|
-
"@open-pioneer/react-utils": "^3.
|
|
20
|
-
"@open-pioneer/runtime": "^3.
|
|
21
|
-
"@open-pioneer/reactivity": "^3.
|
|
22
|
-
"ol": "^10.
|
|
23
|
-
"react": "^19.
|
|
24
|
-
"@open-pioneer/map": "^0.
|
|
18
|
+
"@open-pioneer/chakra-integration": "^3.1.0",
|
|
19
|
+
"@open-pioneer/react-utils": "^3.1.0",
|
|
20
|
+
"@open-pioneer/runtime": "^3.1.0",
|
|
21
|
+
"@open-pioneer/reactivity": "^3.1.0",
|
|
22
|
+
"ol": "^10.5.0",
|
|
23
|
+
"react": "^19.1.0",
|
|
24
|
+
"@open-pioneer/map": "^0.10.0"
|
|
25
25
|
},
|
|
26
26
|
"exports": {
|
|
27
27
|
"./package.json": "./package.json",
|