@basemaps/lambda-tiler 8.5.0 → 8.6.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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [8.6.0](https://github.com/linz/basemaps/compare/v8.5.0...v8.6.0) (2025-08-06)
7
+
8
+ **Note:** Version bump only for package @basemaps/lambda-tiler
9
+
10
+
11
+
12
+
13
+
6
14
  # [8.5.0](https://github.com/linz/basemaps/compare/v8.4.0...v8.5.0) (2025-07-15)
7
15
 
8
16
 
package/dist/index.js CHANGED
@@ -80331,9 +80331,14 @@ var ConfigBase = z.object({
80331
80331
  /**
80332
80332
  * Was this configuration object generated from another object
80333
80333
  *
80334
- * @default undefined / false
80334
+ * tileset-all: All tileset contains all raster layers
80335
+ * tileset-alias: Alias that points to another tileset
80336
+ * imagery-name: Tileset that is identified by its imagery name
80337
+ * imagery-id: Tileset that is identified by its imagery id
80338
+ *
80339
+ * @default undefined
80335
80340
  */
80336
- virtual: z.boolean().optional()
80341
+ virtual: z.enum(["tileset-all", "tileset-alias", "imagery-name", "imagery-id"]).optional()
80337
80342
  });
80338
80343
 
80339
80344
  // ../config/build/config/tile.set.js
@@ -80656,14 +80661,25 @@ var ConfigProviderMemory = class _ConfigProviderMemory extends BasemapsConfigPro
80656
80661
  return cfg;
80657
80662
  }
80658
80663
  /** Find all imagery inside this configuration and create a virtual tile set for it */
