@loaders.gl/i3s 4.3.0-alpha.2 → 4.3.0-alpha.4

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.
@@ -8,7 +8,7 @@ import { COORDINATE_SYSTEM } from "./lib/parsers/constants.js";
8
8
  import { getUrlWithoutParams } from "./lib/utils/url-utils.js";
9
9
  // __VERSION__ is injected by babel-plugin-version-inline
10
10
  // @ts-ignore TS2304: Cannot find name '__VERSION__'.
11
- const VERSION = typeof "4.3.0-alpha.1" !== 'undefined' ? "4.3.0-alpha.1" : 'latest';
11
+ const VERSION = typeof "4.3.0-alpha.3" !== 'undefined' ? "4.3.0-alpha.3" : 'latest';
12
12
  const TILESET_REGEX = /layers\/[0-9]+$/;
13
13
  const LOCAL_SLPK_REGEX = /\.slpk$/;
14
14
  const TILE_HEADER_REGEX = /nodes\/([0-9-]+|root)$/;
@@ -3,7 +3,7 @@
3
3
  // Copyright vis.gl contributors
4
4
  // __VERSION__ is injected by babel-plugin-version-inline
5
5
  // @ts-ignore TS2304: Cannot find name '__VERSION__'.
6
- const VERSION = typeof "4.3.0-alpha.1" !== 'undefined' ? "4.3.0-alpha.1" : 'latest';
6
+ const VERSION = typeof "4.3.0-alpha.3" !== 'undefined' ? "4.3.0-alpha.3" : 'latest';
7
7
  /**
8
8
  * Loader for I3S node pages
9
9
  */
@@ -5,7 +5,7 @@ import { DataViewFile } from '@loaders.gl/loader-utils';
5
5
  import { parseSLPKArchive } from "./lib/parsers/parse-slpk/parse-slpk.js";
6
6
  // __VERSION__ is injected by babel-plugin-version-inline
7
7
  // @ts-ignore TS2304: Cannot find name '__VERSION__'.
8
- const VERSION = typeof "4.3.0-alpha.1" !== 'undefined' ? "4.3.0-alpha.1" : 'latest';
8
+ const VERSION = typeof "4.3.0-alpha.3" !== 'undefined' ? "4.3.0-alpha.3" : 'latest';
9
9
  /**
10
10
  * Loader for SLPK - Scene Layer Package (Archive I3S format)
11
11
  * @todo - this reloads the entire archive for every tile, should be optimized
package/dist/index.cjs CHANGED
@@ -118,7 +118,11 @@ function getUrlWithoutParams(url) {
118
118
  try {
119
119
  const urlObj = new URL(url);
120
120
  urlWithoutParams = `${urlObj.origin}${urlObj.pathname}`;
121
+ if (urlWithoutParams.startsWith("null")) {
122
+ urlWithoutParams = null;
123
+ }
121
124
  } catch (e) {
125
+ urlWithoutParams = null;
122
126
  }
123
127
  return urlWithoutParams || url;
124
128
  }
@@ -517,7 +521,7 @@ function getFeatureIdsFromFeatureIndexMetadata(featureIndex) {
517
521
  }
518
522
 
519
523
  // dist/i3s-content-loader.js
520
- var VERSION = true ? "4.3.0-alpha.1" : "latest";
524
+ var VERSION = true ? "4.3.0-alpha.3" : "latest";
521
525
  var I3SContentLoader = {
522
526
  dataType: null,
523
527
  batchType: null,
@@ -554,7 +558,7 @@ var import_core3 = require("@loaders.gl/core");
554
558
  var import_textures2 = require("@loaders.gl/textures");
555
559
 
556
560
  // dist/i3s-node-page-loader.js
557
- var VERSION2 = true ? "4.3.0-alpha.1" : "latest";
561
+ var VERSION2 = true ? "4.3.0-alpha.3" : "latest";
558
562
  var I3SNodePageLoader = {
559
563
  dataType: null,
560
564
  batchType: null,
@@ -900,7 +904,7 @@ async function normalizeTilesetData(tileset, options, context) {
900
904
  }
901
905
 
902
906
  // dist/i3s-loader.js
903
- var VERSION3 = true ? "4.3.0-alpha.1" : "latest";
907
+ var VERSION3 = true ? "4.3.0-alpha.3" : "latest";
904
908
  var TILESET_REGEX = /layers\/[0-9]+$/;
905
909
  var LOCAL_SLPK_REGEX = /\.slpk$/;
906
910
  var TILE_HEADER_REGEX = /nodes\/([0-9-]+|root)$/;
@@ -1149,7 +1153,7 @@ async function parseSLPKArchive(fileProvider, cb, fileName) {
1149
1153
  }
1150
1154
 
1151
1155
  // dist/i3s-slpk-loader.js
1152
- var VERSION4 = true ? "4.3.0-alpha.1" : "latest";
1156
+ var VERSION4 = true ? "4.3.0-alpha.3" : "latest";
1153
1157
  var SLPKLoader = {
1154
1158
  dataType: null,
1155
1159
  batchType: null,
@@ -1228,7 +1232,7 @@ function parseStringsAttribute(arrayBuffer) {
1228
1232
  }
1229
1233
 
1230
1234
  // dist/i3s-attribute-loader.js
1231
- var VERSION5 = true ? "4.3.0-alpha.1" : "latest";
1235
+ var VERSION5 = true ? "4.3.0-alpha.3" : "latest";
1232
1236
  var EMPTY_VALUE = "";
1233
1237
  var REJECTED_STATUS = "rejected";
1234
1238
  var I3SAttributeLoader = {
@@ -1368,7 +1372,7 @@ function parseSublayersTree(sublayers, url) {
1368
1372
  }
1369
1373
 
1370
1374
  // dist/i3s-building-scene-layer-loader.js
1371
- var VERSION6 = true ? "4.3.0-alpha.1" : "latest";
1375
+ var VERSION6 = true ? "4.3.0-alpha.3" : "latest";
1372
1376
  var I3SBuildingSceneLayerLoader = {
1373
1377
  dataType: null,
1374
1378
  batchType: null,
@@ -1462,7 +1466,7 @@ async function checkSupportedIndexCRS(layer) {
1462
1466
  }
1463
1467
 
1464
1468
  // dist/arcgis-webscene-loader.js
1465
- var VERSION7 = true ? "4.3.0-alpha.1" : "latest";
1469
+ var VERSION7 = true ? "4.3.0-alpha.3" : "latest";
1466
1470
  var ArcGISWebSceneLoader = {
1467
1471
  dataType: null,
1468
1472
  batchType: null,