@open-pioneer/basemap-switcher 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/basemap-switcher
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
@@ -6,16 +6,18 @@ Unavailable basemaps are marked with an icon and will be deactivated for selecti
6
6
 
7
7
  ## Usage
8
8
 
9
- To add the component to your app, insert the following snippet with a reference to a map ID:
9
+ To add the component to your app, insert the following snippet:
10
10
 
11
11
  ```jsx
12
- <BasemapSwitcher mapId="map_id" />
12
+ <BasemapSwitcher
13
+ map={map}
14
+ /> /* instead of passing the map, the `DefaultMapProvider` can alternatively be used */
13
15
  ```
14
16
 
15
17
  To provide an option to deactivate all basemap layers, add the optional property `allowSelectingEmptyBasemap` (default: `false`).
16
18
 
17
19
  ```jsx
18
- <BasemapSwitcher mapId="map_id" allowSelectingEmptyBasemap />
20
+ <BasemapSwitcher map={map} allowSelectingEmptyBasemap />
19
21
  ```
20
22
 
21
23
  ## Accessibility
@@ -35,7 +37,7 @@ Example:
35
37
  <FormLabel ps={1}>
36
38
  <Text as="b">{intl.formatMessage({ id: "basemapLabel" })}</Text>
37
39
  </FormLabel>
38
- <BasemapSwitcher mapId="map_id" allowSelectingEmptyBasemap></BasemapSwitcher>
40
+ <BasemapSwitcher map={map} allowSelectingEmptyBasemap></BasemapSwitcher>
39
41
  </FormControl>
40
42
  ```
41
43
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@open-pioneer/basemap-switcher",
4
- "version": "0.9.0",
4
+ "version": "0.10.0-dev.20250324141112",
5
5
  "description": "This package provides a UI component that allows a user to switch between different base maps.",
6
6
  "keywords": [
7
7
  "open-pioneer-trails"
@@ -23,7 +23,7 @@
23
23
  "react-icons": "^5.3.0",
24
24
  "@open-pioneer/reactivity": "^3.0.0",
25
25
  "@conterra/reactivity-core": "^0.4.3",
26
- "@open-pioneer/map": "^0.9.0"
26
+ "@open-pioneer/map": "^0.10.0-dev.20250324141112"
27
27
  },
28
28
  "exports": {
29
29
  "./package.json": "./package.json",