80659
- createVirtualTileSets() {
80664
+ createVirtualTileSets(createById = true) {
80660
80665
  const allLayers = [];
80661
80666
  for (const obj of this.objects.values()) {
80662
80667
  if (isConfigImagery(obj)) {
80663
- this.put(_ConfigProviderMemory.imageryToTileSet(obj));
80668
+ if (createById)
80669
+ this.put(_ConfigProviderMemory.imageryToTileSet(obj));
80664
80670
  const tileSet = this.imageryToTileSetByName(obj);
80665
80671
  allLayers.push(tileSet.layers[0]);
80666
80672
  }
80673
+ if (this.TileSet.is(obj)) {
80674
+ if (obj.aliases) {
80675
+ for (const alias of obj.aliases) {
80676
+ const aliasTs = structuredClone(obj);
80677
+ aliasTs.id = ConfigId.prefix(ConfigPrefix.TileSet, alias);
80678
+ aliasTs.virtual = "tileset-alias";
80679
+ this.put(aliasTs);
80680
+ }
80681
+ }
80682
+ }
80667
80683
  }
80668
80684
  if (allLayers.length)
80669
80685
  this.createVirtualAllTileSet(allLayers);
@@ -80680,7 +80696,7 @@ var ConfigProviderMemory = class _ConfigProviderMemory extends BasemapsConfigPro
80680
80696
  }
80681
80697
  const allTileset = {
80682
80698
  type: TileSetType.Raster,
80683
- virtual: true,
80699
+ virtual: "tileset-all",
80684
80700
  id: "ts_all",
80685
80701
  name: "all",
80686
80702
  title: "All Imagery",
@@ -80697,7 +80713,7 @@ var ConfigProviderMemory = class _ConfigProviderMemory extends BasemapsConfigPro
80697
80713
  if (existing == null) {
80698
80714
  existing = {
80699
80715
  type: TileSetType.Raster,
80700
- virtual: true,
80716
+ virtual: "imagery-name",
80701
80717
  id: targetId,
80702
80718
  title: i.title,
80703
80719
  category: i.category,
@@ -80728,7 +80744,7 @@ var ConfigProviderMemory = class _ConfigProviderMemory extends BasemapsConfigPro
80728
80744
  static imageryToTileSet(i) {
80729
80745
  const ts = {
80730
80746
  type: TileSetType.Raster,
80731
- virtual: true,
80747
+ virtual: "imagery-id",
80732
80748
  id: ConfigId.prefix(ConfigPrefix.TileSet, ConfigId.unprefix(ConfigPrefix.Imagery, i.id)),
80733
80749
  name: i.name,
80734
80750
  title: i.title,
@@ -87538,9 +87554,9 @@ var Router = class {
87538
87554
  };
87539
87555
 
87540
87556
  // ../../node_modules/@linzjs/lambda/build/src/function.js
87541
- var version2 = "v8.4.0-5-g4f6f3929";
87542
- var hash = "4f6f3929b9117c3e112f7d156ab185cb98821796";
87543
- var buildId = "16305730095-1";
87557
+ var version2 = "v8.5.0-5-gbd34894f";
87558
+ var hash = "bd34894f26d1c7827503e0cb9d48d0773ecd6775";
87559
+ var buildId = "16790799626-1";
87544
87560
  var versionInfo = { version: version2, hash, buildId };
87545
87561
  async function runFunction(req, fn) {
87546
87562
  if (!req.timer.timers.has("lambda"))
@@ -91924,18 +91940,18 @@ async function versionGet(req) {
91924
91940
  * last git version tag
91925
91941
  * @example "v6.42.1"
91926
91942
  */
91927
- version: "v8.4.0-5-g4f6f3929",
91943
+ version: "v8.5.0-5-gbd34894f",
91928
91944
  /**
91929
91945
  * Full git commit hash
91930
91946
  * @example "e4231b1ee62c276c8657c56677ced02681dfe5d6"
91931
91947
  */
91932
- hash: "4f6f3929b9117c3e112f7d156ab185cb98821796",
91948
+ hash: "bd34894f26d1c7827503e0cb9d48d0773ecd6775",
91933
91949
  /**
91934
91950
  *
91935
91951
  * The exact build that this release was run from
91936
91952
  * @example "1658821493-3"
91937
91953
  */
91938
- buildId: "16305730095-1",
91954
+ buildId: "16790799626-1",
91939
91955
  /**
91940
91956
  * Configuration id that was used to power this config
91941
91957
  * @example { "id": "cb_01JTQ7ZK49F8EY4N5DRJ3XFT73", hash: "HcByZ8WS2zpaTxFJp6wSKg2eUpwahLqAGEQdcDxKxqp6" }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basemaps/lambda-tiler",
3
- "version": "8.5.0",
3
+ "version": "8.6.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@basemaps/lambda-tiler",
3
- "version": "8.5.0",
3
+ "version": "8.6.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@basemaps/lambda-tiler",
9
- "version": "8.5.0",
9
+ "version": "8.6.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "lerc": "4.0.4",
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basemaps/lambda-tiler",
3
- "version": "8.5.0",
3
+ "version": "8.6.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/linz/basemaps.git",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basemaps/lambda-tiler",
3
- "version": "8.5.0",
3
+ "version": "8.6.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/linz/basemaps.git",
@@ -22,12 +22,12 @@
22
22
  "types": "./build/index.d.ts",
23
23
  "license": "MIT",
24
24
  "dependencies": {
25
- "@basemaps/config": "^8.3.0",
26
- "@basemaps/config-loader": "^8.5.0",
25
+ "@basemaps/config": "^8.6.0",
26
+ "@basemaps/config-loader": "^8.6.0",
27
27
  "@basemaps/geo": "^8.3.0",
28
- "@basemaps/shared": "^8.5.0",
28
+ "@basemaps/shared": "^8.6.0",
29
29
  "@basemaps/tiler": "^8.3.0",
30
- "@basemaps/tiler-sharp": "^8.3.0",
30
+ "@basemaps/tiler-sharp": "^8.6.0",
31
31
  "@linzjs/geojson": "^8.0.0",
32
32
  "@linzjs/lambda": "^4.0.0",
33
33
  "@mapbox/vector-tile": "^2.0.3",
@@ -56,5 +56,5 @@
56
56
  "@types/pixelmatch": "^5.0.0",
57
57
  "pretty-json-log": "^1.0.0"
58
58
  },
59
- "gitHead": "4f6f3929b9117c3e112f7d156ab185cb98821796"
59
+ "gitHead": "bd34894f26d1c7827503e0cb9d48d0773ecd6775"
60
60
  }