@viamrobotics/test-widgets 0.17.3 → 0.17.4

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.
@@ -27,6 +27,7 @@
27
27
 
28
28
  import { LngLat, Map, type MapOptions } from 'maplibre-gl'
29
29
  import { onMount, type Snippet, tick } from 'svelte'
30
+ import { get } from 'svelte/store'
30
31
 
31
32
  import { provideMapContext } from './hooks.svelte'
32
33
  import { getStyleSpecification } from './style'
@@ -117,7 +118,7 @@
117
118
  zoom,
118
119
  maxZoom,
119
120
  mapProvider,
120
- mapProviderKey,
121
+ apiKey: mapProviderKey,
121
122
  satellite,
122
123
  }))
123
124
 
@@ -166,7 +167,7 @@
166
167
  }
167
168
 
168
169
  const updateStyle = async (provider: MapProvider, apiKey?: string) => {
169
- const style = await getStyleSpecification(provider, apiKey)
170
+ const style = await getStyleSpecification(provider, apiKey, maxZoom, get(context.satellite))
170
171
  map?.setStyle(style)
171
172
  }
172
173
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viamrobotics/test-widgets",
3
- "version": "0.17.3",
3
+ "version": "0.17.4",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "wireit": {