@loaders.gl/tile-converter 4.0.3 → 4.1.0-alpha.1

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.
@@ -16,7 +16,7 @@ sceneServerRouter.get('*', async function (req, res, next) {
16
16
  });
17
17
  export const router = express.Router();
18
18
  router.get('*', async function (req, res, next) {
19
- const file = await getFileByUrl(req.path);
19
+ const file = await getFileByUrl(req.path.replace(/\/+$/, ''));
20
20
  if (file) {
21
21
  res.send(Buffer.from(file));
22
22
  } else {
@@ -1 +1 @@
1
- {"version":3,"file":"slpk-router.js","names":["express","getFileByUrl","createSceneServer","textDecoder","TextDecoder","sceneServerRouter","Router","get","req","res","next","file","layer","JSON","parse","decode","sceneServerResponse","name","send","status","router","path","Buffer","from"],"sources":["../../../src/i3s-server/routes/slpk-router.ts"],"sourcesContent":["import express from 'express';\nimport {getFileByUrl} from '../controllers/slpk-controller';\nimport {createSceneServer} from '../utils/create-scene-server';\n\nconst textDecoder = new TextDecoder();\n\nexport const sceneServerRouter = express.Router();\nsceneServerRouter.get('*', async function (req, res, next) {\n const file = await getFileByUrl('/');\n if (file) {\n const layer = JSON.parse(textDecoder.decode(file));\n const sceneServerResponse = createSceneServer(layer.name, layer);\n res.send(sceneServerResponse);\n } else {\n res.status(404);\n res.send('File not found');\n }\n});\n\nexport const router = express.Router();\nrouter.get('*', async function (req, res, next) {\n const file = await getFileByUrl(req.path);\n if (file) {\n res.send(Buffer.from(file));\n } else {\n res.status(404);\n res.send('File not found');\n }\n});\n"],"mappings":"AAAA,OAAOA,OAAO,MAAM,SAAS;AAAC,SACtBC,YAAY;AAAA,SACZC,iBAAiB;AAEzB,MAAMC,WAAW,GAAG,IAAIC,WAAW,CAAC,CAAC;AAErC,OAAO,MAAMC,iBAAiB,GAAGL,OAAO,CAACM,MAAM,CAAC,CAAC;AACjDD,iBAAiB,CAACE,GAAG,CAAC,GAAG,EAAE,gBAAgBC,GAAG,EAAEC,GAAG,EAAEC,IAAI,EAAE;EACzD,MAAMC,IAAI,GAAG,MAAMV,YAAY,CAAC,GAAG,CAAC;EACpC,IAAIU,IAAI,EAAE;IACR,MAAMC,KAAK,GAAGC,IAAI,CAACC,KAAK,CAACX,WAAW,CAACY,MAAM,CAACJ,IAAI,CAAC,CAAC;IAClD,MAAMK,mBAAmB,GAAGd,iBAAiB,CAACU,KAAK,CAACK,IAAI,EAAEL,KAAK,CAAC;IAChEH,GAAG,CAACS,IAAI,CAACF,mBAAmB,CAAC;EAC/B,CAAC,MAAM;IACLP,GAAG,CAACU,MAAM,CAAC,GAAG,CAAC;IACfV,GAAG,CAACS,IAAI,CAAC,gBAAgB,CAAC;EAC5B;AACF,CAAC,CAAC;AAEF,OAAO,MAAME,MAAM,GAAGpB,OAAO,CAACM,MAAM,CAAC,CAAC;AACtCc,MAAM,CAACb,GAAG,CAAC,GAAG,EAAE,gBAAgBC,GAAG,EAAEC,GAAG,EAAEC,IAAI,EAAE;EAC9C,MAAMC,IAAI,GAAG,MAAMV,YAAY,CAACO,GAAG,CAACa,IAAI,CAAC;EACzC,IAAIV,IAAI,EAAE;IACRF,GAAG,CAACS,IAAI,CAACI,MAAM,CAACC,IAAI,CAACZ,IAAI,CAAC,CAAC;EAC7B,CAAC,MAAM;IACLF,GAAG,CAACU,MAAM,CAAC,GAAG,CAAC;IACfV,GAAG,CAACS,IAAI,CAAC,gBAAgB,CAAC;EAC5B;AACF,CAAC,CAAC"}
1
+ {"version":3,"file":"slpk-router.js","names":["express","getFileByUrl","createSceneServer","textDecoder","TextDecoder","sceneServerRouter","Router","get","req","res","next","file","layer","JSON","parse","decode","sceneServerResponse","name","send","status","router","path","replace","Buffer","from"],"sources":["../../../src/i3s-server/routes/slpk-router.ts"],"sourcesContent":["import express from 'express';\nimport {getFileByUrl} from '../controllers/slpk-controller';\nimport {createSceneServer} from '../utils/create-scene-server';\n\nconst textDecoder = new TextDecoder();\n\nexport const sceneServerRouter = express.Router();\nsceneServerRouter.get('*', async function (req, res, next) {\n const file = await getFileByUrl('/');\n if (file) {\n const layer = JSON.parse(textDecoder.decode(file));\n const sceneServerResponse = createSceneServer(layer.name, layer);\n res.send(sceneServerResponse);\n } else {\n res.status(404);\n res.send('File not found');\n }\n});\n\nexport const router = express.Router();\nrouter.get('*', async function (req, res, next) {\n const file = await getFileByUrl(req.path.replace(/\\/+$/, ''));\n if (file) {\n res.send(Buffer.from(file));\n } else {\n res.status(404);\n res.send('File not found');\n }\n});\n"],"mappings":"AAAA,OAAOA,OAAO,MAAM,SAAS;AAAC,SACtBC,YAAY;AAAA,SACZC,iBAAiB;AAEzB,MAAMC,WAAW,GAAG,IAAIC,WAAW,CAAC,CAAC;AAErC,OAAO,MAAMC,iBAAiB,GAAGL,OAAO,CAACM,MAAM,CAAC,CAAC;AACjDD,iBAAiB,CAACE,GAAG,CAAC,GAAG,EAAE,gBAAgBC,GAAG,EAAEC,GAAG,EAAEC,IAAI,EAAE;EACzD,MAAMC,IAAI,GAAG,MAAMV,YAAY,CAAC,GAAG,CAAC;EACpC,IAAIU,IAAI,EAAE;IACR,MAAMC,KAAK,GAAGC,IAAI,CAACC,KAAK,CAACX,WAAW,CAACY,MAAM,CAACJ,IAAI,CAAC,CAAC;IAClD,MAAMK,mBAAmB,GAAGd,iBAAiB,CAACU,KAAK,CAACK,IAAI,EAAEL,KAAK,CAAC;IAChEH,GAAG,CAACS,IAAI,CAACF,mBAAmB,CAAC;EAC/B,CAAC,MAAM;IACLP,GAAG,CAACU,MAAM,CAAC,GAAG,CAAC;IACfV,GAAG,CAACS,IAAI,CAAC,gBAAgB,CAAC;EAC5B;AACF,CAAC,CAAC;AAEF,OAAO,MAAME,MAAM,GAAGpB,OAAO,CAACM,MAAM,CAAC,CAAC;AACtCc,MAAM,CAACb,GAAG,CAAC,GAAG,EAAE,gBAAgBC,GAAG,EAAEC,GAAG,EAAEC,IAAI,EAAE;EAC9C,MAAMC,IAAI,GAAG,MAAMV,YAAY,CAACO,GAAG,CAACa,IAAI,CAACC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;EAC7D,IAAIX,IAAI,EAAE;IACRF,GAAG,CAACS,IAAI,CAACK,MAAM,CAACC,IAAI,CAACb,IAAI,CAAC,CAAC;EAC7B,CAAC,MAAM;IACLF,GAAG,CAACU,MAAM,CAAC,GAAG,CAAC;IACfV,GAAG,CAACS,IAAI,CAAC,gBAAgB,CAAC;EAC5B;AACF,CAAC,CAAC"}
package/dist/index.cjs CHANGED
@@ -4203,6 +4203,7 @@ var I3SConverter = class {
4203
4203
  this.options.maxDepth
4204
4204
  );
4205
4205
  this.progresses[PROGRESS_PHASE1_COUNT].stopMonitoring();
4206
+ console.log(`[finalizing conversion]`);
4206
4207
  this.layers0.attributeStorageInfo = this.attributeMetadataInfo.attributeStorageInfo;
4207
4208
  this.layers0.fields = this.attributeMetadataInfo.fields;
4208
4209
  this.layers0.popupInfo = this.attributeMetadataInfo.popupInfo;