@open-pioneer/overview-map 0.9.0-dev.20250220091855 → 0.9.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 +118 -108
- package/OverviewMap.js.map +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,195 +1,205 @@
|
|
|
1
1
|
# @open-pioneer/overview-map
|
|
2
2
|
|
|
3
|
-
## 0.9.0
|
|
3
|
+
## 0.9.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- cb94c75: update dependencies
|
|
4
8
|
|
|
5
9
|
### Patch Changes
|
|
6
10
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
|
|
11
|
+
- d72e42c: Removed BKGTopPlusOpen layer source. The BKGTopPlusOpen was an internal layer source only needed for tests. Please use own test sources instead.
|
|
12
|
+
- Updated dependencies [e7fdc5d]
|
|
13
|
+
- Updated dependencies [cb94c75]
|
|
14
|
+
- Updated dependencies [37cd707]
|
|
15
|
+
- Updated dependencies [32ed2cd]
|
|
16
|
+
- Updated dependencies [f327eec]
|
|
17
|
+
- Updated dependencies [f327eec]
|
|
18
|
+
- Updated dependencies [209eb8e]
|
|
19
|
+
- Updated dependencies [d72e42c]
|
|
20
|
+
- @open-pioneer/map@0.9.0
|
|
11
21
|
|
|
12
22
|
## 0.8.0
|
|
13
23
|
|
|
14
24
|
### Minor Changes
|
|
15
25
|
|
|
16
|
-
-
|
|
26
|
+
- 2fa8020: Update trails core package dependencies.
|
|
17
27
|
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
|
|
28
|
+
- Also updates Chakra UI to the latest 2.x version and Chakra React Select to version 5.
|
|
29
|
+
- Removes any obsolete references to `@chakra-ui/system`.
|
|
30
|
+
This dependency seems to be no longer required and may lead to duplicate packages in your dependency tree.
|
|
21
31
|
|
|
22
32
|
### Patch Changes
|
|
23
33
|
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
34
|
+
- 49f0207: Update trails core packages to version 2.4.0
|
|
35
|
+
- Updated dependencies [b717121]
|
|
36
|
+
- Updated dependencies [e7978a8]
|
|
37
|
+
- Updated dependencies [7a5f1e1]
|
|
38
|
+
- Updated dependencies [7ae9f90]
|
|
39
|
+
- Updated dependencies [d8337a6]
|
|
40
|
+
- Updated dependencies [49f0207]
|
|
41
|
+
- Updated dependencies [b2127df]
|
|
42
|
+
- Updated dependencies [2fa8020]
|
|
43
|
+
- Updated dependencies [7ae9f90]
|
|
44
|
+
- Updated dependencies [d8337a6]
|
|
45
|
+
- @open-pioneer/map@0.8.0
|
|
36
46
|
|
|
37
47
|
## 0.7.0
|
|
38
48
|
|
|
39
49
|
### Minor Changes
|
|
40
50
|
|
|
41
|
-
-
|
|
51
|
+
- 310800c: Switch from `peerDependencies` to normal `dependencies`. Peer dependencies have some usability problems when used at scale.
|
|
42
52
|
|
|
43
53
|
### Patch Changes
|
|
44
54
|
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
|
|
55
|
+
- 310800c: Update core packages version.
|
|
56
|
+
- 583f1d6: The `mapId` or `map` properties are now optional on individual components.
|
|
57
|
+
You can use the `DefaultMapProvider` to configure an implicit default value.
|
|
48
58
|
|
|
49
59
|
Note that configuring _neither_ a default _nor_ an explicit `map` or `mapId` will trigger a runtime error.
|
|
50
60
|
|
|
51
|
-
-
|
|
52
|
-
-
|
|
53
|
-
|
|
54
|
-
-
|
|
55
|
-
-
|
|
56
|
-
-
|
|
57
|
-
-
|
|
58
|
-
-
|
|
59
|
-
-
|
|
60
|
-
-
|
|
61
|
-
-
|
|
62
|
-
-
|
|
63
|
-
-
|
|
64
|
-
-
|
|
65
|
-
-
|
|
61
|
+
- 583f1d6: All UI components in this project now accept the `mapId` (a `string`) _or_ the `map` (a `MapModel`) directly.
|
|
62
|
+
- a8b3449: Switch to a new versioning strategy.
|
|
63
|
+
From now on, packages released by this repository share a common version number.
|
|
64
|
+
- 900eb11: Update dependencies.
|
|
65
|
+
- Updated dependencies [310800c]
|
|
66
|
+
- Updated dependencies [2502050]
|
|
67
|
+
- Updated dependencies [583f1d6]
|
|
68
|
+
- Updated dependencies [583f1d6]
|
|
69
|
+
- Updated dependencies [397d617]
|
|
70
|
+
- Updated dependencies [a8b3449]
|
|
71
|
+
- Updated dependencies [310800c]
|
|
72
|
+
- Updated dependencies [900eb11]
|
|
73
|
+
- Updated dependencies [583f1d6]
|
|
74
|
+
- Updated dependencies [397d617]
|
|
75
|
+
- @open-pioneer/map@0.7.0
|
|
66
76
|
|
|
67
77
|
## 0.4.4
|
|
68
78
|
|
|
69
79
|
### Patch Changes
|
|
70
80
|
|
|
71
|
-
-
|
|
72
|
-
-
|
|
73
|
-
-
|
|
74
|
-
-
|
|
81
|
+
- b152428: Update trails dependencies
|
|
82
|
+
- Updated dependencies [b152428]
|
|
83
|
+
- Updated dependencies [291ccb6]
|
|
84
|
+
- @open-pioneer/map@0.6.1
|
|
75
85
|
|
|
76
86
|
## 0.4.3
|
|
77
87
|
|
|
78
88
|
### Patch Changes
|
|
79
89
|
|
|
80
|
-
-
|
|
81
|
-
-
|
|
82
|
-
-
|
|
83
|
-
-
|
|
84
|
-
-
|
|
90
|
+
- 28e092a: Update dependencies
|
|
91
|
+
- Updated dependencies [28e092a]
|
|
92
|
+
- Updated dependencies [0d51d2f]
|
|
93
|
+
- Updated dependencies [76f8863]
|
|
94
|
+
- @open-pioneer/map@0.6.0
|
|
85
95
|
|
|
86
96
|
## 0.4.2
|
|
87
97
|
|
|
88
98
|
### Patch Changes
|
|
89
99
|
|
|
90
|
-
-
|
|
91
|
-
-
|
|
92
|
-
-
|
|
93
|
-
-
|
|
94
|
-
-
|
|
95
|
-
-
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
-
-
|
|
99
|
-
-
|
|
100
|
-
-
|
|
101
|
-
-
|
|
100
|
+
- 4140646: Update trails dependencies
|
|
101
|
+
- 4140646: Update to react 18.3.1
|
|
102
|
+
- 81bc7da: Update trails dependencies
|
|
103
|
+
- 2c092dc: Update dependencies
|
|
104
|
+
- Updated dependencies [4140646]
|
|
105
|
+
- Updated dependencies [4140646]
|
|
106
|
+
- Updated dependencies [b5bb7a1]
|
|
107
|
+
- Updated dependencies [81bc7da]
|
|
108
|
+
- Updated dependencies [2c092dc]
|
|
109
|
+
- Updated dependencies [4140646]
|
|
110
|
+
- @open-pioneer/react-utils@0.2.3
|
|
111
|
+
- @open-pioneer/map@0.5.1
|
|
102
112
|
|
|
103
113
|
## 0.4.1
|
|
104
114
|
|
|
105
115
|
### Patch Changes
|
|
106
116
|
|
|
107
|
-
-
|
|
108
|
-
-
|
|
109
|
-
-
|
|
117
|
+
- c386ff0: Update peerDependencies
|
|
118
|
+
- Updated dependencies [520a97b]
|
|
119
|
+
- @open-pioneer/map@0.5.0
|
|
110
120
|
|
|
111
121
|
## 0.4.0
|
|
112
122
|
|
|
113
123
|
### Minor Changes
|
|
114
124
|
|
|
115
|
-
-
|
|
125
|
+
- 9334e81: Update to OpenLayers 9
|
|
116
126
|
|
|
117
127
|
### Patch Changes
|
|
118
128
|
|
|
119
|
-
-
|
|
120
|
-
-
|
|
121
|
-
-
|
|
122
|
-
-
|
|
123
|
-
-
|
|
124
|
-
-
|
|
125
|
-
-
|
|
126
|
-
-
|
|
127
|
-
-
|
|
128
|
-
-
|
|
129
|
-
-
|
|
130
|
-
-
|
|
131
|
-
-
|
|
129
|
+
- 1a8ad89: Update package.json metadata
|
|
130
|
+
- 6162979: Update versions of core packages
|
|
131
|
+
- Updated dependencies [1a8ad89]
|
|
132
|
+
- Updated dependencies [a11bf72]
|
|
133
|
+
- Updated dependencies [fc6bf82]
|
|
134
|
+
- Updated dependencies [a0d8882]
|
|
135
|
+
- Updated dependencies [6162979]
|
|
136
|
+
- Updated dependencies [9334e81]
|
|
137
|
+
- Updated dependencies [ac7fdd1]
|
|
138
|
+
- Updated dependencies [13ea342]
|
|
139
|
+
- @open-pioneer/ogc-features@0.4.0
|
|
140
|
+
- @open-pioneer/react-utils@0.2.2
|
|
141
|
+
- @open-pioneer/map@0.4.0
|
|
132
142
|
|
|
133
143
|
## 0.3.1
|
|
134
144
|
|
|
135
145
|
### Patch Changes
|
|
136
146
|
|
|
137
|
-
-
|
|
138
|
-
-
|
|
139
|
-
-
|
|
147
|
+
- Updated dependencies [611ddb9]
|
|
148
|
+
- @open-pioneer/map@0.3.1
|
|
149
|
+
- @open-pioneer/ogc-features@0.3.1
|
|
140
150
|
|
|
141
151
|
## 0.3.0
|
|
142
152
|
|
|
143
153
|
### Minor Changes
|
|
144
154
|
|
|
145
|
-
-
|
|
155
|
+
- ee7c2d4: Update runtime version.
|
|
146
156
|
|
|
147
157
|
### Patch Changes
|
|
148
158
|
|
|
149
|
-
-
|
|
150
|
-
-
|
|
151
|
-
-
|
|
152
|
-
-
|
|
153
|
-
-
|
|
154
|
-
-
|
|
155
|
-
-
|
|
159
|
+
- Updated dependencies [ee7c2d4]
|
|
160
|
+
- Updated dependencies [a582e5e]
|
|
161
|
+
- Updated dependencies [0456500]
|
|
162
|
+
- Updated dependencies [762e7b9]
|
|
163
|
+
- @open-pioneer/map@0.3.0
|
|
164
|
+
- @open-pioneer/ogc-features@0.3.0
|
|
165
|
+
- @open-pioneer/react-utils@0.2.1
|
|
156
166
|
|
|
157
167
|
## 0.2.0
|
|
158
168
|
|
|
159
169
|
### Minor Changes
|
|
160
170
|
|
|
161
|
-
-
|
|
171
|
+
- 70349a8: Update to new core packages major versions
|
|
162
172
|
|
|
163
173
|
### Patch Changes
|
|
164
174
|
|
|
165
|
-
-
|
|
166
|
-
-
|
|
167
|
-
-
|
|
168
|
-
-
|
|
175
|
+
- Updated dependencies [70349a8]
|
|
176
|
+
- @open-pioneer/map@0.2.0
|
|
177
|
+
- @open-pioneer/ogc-features@0.2.0
|
|
178
|
+
- @open-pioneer/react-utils@0.2.0
|
|
169
179
|
|
|
170
180
|
## 0.1.1
|
|
171
181
|
|
|
172
182
|
### Patch Changes
|
|
173
183
|
|
|
174
|
-
-
|
|
175
|
-
-
|
|
176
|
-
-
|
|
177
|
-
-
|
|
178
|
-
-
|
|
179
|
-
-
|
|
180
|
-
-
|
|
184
|
+
- Updated dependencies [08bffbc]
|
|
185
|
+
- Updated dependencies [a58546b]
|
|
186
|
+
- Updated dependencies [dfc0896]
|
|
187
|
+
- Updated dependencies [a58546b]
|
|
188
|
+
- Updated dependencies [0c4ce04]
|
|
189
|
+
- @open-pioneer/map@0.1.1
|
|
190
|
+
- @open-pioneer/ogc-features@0.1.1
|
|
181
191
|
|
|
182
192
|
## 0.1.0
|
|
183
193
|
|
|
184
194
|
### Minor Changes
|
|
185
195
|
|
|
186
|
-
-
|
|
196
|
+
- 8563b15: Initial release.
|
|
187
197
|
|
|
188
198
|
### Patch Changes
|
|
189
199
|
|
|
190
|
-
-
|
|
191
|
-
-
|
|
192
|
-
-
|
|
193
|
-
-
|
|
194
|
-
-
|
|
195
|
-
-
|
|
200
|
+
- Updated dependencies [bb2f27a]
|
|
201
|
+
- Updated dependencies [bc54925]
|
|
202
|
+
- Updated dependencies [182da1c]
|
|
203
|
+
- @open-pioneer/map@0.1.0
|
|
204
|
+
- @open-pioneer/ogc-features@0.1.0
|
|
205
|
+
- @open-pioneer/react-utils@0.1.0
|
package/OverviewMap.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OverviewMap.js","sources":["OverviewMap.tsx"],"sourcesContent":["// SPDX-FileCopyrightText: 2023 Open Pioneer project (https://github.com/open-pioneer)\n// SPDX-License-Identifier: Apache-2.0\nimport { Box, BoxProps } from \"@open-pioneer/chakra-integration\";\nimport { MapModelProps, useMapModel } from \"@open-pioneer/map\";\nimport { CommonComponentProps, useCommonComponentProps } from \"@open-pioneer/react-utils\";\nimport { OverviewMap as OlOverviewMap } from \"ol/control\";\nimport OlBaseLayer from \"ol/layer/Base\";\nimport { FC, useEffect, useRef } from \"react\";\n\n/**\n * These are properties supported by the {@link OverviewMap}.\n */\nexport interface OverviewMapProps extends CommonComponentProps, MapModelProps {\n /**\n * The layer shown in the overview map.\n */\n olLayer: OlBaseLayer;\n\n /**\n * The height of the map.\n * This defaults to a reasonable pixel size.\n */\n height?: BoxProps[\"height\"];\n\n /**\n * The width of the map.\n * This defaults to a reasonable pixel size.\n */\n width?: BoxProps[\"width\"];\n}\n\nconst DEFAULT_HEIGHT = \"200px\";\nconst DEFAULT_WIDTH = \"300px\";\n\n/**\n * The `OverviewMap` component can be used in an app to have a better overview of the current location in the map.\n */\nexport const OverviewMap: FC<OverviewMapProps> = (props) => {\n const { olLayer, height = DEFAULT_HEIGHT, width = DEFAULT_WIDTH } = props;\n const { containerProps } = useCommonComponentProps(\"overview-map\", props);\n const overviewMapControlElem = useRef(null);\n const { map } = useMapModel(props);\n\n useEffect(() => {\n if (overviewMapControlElem.current && map && olLayer) {\n const olMap = map.olMap;\n const overviewMapControl: OlOverviewMap = new OlOverviewMap({\n className: \"ol-overviewmap\",\n layers: [olLayer],\n collapsible: false,\n collapsed: false,\n target: overviewMapControlElem.current\n });\n olMap.addControl(overviewMapControl);\n return () => {\n olMap.removeControl(overviewMapControl);\n };\n }\n }, [map, olLayer]);\n\n return (\n <Box height={height} width={width} ref={overviewMapControlElem} {...containerProps}></Box>\n );\n};\n"],"names":["OlOverviewMap"],"mappings":";;;;;;;AA+BA,MAAM,cAAiB,GAAA,OAAA
|
|
1
|
+
{"version":3,"file":"OverviewMap.js","sources":["OverviewMap.tsx"],"sourcesContent":["// SPDX-FileCopyrightText: 2023-2025 Open Pioneer project (https://github.com/open-pioneer)\n// SPDX-License-Identifier: Apache-2.0\nimport { Box, BoxProps } from \"@open-pioneer/chakra-integration\";\nimport { MapModelProps, useMapModel } from \"@open-pioneer/map\";\nimport { CommonComponentProps, useCommonComponentProps } from \"@open-pioneer/react-utils\";\nimport { OverviewMap as OlOverviewMap } from \"ol/control\";\nimport OlBaseLayer from \"ol/layer/Base\";\nimport { FC, useEffect, useRef } from \"react\";\n\n/**\n * These are properties supported by the {@link OverviewMap}.\n */\nexport interface OverviewMapProps extends CommonComponentProps, MapModelProps {\n /**\n * The layer shown in the overview map.\n */\n olLayer: OlBaseLayer;\n\n /**\n * The height of the map.\n * This defaults to a reasonable pixel size.\n */\n height?: BoxProps[\"height\"];\n\n /**\n * The width of the map.\n * This defaults to a reasonable pixel size.\n */\n width?: BoxProps[\"width\"];\n}\n\nconst DEFAULT_HEIGHT = \"200px\";\nconst DEFAULT_WIDTH = \"300px\";\n\n/**\n * The `OverviewMap` component can be used in an app to have a better overview of the current location in the map.\n */\nexport const OverviewMap: FC<OverviewMapProps> = (props) => {\n const { olLayer, height = DEFAULT_HEIGHT, width = DEFAULT_WIDTH } = props;\n const { containerProps } = useCommonComponentProps(\"overview-map\", props);\n const overviewMapControlElem = useRef(null);\n const { map } = useMapModel(props);\n\n useEffect(() => {\n if (overviewMapControlElem.current && map && olLayer) {\n const olMap = map.olMap;\n const overviewMapControl: OlOverviewMap = new OlOverviewMap({\n className: \"ol-overviewmap\",\n layers: [olLayer],\n collapsible: false,\n collapsed: false,\n target: overviewMapControlElem.current\n });\n olMap.addControl(overviewMapControl);\n return () => {\n olMap.removeControl(overviewMapControl);\n };\n }\n }, [map, olLayer]);\n\n return (\n <Box height={height} width={width} ref={overviewMapControlElem} {...containerProps}></Box>\n );\n};\n"],"names":["OlOverviewMap"],"mappings":";;;;;;;AA+BA,MAAM,cAAiB,GAAA,OAAA;AACvB,MAAM,aAAgB,GAAA,OAAA;AAKT,MAAA,WAAA,GAAoC,CAAC,KAAU,KAAA;AACxD,EAAA,MAAM,EAAE,OAAS,EAAA,MAAA,GAAS,cAAgB,EAAA,KAAA,GAAQ,eAAkB,GAAA,KAAA;AACpE,EAAA,MAAM,EAAE,cAAA,EAAmB,GAAA,uBAAA,CAAwB,gBAAgB,KAAK,CAAA;AACxE,EAAM,MAAA,sBAAA,GAAyB,OAAO,IAAI,CAAA;AAC1C,EAAA,MAAM,EAAE,GAAA,EAAQ,GAAA,WAAA,CAAY,KAAK,CAAA;AAEjC,EAAA,SAAA,CAAU,MAAM;AACZ,IAAI,IAAA,sBAAA,CAAuB,OAAW,IAAA,GAAA,IAAO,OAAS,EAAA;AAClD,MAAA,MAAM,QAAQ,GAAI,CAAA,KAAA;AAClB,MAAM,MAAA,kBAAA,GAAoC,IAAIA,aAAc,CAAA;AAAA,QACxD,SAAW,EAAA,gBAAA;AAAA,QACX,MAAA,EAAQ,CAAC,OAAO,CAAA;AAAA,QAChB,WAAa,EAAA,KAAA;AAAA,QACb,SAAW,EAAA,KAAA;AAAA,QACX,QAAQ,sBAAuB,CAAA;AAAA,OAClC,CAAA;AACD,MAAA,KAAA,CAAM,WAAW,kBAAkB,CAAA;AACnC,MAAA,OAAO,MAAM;AACT,QAAA,KAAA,CAAM,cAAc,kBAAkB,CAAA;AAAA,OAC1C;AAAA;AACJ,GACD,EAAA,CAAC,GAAK,EAAA,OAAO,CAAC,CAAA;AAEjB,EAAA,2BACK,GAAI,EAAA,EAAA,MAAA,EAAgB,OAAc,GAAK,EAAA,sBAAA,EAAyB,GAAG,cAAgB,EAAA,CAAA;AAE5F;;;;"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@open-pioneer/overview-map",
|
|
4
|
-
"version": "0.9.0
|
|
4
|
+
"version": "0.9.0",
|
|
5
5
|
"description": "This package offers a UI component with which an overview map can be integrated.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"open-pioneer-trails"
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"directory": "src/packages/overview-map"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@open-pioneer/chakra-integration": "^
|
|
18
|
-
"@open-pioneer/react-utils": "^
|
|
19
|
-
"@open-pioneer/runtime": "^
|
|
20
|
-
"ol": "^10.
|
|
21
|
-
"react": "^
|
|
22
|
-
"@open-pioneer/map": "^0.9.0
|
|
17
|
+
"@open-pioneer/chakra-integration": "^3.0.0",
|
|
18
|
+
"@open-pioneer/react-utils": "^3.0.0",
|
|
19
|
+
"@open-pioneer/runtime": "^3.0.0",
|
|
20
|
+
"ol": "^10.4.0",
|
|
21
|
+
"react": "^19.0.0",
|
|
22
|
+
"@open-pioneer/map": "^0.9.0"
|
|
23
23
|
},
|
|
24
24
|
"exports": {
|
|
25
25
|
"./package.json": "./package.json",
|