@trackunit/react-map-adapter-google 0.0.156 → 0.0.158

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/index.cjs.js CHANGED
@@ -2958,9 +2958,9 @@ class GoogleMapsAdapterInstance {
2958
2958
  };
2959
2959
  this.layers = new GoogleMapsLayerPort();
2960
2960
  this.layers.setTheme(this.appearance.theme);
2961
- // Engine load failures are not surfaced here (same as the deck.gl runtime): the
2962
- // controller keeps mode and value and loads again on the next connect, setMode
2963
- // or setValue that needs an engine.
2961
+ // Engine failures surface through the port's getErrors (useDraw reports them to
2962
+ // the app's error handler and the consumer); the controller keeps mode and value and loads again
2963
+ // on the next connect, setMode or setValue that needs an engine.
2964
2964
  this.draw = new reactMapDraw.DrawController();
2965
2965
  this.draw.subscribe(() => this.syncDrawingStatus());
2966
2966
  this.state = reactMapAdapterShared.computeInitialState(this.appearance, config.initialViewport);
package/index.esm.js CHANGED
@@ -2957,9 +2957,9 @@ class GoogleMapsAdapterInstance {
2957
2957
  };
2958
2958
  this.layers = new GoogleMapsLayerPort();
2959
2959
  this.layers.setTheme(this.appearance.theme);
2960
- // Engine load failures are not surfaced here (same as the deck.gl runtime): the
2961
- // controller keeps mode and value and loads again on the next connect, setMode
2962
- // or setValue that needs an engine.
2960
+ // Engine failures surface through the port's getErrors (useDraw reports them to
2961
+ // the app's error handler and the consumer); the controller keeps mode and value and loads again
2962
+ // on the next connect, setMode or setValue that needs an engine.
2963
2963
  this.draw = new DrawController();
2964
2964
  this.draw.subscribe(() => this.syncDrawingStatus());
2965
2965
  this.state = computeInitialState(this.appearance, config.initialViewport);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-map-adapter-google",
3
- "version": "0.0.156",
3
+ "version": "0.0.158",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -14,15 +14,15 @@
14
14
  "@loaders.gl/core": "~4.5.2",
15
15
  "@luma.gl/core": "^9.4.1",
16
16
  "@luma.gl/engine": "^9.4.1",
17
- "@trackunit/react-map-adapter-shared": "0.0.166",
18
- "@trackunit/react-map-color-utils": "0.0.140",
19
- "@trackunit/geo-json-utils": "1.20.1",
17
+ "@trackunit/react-map-adapter-shared": "0.0.168",
18
+ "@trackunit/react-map-color-utils": "0.0.142",
19
+ "@trackunit/geo-json-utils": "1.21.1",
20
20
  "@googlemaps/markerclusterer": "^2.6.2",
21
21
  "@vis.gl/react-google-maps": "^1.7.1",
22
22
  "es-toolkit": "^1.52.0",
23
23
  "react-device-detect": "^2.2.3",
24
24
  "zod": "^3.25.76",
25
- "@trackunit/react-map-draw": "0.0.4",
25
+ "@trackunit/react-map-draw": "0.0.6",
26
26
  "terra-draw-google-maps-adapter": "^1.6.2"
27
27
  },
28
28
  "peerDependencies": {