@open-pioneer/map 1.1.0 → 1.2.0-dev.20260121105545

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @open-pioneer/map
2
2
 
3
+ ## 1.2.0-dev.20260121105545
4
+
5
+ ### Patch Changes
6
+
7
+ - 279ca67: Use `workspace:*` instead of `workspace:^` for local package references as default. This ensures that trails packages from this repository are always referenced with their exact version to avoid potential issues with version mismatches. If a project specifically wants to use other versions for some trails packages, a pnpm override can be used to force other versions.
8
+ - 9580bb4: Update various dependencies.
9
+ - 9580bb4: Update to Chakra 3.31.0
10
+
3
11
  ## 1.1.0
4
12
 
5
13
  ### Minor Changes
package/README.md CHANGED
@@ -10,7 +10,7 @@ To use a map in your app, follow these steps:
10
10
  - Add a `MapContainer` component to your app (see [Map container component](#map-container-component)).
11
11
  - Create a map and set a configuration (see [Map configuration](#map-configuration)).
12
12
 
13
- There are two different ways to create a map ( see [Map creation](#map-creation) )
13
+ There are two different ways to create a map (see [Map creation](#map-creation) )
14
14
 
15
15
  - Implement a `MapConfigProvider` (see [Implement a MapConfigProvider](#implement-a-mapconfigprovider)).
16
16
  - Directly create a `MapModel` instance (see [Direct mapModel](#create-a-mapmodel-instance-directly))
@@ -4,4 +4,4 @@ const PACKAGE_NAME = "@open-pioneer/map";
4
4
  const useService = /*@__PURE__*/ useServiceInternal.bind(undefined, PACKAGE_NAME);
5
5
 
6
6
  export { useService };
7
- //# sourceMappingURL=_virtual-pioneer-module_react-hooks.js.map
7
+ //# sourceMappingURL=hooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -14,18 +14,18 @@ function getLayerDependencies(deps, tag) {
14
14
  }
15
15
  return deps;
16
16
  }
17
- const SET_VISIBLE = Symbol("SET_VISIBLE");
18
- const DETACH_FROM_MAP = Symbol("DETACH_FROM_MAP");
19
- const ATTACH_TO_MAP = Symbol("ATTACH_TO_MAP");
20
- const ATTACH_TO_GROUP = Symbol("ATTACH_TO_GROUP");
21
- const DETACH_FROM_GROUP = Symbol("DETACH_FROM_GROUP");
22
- const GET_RAW_LAYERS = Symbol("GET_RAW_LAYERS");
23
- const GET_PARENT = Symbol("GET_PARENT");
24
- const GET_DEPS = Symbol("GET_DEPS");
25
- const GET_RAW_SUBLAYERS = Symbol("GET_RAW_SUBLAYERS");
26
- const ATTACH_TO_PARENT = Symbol("ATTACH_TO_PARENT");
27
- const SET_LEGEND = Symbol("SET_LEGEND");
28
- const LAYER_DEPS = Symbol("LAYER_DEPS");
17
+ const SET_VISIBLE = /* @__PURE__ */ Symbol("SET_VISIBLE");
18
+ const DETACH_FROM_MAP = /* @__PURE__ */ Symbol("DETACH_FROM_MAP");
19
+ const ATTACH_TO_MAP = /* @__PURE__ */ Symbol("ATTACH_TO_MAP");
20
+ const ATTACH_TO_GROUP = /* @__PURE__ */ Symbol("ATTACH_TO_GROUP");
21
+ const DETACH_FROM_GROUP = /* @__PURE__ */ Symbol("DETACH_FROM_GROUP");
22
+ const GET_RAW_LAYERS = /* @__PURE__ */ Symbol("GET_RAW_LAYERS");
23
+ const GET_PARENT = /* @__PURE__ */ Symbol("GET_PARENT");
24
+ const GET_DEPS = /* @__PURE__ */ Symbol("GET_DEPS");
25
+ const GET_RAW_SUBLAYERS = /* @__PURE__ */ Symbol("GET_RAW_SUBLAYERS");
26
+ const ATTACH_TO_PARENT = /* @__PURE__ */ Symbol("ATTACH_TO_PARENT");
27
+ const SET_LEGEND = /* @__PURE__ */ Symbol("SET_LEGEND");
28
+ const LAYER_DEPS = /* @__PURE__ */ Symbol("LAYER_DEPS");
29
29
 
30
30
  export { ATTACH_TO_GROUP, ATTACH_TO_MAP, ATTACH_TO_PARENT, DETACH_FROM_GROUP, DETACH_FROM_MAP, GET_DEPS, GET_PARENT, GET_RAW_LAYERS, GET_RAW_SUBLAYERS, LAYER_DEPS, SET_LEGEND, SET_VISIBLE, getLayerDependencies };
31
31
  //# sourceMappingURL=internals.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"internals.js","sources":["internals.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2023-2025 Open Pioneer project (https://github.com/open-pioneer)\n// SPDX-License-Identifier: Apache-2.0\nimport { HttpService } from \"@open-pioneer/http\";\nimport { LayerConfig } from \"./LayerConfig\";\nimport { Layer } from \"../unions\";\nimport {\n InternalConstructorTag,\n INTERNAL_CONSTRUCTOR_TAG\n} from \"../../utils/InternalConstructorTag\";\n\n/**\n * Options passed from the layer factory to the layer constructor.\n *\n * @internal\n */\nexport interface LayerDependencies {\n httpService: HttpService;\n}\n\n/**\n * Interface implemented by layer classes (the prototype, not the instance).\n *\n * - `Config`: the options supported or required as construction parameters.\n * - `LayerType`: the type of the resulting layer instance.\n *\n * @internal\n */\nexport interface LayerConstructor<Config extends LayerConfig, LayerType extends Layer> {\n prototype: LayerType;\n new (config: Config, deps: LayerDependencies, tag: InternalConstructorTag): LayerType;\n}\n\n/**\n * Helper function to verify that the correct tag was used.\n *\n * Returns the layer dependencies passed by the layer factory or returns undefined.\n *\n * Throws an error if an invalid tag was provided.\n */\nexport function getLayerDependencies(\n deps: LayerDependencies | undefined,\n tag: InternalConstructorTag | undefined\n): LayerDependencies | undefined {\n if (tag == null) {\n // no tag -> used old constructor overload\n return undefined;\n }\n if (tag !== INTERNAL_CONSTRUCTOR_TAG) {\n throw new Error(\n \"Attempt to call an internal layer constructor. Use the LayerFactory service instead.\"\n );\n }\n if (!deps) {\n // If the correct tag was used, then the dependencies must have been passed by the factory\n throw new Error(\"Internal error: layer dependencies are missing\");\n }\n return deps;\n}\n\n// use symbols for internal functions\nexport const SET_VISIBLE = Symbol(\"SET_VISIBLE\");\nexport const DETACH_FROM_MAP = Symbol(\"DETACH_FROM_MAP\");\nexport const ATTACH_TO_MAP = Symbol(\"ATTACH_TO_MAP\");\nexport const ATTACH_TO_GROUP = Symbol(\"ATTACH_TO_GROUP\");\nexport const DETACH_FROM_GROUP = Symbol(\"DETACH_FROM_GROUP\");\nexport const GET_RAW_LAYERS = Symbol(\"GET_RAW_LAYERS\");\nexport const GET_PARENT = Symbol(\"GET_PARENT\");\nexport const GET_DEPS = Symbol(\"GET_DEPS\");\nexport const GET_RAW_SUBLAYERS = Symbol(\"GET_RAW_SUBLAYERS\");\nexport const ATTACH_TO_PARENT = Symbol(\"ATTACH_TO_PARENT\");\nexport const SET_LEGEND = Symbol(\"SET_LEGEND\");\nexport const LAYER_DEPS = Symbol(\"LAYER_DEPS\");\n"],"names":[],"mappings":";;AAuCO,SAAS,oBAAA,CACZ,MACA,GAAA,EAC6B;AAC7B,EAAA,IAAI,OAAO,IAAA,EAAM;AAEb,IAAA,OAAO,MAAA;AAAA,EACX;AACA,EAAA,IAAI,QAAQ,wBAAA,EAA0B;AAClC,IAAA,MAAM,IAAI,KAAA;AAAA,MACN;AAAA,KACJ;AAAA,EACJ;AACA,EAAA,IAAI,CAAC,IAAA,EAAM;AAEP,IAAA,MAAM,IAAI,MAAM,gDAAgD,CAAA;AAAA,EACpE;AACA,EAAA,OAAO,IAAA;AACX;AAGO,MAAM,WAAA,GAAc,OAAO,aAAa;AACxC,MAAM,eAAA,GAAkB,OAAO,iBAAiB;AAChD,MAAM,aAAA,GAAgB,OAAO,eAAe;AAC5C,MAAM,eAAA,GAAkB,OAAO,iBAAiB;AAChD,MAAM,iBAAA,GAAoB,OAAO,mBAAmB;AACpD,MAAM,cAAA,GAAiB,OAAO,gBAAgB;AAC9C,MAAM,UAAA,GAAa,OAAO,YAAY;AACtC,MAAM,QAAA,GAAW,OAAO,UAAU;AAClC,MAAM,iBAAA,GAAoB,OAAO,mBAAmB;AACpD,MAAM,gBAAA,GAAmB,OAAO,kBAAkB;AAClD,MAAM,UAAA,GAAa,OAAO,YAAY;AACtC,MAAM,UAAA,GAAa,OAAO,YAAY;;;;"}
1
+ {"version":3,"file":"internals.js","sources":["internals.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2023-2025 Open Pioneer project (https://github.com/open-pioneer)\n// SPDX-License-Identifier: Apache-2.0\nimport { HttpService } from \"@open-pioneer/http\";\nimport { LayerConfig } from \"./LayerConfig\";\nimport { Layer } from \"../unions\";\nimport {\n InternalConstructorTag,\n INTERNAL_CONSTRUCTOR_TAG\n} from \"../../utils/InternalConstructorTag\";\n\n/**\n * Options passed from the layer factory to the layer constructor.\n *\n * @internal\n */\nexport interface LayerDependencies {\n httpService: HttpService;\n}\n\n/**\n * Interface implemented by layer classes (the prototype, not the instance).\n *\n * - `Config`: the options supported or required as construction parameters.\n * - `LayerType`: the type of the resulting layer instance.\n *\n * @internal\n */\nexport interface LayerConstructor<Config extends LayerConfig, LayerType extends Layer> {\n prototype: LayerType;\n new (config: Config, deps: LayerDependencies, tag: InternalConstructorTag): LayerType;\n}\n\n/**\n * Helper function to verify that the correct tag was used.\n *\n * Returns the layer dependencies passed by the layer factory or returns undefined.\n *\n * Throws an error if an invalid tag was provided.\n */\nexport function getLayerDependencies(\n deps: LayerDependencies | undefined,\n tag: InternalConstructorTag | undefined\n): LayerDependencies | undefined {\n if (tag == null) {\n // no tag -> used old constructor overload\n return undefined;\n }\n if (tag !== INTERNAL_CONSTRUCTOR_TAG) {\n throw new Error(\n \"Attempt to call an internal layer constructor. Use the LayerFactory service instead.\"\n );\n }\n if (!deps) {\n // If the correct tag was used, then the dependencies must have been passed by the factory\n throw new Error(\"Internal error: layer dependencies are missing\");\n }\n return deps;\n}\n\n// use symbols for internal functions\nexport const SET_VISIBLE = Symbol(\"SET_VISIBLE\");\nexport const DETACH_FROM_MAP = Symbol(\"DETACH_FROM_MAP\");\nexport const ATTACH_TO_MAP = Symbol(\"ATTACH_TO_MAP\");\nexport const ATTACH_TO_GROUP = Symbol(\"ATTACH_TO_GROUP\");\nexport const DETACH_FROM_GROUP = Symbol(\"DETACH_FROM_GROUP\");\nexport const GET_RAW_LAYERS = Symbol(\"GET_RAW_LAYERS\");\nexport const GET_PARENT = Symbol(\"GET_PARENT\");\nexport const GET_DEPS = Symbol(\"GET_DEPS\");\nexport const GET_RAW_SUBLAYERS = Symbol(\"GET_RAW_SUBLAYERS\");\nexport const ATTACH_TO_PARENT = Symbol(\"ATTACH_TO_PARENT\");\nexport const SET_LEGEND = Symbol(\"SET_LEGEND\");\nexport const LAYER_DEPS = Symbol(\"LAYER_DEPS\");\n"],"names":[],"mappings":";;AAuCO,SAAS,oBAAA,CACZ,MACA,GAAA,EAC6B;AAC7B,EAAA,IAAI,OAAO,IAAA,EAAM;AAEb,IAAA,OAAO,MAAA;AAAA,EACX;AACA,EAAA,IAAI,QAAQ,wBAAA,EAA0B;AAClC,IAAA,MAAM,IAAI,KAAA;AAAA,MACN;AAAA,KACJ;AAAA,EACJ;AACA,EAAA,IAAI,CAAC,IAAA,EAAM;AAEP,IAAA,MAAM,IAAI,MAAM,gDAAgD,CAAA;AAAA,EACpE;AACA,EAAA,OAAO,IAAA;AACX;AAGO,MAAM,WAAA,0BAAqB,aAAa;AACxC,MAAM,eAAA,0BAAyB,iBAAiB;AAChD,MAAM,aAAA,0BAAuB,eAAe;AAC5C,MAAM,eAAA,0BAAyB,iBAAiB;AAChD,MAAM,iBAAA,0BAA2B,mBAAmB;AACpD,MAAM,cAAA,0BAAwB,gBAAgB;AAC9C,MAAM,UAAA,0BAAoB,YAAY;AACtC,MAAM,QAAA,0BAAkB,UAAU;AAClC,MAAM,iBAAA,0BAA2B,mBAAmB;AACpD,MAAM,gBAAA,0BAA0B,kBAAkB;AAClD,MAAM,UAAA,0BAAoB,YAAY;AACtC,MAAM,UAAA,0BAAoB,YAAY;;;;"}
@@ -129,5 +129,5 @@ function constructSublayers(sublayerConfigs = []) {
129
129
  }
130
130
  }
131
131
 
132
- export { WMSSublayer, constructSublayers };
132
+ export { constructSublayers };
133
133
  //# sourceMappingURL=WMSSublayer.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@open-pioneer/map",
4
- "version": "1.1.0",
4
+ "version": "1.2.0-dev.20260121105545",
5
5
  "description": "This package integrates OpenLayers maps into an open pioneer trails application.",
6
6
  "keywords": [
7
7
  "open-pioneer-trails"
@@ -14,15 +14,15 @@
14
14
  "directory": "src/packages/map"
15
15
  },
16
16
  "dependencies": {
17
- "@chakra-ui/react": "^3.29.0",
18
- "@open-pioneer/core": "^4.3.0",
19
- "@open-pioneer/http": "^4.3.0",
20
- "@open-pioneer/react-utils": "^4.3.0",
21
- "@open-pioneer/runtime": "^4.3.0",
17
+ "@chakra-ui/react": "^3.31.0",
18
+ "@open-pioneer/core": "4.4.0-dev.20260121102820",
19
+ "@open-pioneer/http": "4.4.0-dev.20260121102820",
20
+ "@open-pioneer/react-utils": "4.4.0-dev.20260121102820",
21
+ "@open-pioneer/runtime": "4.4.0-dev.20260121102820",
22
22
  "ol": "^10.7.0",
23
23
  "proj4": "^2.20.2",
24
- "react": "^19.2.0",
25
- "react-dom": "^19.2.0",
24
+ "react": "^19.2.3",
25
+ "react-dom": "^19.2.3",
26
26
  "react-use": "^17.6.0",
27
27
  "uuid": "^13.0.0",
28
28
  "@conterra/reactivity-core": "^0.8.1",
@@ -1,4 +1,4 @@
1
- import { useService } from '../../_virtual/_virtual-pioneer-module_react-hooks.js';
1
+ import { useService } from '../../_virtual/hooks.js';
2
2
  import { useMemo } from 'react';
3
3
  import { useAsync } from 'react-use';
4
4
  import { MapModel } from '../../model/MapModel.js';
@@ -1,4 +1,4 @@
1
- const INTERNAL_CONSTRUCTOR_TAG = Symbol("INTERNAL_CONSTRUCTOR_TAG");
1
+ const INTERNAL_CONSTRUCTOR_TAG = /* @__PURE__ */ Symbol("INTERNAL_CONSTRUCTOR_TAG");
2
2
  function assertInternalConstructor(tag) {
3
3
  if (tag !== INTERNAL_CONSTRUCTOR_TAG) {
4
4
  throw new Error("This constructor is internal.");
@@ -1 +1 @@
1
- {"version":3,"file":"InternalConstructorTag.js","sources":["InternalConstructorTag.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2023-2025 Open Pioneer project (https://github.com/open-pioneer)\n// SPDX-License-Identifier: Apache-2.0\n\n/**\n * Package-internal constructor tag to signal that the layer constructor is being called from the layer factory.\n *\n * @internal\n */\nexport const INTERNAL_CONSTRUCTOR_TAG = Symbol(\"INTERNAL_CONSTRUCTOR_TAG\");\nexport type InternalConstructorTag = typeof INTERNAL_CONSTRUCTOR_TAG;\n\nexport function assertInternalConstructor(tag: InternalConstructorTag) {\n if (tag !== INTERNAL_CONSTRUCTOR_TAG) {\n throw new Error(\"This constructor is internal.\");\n }\n}\n"],"names":[],"mappings":"AAQO,MAAM,wBAAA,GAA2B,OAAO,0BAA0B;AAGlE,SAAS,0BAA0B,GAAA,EAA6B;AACnE,EAAA,IAAI,QAAQ,wBAAA,EAA0B;AAClC,IAAA,MAAM,IAAI,MAAM,+BAA+B,CAAA;AAAA,EACnD;AACJ;;;;"}
1
+ {"version":3,"file":"InternalConstructorTag.js","sources":["InternalConstructorTag.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2023-2025 Open Pioneer project (https://github.com/open-pioneer)\n// SPDX-License-Identifier: Apache-2.0\n\n/**\n * Package-internal constructor tag to signal that the layer constructor is being called from the layer factory.\n *\n * @internal\n */\nexport const INTERNAL_CONSTRUCTOR_TAG = Symbol(\"INTERNAL_CONSTRUCTOR_TAG\");\nexport type InternalConstructorTag = typeof INTERNAL_CONSTRUCTOR_TAG;\n\nexport function assertInternalConstructor(tag: InternalConstructorTag) {\n if (tag !== INTERNAL_CONSTRUCTOR_TAG) {\n throw new Error(\"This constructor is internal.\");\n }\n}\n"],"names":[],"mappings":"AAQO,MAAM,wBAAA,0BAAkC,0BAA0B;AAGlE,SAAS,0BAA0B,GAAA,EAA6B;AACnE,EAAA,IAAI,QAAQ,wBAAA,EAA0B;AAClC,IAAA,MAAM,IAAI,MAAM,+BAA+B,CAAA;AAAA,EACnD;AACJ;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"_virtual-pioneer-module_react-hooks.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}