@geolonia/maps-react 0.1.1 → 0.1.3

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 CHANGED
@@ -365,6 +365,8 @@ function Layer({ beforeId, ...layerSpec }) {
365
365
  var import_maps_core = require("@geolonia/maps-core");
366
366
  var import_react6 = require("react");
367
367
  var import_jsx_runtime = require("react/jsx-runtime");
368
+ var DEFAULT_CENTER = [139.767125, 35.681236];
369
+ var DEFAULT_ZOOM = 14;
368
370
  var HANDLER_NAMES = {
369
371
  onClick: "click",
370
372
  onDblClick: "dblclick",
@@ -465,6 +467,8 @@ var Map = (0, import_react6.forwardRef)((props, ref) => {
465
467
  delete mapOptions[key];
466
468
  }
467
469
  const instance = new import_maps_core.GeoloniaMap({
470
+ center: DEFAULT_CENTER,
471
+ zoom: DEFAULT_ZOOM,
468
472
  ...mapOptions,
469
473
  container: containerRef.current
470
474
  });
package/dist/index.js CHANGED
@@ -318,6 +318,8 @@ import {
318
318
  useState as useState2
319
319
  } from "react";
320
320
  import { jsx } from "react/jsx-runtime";
321
+ var DEFAULT_CENTER = [139.767125, 35.681236];
322
+ var DEFAULT_ZOOM = 14;
321
323
  var HANDLER_NAMES = {
322
324
  onClick: "click",
323
325
  onDblClick: "dblclick",
@@ -418,6 +420,8 @@ var Map = forwardRef((props, ref) => {
418
420
  delete mapOptions[key];
419
421
  }
420
422
  const instance = new GeoloniaMap({
423
+ center: DEFAULT_CENTER,
424
+ zoom: DEFAULT_ZOOM,
421
425
  ...mapOptions,
422
426
  container: containerRef.current
423
427
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geolonia/maps-react",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -16,11 +16,12 @@
16
16
  "dist"
17
17
  ],
18
18
  "dependencies": {
19
- "@geolonia/maps-core": "^0.4.2"
19
+ "@geolonia/maps-core": "^0.4.3"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "react": ">=18",
23
- "react-dom": ">=18"
23
+ "react-dom": ">=18",
24
+ "maplibre-gl": "^5.0.0"
24
25
  },
25
26
  "devDependencies": {
26
27
  "@biomejs/biome": "^2.4.8",
@@ -41,6 +42,9 @@
41
42
  },
42
43
  "scripts": {
43
44
  "build": "tsup src/index.ts --format esm,cjs --dts --external react --external react-dom --external maplibre-gl",
45
+ "check:externals": "node scripts/check-externals.mjs",
46
+ "smoke": "node scripts/smoke.mjs",
47
+ "verify": "npm run build && npm run check:externals && npm run smoke",
44
48
  "dev": "vite --config vite.config.ts",
45
49
  "test": "vitest run",
46
50
  "test:watch": "vitest",