@trackunit/react-map-adapter-mapbox 0.0.154 → 0.0.155
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 +3 -3
- package/index.esm.js +3 -3
- package/package.json +4 -4
package/index.cjs.js
CHANGED
|
@@ -2480,9 +2480,9 @@ class MapboxAdapterInstance {
|
|
|
2480
2480
|
this.appearance = { ...reactMapAdapterShared.DEFAULT_MAP_APPEARANCE, theme: config.theme ?? "light" };
|
|
2481
2481
|
this.layers = new MapboxLayerPort();
|
|
2482
2482
|
this.layers.setTheme(this.appearance.theme);
|
|
2483
|
-
// Engine
|
|
2484
|
-
// controller keeps mode and value and loads again
|
|
2485
|
-
// or setValue that needs an engine.
|
|
2483
|
+
// Engine failures surface through the port's getErrors (useDraw reports them to
|
|
2484
|
+
// the app's error handler and the consumer); the controller keeps mode and value and loads again
|
|
2485
|
+
// on the next connect, setMode or setValue that needs an engine.
|
|
2486
2486
|
this.draw = new reactMapDraw.DrawController();
|
|
2487
2487
|
this.draw.subscribe(() => this.syncDrawingStatus());
|
|
2488
2488
|
this.state = { ...reactMapAdapterShared.computeInitialState(this.appearance, config.initialViewport), tileSize: MAPBOX_TILE_SIZE };
|
package/index.esm.js
CHANGED
|
@@ -2479,9 +2479,9 @@ class MapboxAdapterInstance {
|
|
|
2479
2479
|
this.appearance = { ...DEFAULT_MAP_APPEARANCE, theme: config.theme ?? "light" };
|
|
2480
2480
|
this.layers = new MapboxLayerPort();
|
|
2481
2481
|
this.layers.setTheme(this.appearance.theme);
|
|
2482
|
-
// Engine
|
|
2483
|
-
// controller keeps mode and value and loads again
|
|
2484
|
-
// or setValue that needs an engine.
|
|
2482
|
+
// Engine failures surface through the port's getErrors (useDraw reports them to
|
|
2483
|
+
// the app's error handler and the consumer); the controller keeps mode and value and loads again
|
|
2484
|
+
// on the next connect, setMode or setValue that needs an engine.
|
|
2485
2485
|
this.draw = new DrawController();
|
|
2486
2486
|
this.draw.subscribe(() => this.syncDrawingStatus());
|
|
2487
2487
|
this.state = { ...computeInitialState(this.appearance, config.initialViewport), tileSize: MAPBOX_TILE_SIZE };
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-map-adapter-mapbox",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.155",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=24.x"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@trackunit/react-map-adapter-shared": "0.0.
|
|
11
|
-
"@trackunit/geo-json-utils": "1.
|
|
10
|
+
"@trackunit/react-map-adapter-shared": "0.0.167",
|
|
11
|
+
"@trackunit/geo-json-utils": "1.21.0",
|
|
12
12
|
"mapbox-gl": "^3.18.1",
|
|
13
13
|
"supercluster": "^8.0.1",
|
|
14
14
|
"es-toolkit": "^1.52.0",
|
|
15
15
|
"react-device-detect": "^2.2.3",
|
|
16
16
|
"zod": "^3.25.76",
|
|
17
|
-
"@trackunit/react-map-draw": "0.0.
|
|
17
|
+
"@trackunit/react-map-draw": "0.0.5",
|
|
18
18
|
"terra-draw-mapbox-gl-adapter": "^1.4.0"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|