@geolonia/maps-react 0.1.3 → 0.2.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/dist/index.cjs +4 -0
- package/dist/index.js +8 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -466,9 +466,13 @@ var Map = (0, import_react6.forwardRef)((props, ref) => {
|
|
|
466
466
|
for (const key of Object.keys(HANDLER_NAMES)) {
|
|
467
467
|
delete mapOptions[key];
|
|
468
468
|
}
|
|
469
|
+
if (mapOptions.stage === void 0) {
|
|
470
|
+
delete mapOptions.stage;
|
|
471
|
+
}
|
|
469
472
|
const instance = new import_maps_core.GeoloniaMap({
|
|
470
473
|
center: DEFAULT_CENTER,
|
|
471
474
|
zoom: DEFAULT_ZOOM,
|
|
475
|
+
stage: import_maps_core.DEFAULT_STAGE,
|
|
472
476
|
...mapOptions,
|
|
473
477
|
container: containerRef.current
|
|
474
478
|
});
|
package/dist/index.js
CHANGED
|
@@ -308,7 +308,10 @@ function Layer({ beforeId, ...layerSpec }) {
|
|
|
308
308
|
}
|
|
309
309
|
|
|
310
310
|
// src/components/map.tsx
|
|
311
|
-
import {
|
|
311
|
+
import {
|
|
312
|
+
DEFAULT_STAGE,
|
|
313
|
+
GeoloniaMap
|
|
314
|
+
} from "@geolonia/maps-core";
|
|
312
315
|
import {
|
|
313
316
|
forwardRef,
|
|
314
317
|
useContext as useContext3,
|
|
@@ -419,9 +422,13 @@ var Map = forwardRef((props, ref) => {
|
|
|
419
422
|
for (const key of Object.keys(HANDLER_NAMES)) {
|
|
420
423
|
delete mapOptions[key];
|
|
421
424
|
}
|
|
425
|
+
if (mapOptions.stage === void 0) {
|
|
426
|
+
delete mapOptions.stage;
|
|
427
|
+
}
|
|
422
428
|
const instance = new GeoloniaMap({
|
|
423
429
|
center: DEFAULT_CENTER,
|
|
424
430
|
zoom: DEFAULT_ZOOM,
|
|
431
|
+
stage: DEFAULT_STAGE,
|
|
425
432
|
...mapOptions,
|
|
426
433
|
container: containerRef.current
|
|
427
434
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geolonia/maps-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@geolonia/maps-core": "^0.
|
|
19
|
+
"@geolonia/maps-core": "^0.5.0"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
+
"maplibre-gl": "^5.0.0",
|
|
22
23
|
"react": ">=18",
|
|
23
|
-
"react-dom": ">=18"
|
|
24
|
-
"maplibre-gl": "^5.0.0"
|
|
24
|
+
"react-dom": ">=18"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@biomejs/biome": "^2.4.8",
|