@open-pioneer/legend 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 +35 -34
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
# @open-pioneer/legend
|
|
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
|
|
|
@@ -57,26 +58,26 @@
|
|
|
57
58
|
|
|
58
59
|
- 1723382: Introduce `listMode` for layer legend configurations:
|
|
59
60
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
61
|
+
```typescript
|
|
62
|
+
//sublayer with legend configuration
|
|
63
|
+
const internalLayer = new SimpleLayer({
|
|
64
|
+
id: "layer1",
|
|
65
|
+
title: "layer 1",
|
|
66
|
+
olLayer: myOlLayer,
|
|
67
|
+
visible: true,
|
|
68
|
+
attributes: {
|
|
69
|
+
legend: {
|
|
70
|
+
listMode: "show"
|
|
71
|
+
} satisfies LegendItemAttributes
|
|
72
|
+
},
|
|
73
|
+
sublayers: [
|
|
74
|
+
{
|
|
75
|
+
name: "sublayer1",
|
|
76
|
+
title: "Sub Layer 1"
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
});
|
|
80
|
+
```
|
|
80
81
|
|
|
81
82
|
- 2702df4: A layer's `internal` property is now respected by the Legend widget. If a layer is marked as internal (`internal` is `true`) no legend entry is displayed for this layer even if the legend is configured in the layer attributes.
|
|
82
83
|
- 2732052: Icons have been changed to unify the appearance of the components. Preferably, Lucide react-icons are used.
|
|
@@ -104,17 +105,17 @@
|
|
|
104
105
|
- 193068a: Deprecate the `mapId` property on React components.
|
|
105
106
|
Use the `MapModel` directly instead to pass a reference to the map.
|
|
106
107
|
|
|
107
|
-
|
|
108
|
+
Example:
|
|
108
109
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
110
|
+
```tsx
|
|
111
|
+
// Default map for entire component tree
|
|
112
|
+
<DefaultMapProvider map={mapModel}>
|
|
113
|
+
<Toc />
|
|
114
|
+
</DefaultMapProvider>
|
|
114
115
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
// Map for specific component
|
|
117
|
+
<Toc map={mapModel} />
|
|
118
|
+
```
|
|
118
119
|
|
|
119
120
|
### Patch Changes
|
|
120
121
|
|
|
@@ -134,9 +135,9 @@
|
|
|
134
135
|
### Minor Changes
|
|
135
136
|
|
|
136
137
|
- 2fa8020: Update trails core package dependencies.
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
- Also updates Chakra UI to the latest 2.x version and Chakra React Select to version 5.
|
|
139
|
+
- Removes any obsolete references to `@chakra-ui/system`.
|
|
140
|
+
This dependency seems to be no longer required and may lead to duplicate packages in your dependency tree.
|
|
140
141
|
|
|
141
142
|
### Patch Changes
|
|
142
143
|
|
|
@@ -155,7 +156,7 @@
|
|
|
155
156
|
- 583f1d6: The `mapId` or `map` properties are now optional on individual components.
|
|
156
157
|
You can use the `DefaultMapProvider` to configure an implicit default value.
|
|
157
158
|
|
|
158
|
-
|
|
159
|
+
Note that configuring _neither_ a default _nor_ an explicit `map` or `mapId` will trigger a runtime error.
|
|
159
160
|
|
|
160
161
|
- 583f1d6: All UI components in this project now accept the `mapId` (a `string`) _or_ the `map` (a `MapModel`) directly.
|
|
161
162
|
- a8b3449: Switch to a new versioning strategy.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@open-pioneer/legend",
|
|
4
|
-
"version": "1.5.0
|
|
4
|
+
"version": "1.5.0",
|
|
5
5
|
"description": "This package provides a legend UI component that allows a user to see legend information for layers in the map.",
|
|
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
|
"react-icons": "^5.7.0"
|