@loaders.gl/mvt 4.1.1 → 4.2.0-alpha.2

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/dist.dev.js CHANGED
@@ -2349,7 +2349,7 @@ var __exports__ = (() => {
2349
2349
  }
2350
2350
 
2351
2351
  // src/mvt-loader.ts
2352
- var VERSION = true ? "4.1.1" : "latest";
2352
+ var VERSION = true ? "4.2.0-alpha.2" : "latest";
2353
2353
  var MVTWorkerLoader = {
2354
2354
  name: "Mapbox Vector Tile",
2355
2355
  id: "mvt",
@@ -2582,7 +2582,7 @@ var __exports__ = (() => {
2582
2582
  }
2583
2583
 
2584
2584
  // src/tilejson-loader.ts
2585
- var VERSION2 = true ? "4.1.1" : "latest";
2585
+ var VERSION2 = true ? "4.2.0-alpha.2" : "latest";
2586
2586
  var TileJSONLoader = {
2587
2587
  name: "TileJSON",
2588
2588
  id: "tilejson",
@@ -2694,7 +2694,7 @@ var __exports__ = (() => {
2694
2694
  }
2695
2695
 
2696
2696
  // ../images/src/lib/utils/version.ts
2697
- var VERSION3 = true ? "4.1.1" : "latest";
2697
+ var VERSION3 = true ? "4.2.0-alpha.2" : "latest";
2698
2698
 
2699
2699
  // ../images/src/lib/category-api/image-type.ts
2700
2700
  var parseImageNode = globalThis.loaders?.parseImageNode;
@@ -1,5 +1,5 @@
1
1
  import parseMVT from "./lib/parse-mvt.js";
2
- const VERSION = typeof "4.1.1" !== 'undefined' ? "4.1.1" : 'latest';
2
+ const VERSION = typeof "4.2.0-alpha.2" !== 'undefined' ? "4.2.0-alpha.2" : 'latest';
3
3
  export const MVTWorkerLoader = {
4
4
  name: 'Mapbox Vector Tile',
5
5
  id: 'mvt',
@@ -1 +1 @@
1
- {"version":3,"file":"mvt-loader.js","names":["parseMVT","VERSION","MVTWorkerLoader","name","id","module","version","extensions","mimeTypes","worker","category","options","mvt","shape","coordinates","layerProperty","layers","undefined","tileIndex","MVTLoader","parse","arrayBuffer","parseSync","binary"],"sources":["../src/mvt-loader.ts"],"sourcesContent":["import type {Loader, LoaderWithParser} from '@loaders.gl/loader-utils';\nimport type {MVTLoaderOptions} from './lib/types';\n// import type {\n// Feature,\n// BinaryFeatureCollection,\n// GeoJSONTable,\n// Geometry,\n// GeoJsonProperties\n// } from '@loaders.gl/schema';\nimport parseMVT from './lib/parse-mvt';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\n/**\n * Worker loader for the Mapbox Vector Tile format\n */\nexport const MVTWorkerLoader: Loader<\n any, // BinaryFeatureCollection | GeoJSONTable | Feature<Geometry, GeoJsonProperties>,\n never,\n MVTLoaderOptions\n> = {\n name: 'Mapbox Vector Tile',\n id: 'mvt',\n module: 'mvt',\n version: VERSION,\n // Note: ArcGIS uses '.pbf' extension and 'application/octet-stream'\n extensions: ['mvt', 'pbf'],\n mimeTypes: [\n // https://www.iana.org/assignments/media-types/application/vnd.mapbox-vector-tile\n 'application/vnd.mapbox-vector-tile',\n 'application/x-protobuf'\n // 'application/octet-stream'\n ],\n worker: true,\n category: 'geometry',\n options: {\n mvt: {\n shape: 'geojson',\n coordinates: 'local',\n layerProperty: 'layerName',\n layers: undefined,\n tileIndex: null\n }\n }\n};\n\n/**\n * Loader for the Mapbox Vector Tile format\n */\nexport const MVTLoader: LoaderWithParser<\n any, // BinaryFeatureCollection | GeoJSONTable | Feature<Geometry, GeoJsonProperties>,\n never,\n MVTLoaderOptions\n> = {\n ...MVTWorkerLoader,\n parse: async (arrayBuffer, options?: MVTLoaderOptions) => parseMVT(arrayBuffer, options),\n parseSync: parseMVT,\n binary: true\n};\n"],"mappings":"OASOA,QAAQ;AAIf,MAAMC,OAAO,GAAG,cAAkB,KAAK,WAAW,aAAiB,QAAQ;AAK3E,OAAO,MAAMC,eAIZ,GAAG;EACFC,IAAI,EAAE,oBAAoB;EAC1BC,EAAE,EAAE,KAAK;EACTC,MAAM,EAAE,KAAK;EACbC,OAAO,EAAEL,OAAO;EAEhBM,UAAU,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;EAC1BC,SAAS,EAAE,CAET,oCAAoC,EACpC,wBAAwB,CAEzB;EACDC,MAAM,EAAE,IAAI;EACZC,QAAQ,EAAE,UAAU;EACpBC,OAAO,EAAE;IACPC,GAAG,EAAE;MACHC,KAAK,EAAE,SAAS;MAChBC,WAAW,EAAE,OAAO;MACpBC,aAAa,EAAE,WAAW;MAC1BC,MAAM,EAAEC,SAAS;MACjBC,SAAS,EAAE;IACb;EACF;AACF,CAAC;AAKD,OAAO,MAAMC,SAIZ,GAAG;EACF,GAAGjB,eAAe;EAClBkB,KAAK,EAAE,MAAAA,CAAOC,WAAW,EAAEV,OAA0B,KAAKX,QAAQ,CAACqB,WAAW,EAAEV,OAAO,CAAC;EACxFW,SAAS,EAAEtB,QAAQ;EACnBuB,MAAM,EAAE;AACV,CAAC"}
1
+ {"version":3,"file":"mvt-loader.js","names":["parseMVT","VERSION","MVTWorkerLoader","name","id","module","version","extensions","mimeTypes","worker","category","options","mvt","shape","coordinates","layerProperty","layers","undefined","tileIndex","MVTLoader","parse","arrayBuffer","parseSync","binary"],"sources":["../src/mvt-loader.ts"],"sourcesContent":["import type {Loader, LoaderWithParser} from '@loaders.gl/loader-utils';\nimport type {MVTLoaderOptions} from './lib/types';\n// import type {\n// Feature,\n// BinaryFeatureCollection,\n// GeoJSONTable,\n// Geometry,\n// GeoJsonProperties\n// } from '@loaders.gl/schema';\nimport parseMVT from './lib/parse-mvt';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\n/**\n * Worker loader for the Mapbox Vector Tile format\n */\nexport const MVTWorkerLoader: Loader<\n any, // BinaryFeatureCollection | GeoJSONTable | Feature<Geometry, GeoJsonProperties>,\n never,\n MVTLoaderOptions\n> = {\n name: 'Mapbox Vector Tile',\n id: 'mvt',\n module: 'mvt',\n version: VERSION,\n // Note: ArcGIS uses '.pbf' extension and 'application/octet-stream'\n extensions: ['mvt', 'pbf'],\n mimeTypes: [\n // https://www.iana.org/assignments/media-types/application/vnd.mapbox-vector-tile\n 'application/vnd.mapbox-vector-tile',\n 'application/x-protobuf'\n // 'application/octet-stream'\n ],\n worker: true,\n category: 'geometry',\n options: {\n mvt: {\n shape: 'geojson',\n coordinates: 'local',\n layerProperty: 'layerName',\n layers: undefined,\n tileIndex: null\n }\n }\n};\n\n/**\n * Loader for the Mapbox Vector Tile format\n */\nexport const MVTLoader: LoaderWithParser<\n any, // BinaryFeatureCollection | GeoJSONTable | Feature<Geometry, GeoJsonProperties>,\n never,\n MVTLoaderOptions\n> = {\n ...MVTWorkerLoader,\n parse: async (arrayBuffer, options?: MVTLoaderOptions) => parseMVT(arrayBuffer, options),\n parseSync: parseMVT,\n binary: true\n};\n"],"mappings":"OASOA,QAAQ;AAIf,MAAMC,OAAO,GAAG,sBAAkB,KAAK,WAAW,qBAAiB,QAAQ;AAK3E,OAAO,MAAMC,eAIZ,GAAG;EACFC,IAAI,EAAE,oBAAoB;EAC1BC,EAAE,EAAE,KAAK;EACTC,MAAM,EAAE,KAAK;EACbC,OAAO,EAAEL,OAAO;EAEhBM,UAAU,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;EAC1BC,SAAS,EAAE,CAET,oCAAoC,EACpC,wBAAwB,CAEzB;EACDC,MAAM,EAAE,IAAI;EACZC,QAAQ,EAAE,UAAU;EACpBC,OAAO,EAAE;IACPC,GAAG,EAAE;MACHC,KAAK,EAAE,SAAS;MAChBC,WAAW,EAAE,OAAO;MACpBC,aAAa,EAAE,WAAW;MAC1BC,MAAM,EAAEC,SAAS;MACjBC,SAAS,EAAE;IACb;EACF;AACF,CAAC;AAKD,OAAO,MAAMC,SAIZ,GAAG;EACF,GAAGjB,eAAe;EAClBkB,KAAK,EAAE,MAAAA,CAAOC,WAAW,EAAEV,OAA0B,KAAKX,QAAQ,CAACqB,WAAW,EAAEV,OAAO,CAAC;EACxFW,SAAS,EAAEtB,QAAQ;EACnBuB,MAAM,EAAE;AACV,CAAC"}
@@ -2303,7 +2303,7 @@
2303
2303
  }
2304
2304
 
2305
2305
  // src/mvt-loader.ts
2306
- var VERSION = true ? "4.1.1" : "latest";
2306
+ var VERSION = true ? "4.2.0-alpha.2" : "latest";
2307
2307
  var MVTWorkerLoader = {
2308
2308
  name: "Mapbox Vector Tile",
2309
2309
  id: "mvt",
@@ -1,5 +1,5 @@
1
1
  import { parseTileJSON } from "./lib/parse-tilejson.js";
2
- const VERSION = typeof "4.1.1" !== 'undefined' ? "4.1.1" : 'latest';
2
+ const VERSION = typeof "4.2.0-alpha.2" !== 'undefined' ? "4.2.0-alpha.2" : 'latest';
3
3
  export const TileJSONLoader = {
4
4
  name: 'TileJSON',
5
5
  id: 'tilejson',
@@ -1 +1 @@
1
- {"version":3,"file":"tilejson-loader.js","names":["parseTileJSON","VERSION","TileJSONLoader","name","id","module","version","worker","extensions","mimeTypes","text","options","tilejson","maxValues","undefined","parse","arrayBuffer","jsonString","TextDecoder","decode","json","JSON","tilejsonOptions","parseTextSync"],"sources":["../src/tilejson-loader.ts"],"sourcesContent":["// loaders.gl\n// SPDX-License-Identifier: MIT\n// Copyright (c) vis.gl contributors\n\nimport type {LoaderWithParser, LoaderOptions} from '@loaders.gl/loader-utils';\nimport type {TileJSON} from './lib/parse-tilejson';\nimport {parseTileJSON} from './lib/parse-tilejson';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\nexport type TileJSONLoaderOptions = LoaderOptions & {\n /** Options for the TileJSONLoader */\n tilejson?: {\n /** Max number of unique values */\n maxValues?: number;\n };\n};\n\n/**\n * Loader for TileJSON metadata\n */\nexport const TileJSONLoader: LoaderWithParser<TileJSON, never, TileJSONLoaderOptions> = {\n name: 'TileJSON',\n id: 'tilejson',\n module: 'pmtiles',\n version: VERSION,\n worker: true,\n extensions: ['json'],\n mimeTypes: ['application/json'],\n text: true,\n options: {\n tilejson: {\n maxValues: undefined\n }\n },\n parse: async (arrayBuffer, options?: TileJSONLoaderOptions) => {\n const jsonString = new TextDecoder().decode(arrayBuffer);\n const json = JSON.parse(jsonString);\n const tilejsonOptions = {...TileJSONLoader.options.tilejson, ...options?.tilejson};\n return parseTileJSON(json, tilejsonOptions) as TileJSON;\n },\n parseTextSync: (text, options) => {\n const json = JSON.parse(text);\n const tilejsonOptions = {...TileJSONLoader.options.tilejson, ...options?.tilejson};\n return parseTileJSON(json, tilejsonOptions) as TileJSON;\n }\n};\n"],"mappings":"SAMQA,aAAa;AAIrB,MAAMC,OAAO,GAAG,cAAkB,KAAK,WAAW,aAAiB,QAAQ;AAa3E,OAAO,MAAMC,cAAwE,GAAG;EACtFC,IAAI,EAAE,UAAU;EAChBC,EAAE,EAAE,UAAU;EACdC,MAAM,EAAE,SAAS;EACjBC,OAAO,EAAEL,OAAO;EAChBM,MAAM,EAAE,IAAI;EACZC,UAAU,EAAE,CAAC,MAAM,CAAC;EACpBC,SAAS,EAAE,CAAC,kBAAkB,CAAC;EAC/BC,IAAI,EAAE,IAAI;EACVC,OAAO,EAAE;IACPC,QAAQ,EAAE;MACRC,SAAS,EAAEC;IACb;EACF,CAAC;EACDC,KAAK,EAAE,MAAAA,CAAOC,WAAW,EAAEL,OAA+B,KAAK;IAC7D,MAAMM,UAAU,GAAG,IAAIC,WAAW,CAAC,CAAC,CAACC,MAAM,CAACH,WAAW,CAAC;IACxD,MAAMI,IAAI,GAAGC,IAAI,CAACN,KAAK,CAACE,UAAU,CAAC;IACnC,MAAMK,eAAe,GAAG;MAAC,GAAGpB,cAAc,CAACS,OAAO,CAACC,QAAQ;MAAE,IAAGD,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEC,QAAQ;IAAA,CAAC;IAClF,OAAOZ,aAAa,CAACoB,IAAI,EAAEE,eAAe,CAAC;EAC7C,CAAC;EACDC,aAAa,EAAEA,CAACb,IAAI,EAAEC,OAAO,KAAK;IAChC,MAAMS,IAAI,GAAGC,IAAI,CAACN,KAAK,CAACL,IAAI,CAAC;IAC7B,MAAMY,eAAe,GAAG;MAAC,GAAGpB,cAAc,CAACS,OAAO,CAACC,QAAQ;MAAE,IAAGD,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEC,QAAQ;IAAA,CAAC;IAClF,OAAOZ,aAAa,CAACoB,IAAI,EAAEE,eAAe,CAAC;EAC7C;AACF,CAAC"}
1
+ {"version":3,"file":"tilejson-loader.js","names":["parseTileJSON","VERSION","TileJSONLoader","name","id","module","version","worker","extensions","mimeTypes","text","options","tilejson","maxValues","undefined","parse","arrayBuffer","jsonString","TextDecoder","decode","json","JSON","tilejsonOptions","parseTextSync"],"sources":["../src/tilejson-loader.ts"],"sourcesContent":["// loaders.gl\n// SPDX-License-Identifier: MIT\n// Copyright (c) vis.gl contributors\n\nimport type {LoaderWithParser, LoaderOptions} from '@loaders.gl/loader-utils';\nimport type {TileJSON} from './lib/parse-tilejson';\nimport {parseTileJSON} from './lib/parse-tilejson';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\nexport type TileJSONLoaderOptions = LoaderOptions & {\n /** Options for the TileJSONLoader */\n tilejson?: {\n /** Max number of unique values */\n maxValues?: number;\n };\n};\n\n/**\n * Loader for TileJSON metadata\n */\nexport const TileJSONLoader: LoaderWithParser<TileJSON, never, TileJSONLoaderOptions> = {\n name: 'TileJSON',\n id: 'tilejson',\n module: 'pmtiles',\n version: VERSION,\n worker: true,\n extensions: ['json'],\n mimeTypes: ['application/json'],\n text: true,\n options: {\n tilejson: {\n maxValues: undefined\n }\n },\n parse: async (arrayBuffer, options?: TileJSONLoaderOptions) => {\n const jsonString = new TextDecoder().decode(arrayBuffer);\n const json = JSON.parse(jsonString);\n const tilejsonOptions = {...TileJSONLoader.options.tilejson, ...options?.tilejson};\n return parseTileJSON(json, tilejsonOptions) as TileJSON;\n },\n parseTextSync: (text, options) => {\n const json = JSON.parse(text);\n const tilejsonOptions = {...TileJSONLoader.options.tilejson, ...options?.tilejson};\n return parseTileJSON(json, tilejsonOptions) as TileJSON;\n }\n};\n"],"mappings":"SAMQA,aAAa;AAIrB,MAAMC,OAAO,GAAG,sBAAkB,KAAK,WAAW,qBAAiB,QAAQ;AAa3E,OAAO,MAAMC,cAAwE,GAAG;EACtFC,IAAI,EAAE,UAAU;EAChBC,EAAE,EAAE,UAAU;EACdC,MAAM,EAAE,SAAS;EACjBC,OAAO,EAAEL,OAAO;EAChBM,MAAM,EAAE,IAAI;EACZC,UAAU,EAAE,CAAC,MAAM,CAAC;EACpBC,SAAS,EAAE,CAAC,kBAAkB,CAAC;EAC/BC,IAAI,EAAE,IAAI;EACVC,OAAO,EAAE;IACPC,QAAQ,EAAE;MACRC,SAAS,EAAEC;IACb;EACF,CAAC;EACDC,KAAK,EAAE,MAAAA,CAAOC,WAAW,EAAEL,OAA+B,KAAK;IAC7D,MAAMM,UAAU,GAAG,IAAIC,WAAW,CAAC,CAAC,CAACC,MAAM,CAACH,WAAW,CAAC;IACxD,MAAMI,IAAI,GAAGC,IAAI,CAACN,KAAK,CAACE,UAAU,CAAC;IACnC,MAAMK,eAAe,GAAG;MAAC,GAAGpB,cAAc,CAACS,OAAO,CAACC,QAAQ;MAAE,IAAGD,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEC,QAAQ;IAAA,CAAC;IAClF,OAAOZ,aAAa,CAACoB,IAAI,EAAEE,eAAe,CAAC;EAC7C,CAAC;EACDC,aAAa,EAAEA,CAACb,IAAI,EAAEC,OAAO,KAAK;IAChC,MAAMS,IAAI,GAAGC,IAAI,CAACN,KAAK,CAACL,IAAI,CAAC;IAC7B,MAAMY,eAAe,GAAG;MAAC,GAAGpB,cAAc,CAACS,OAAO,CAACC,QAAQ;MAAE,IAAGD,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEC,QAAQ;IAAA,CAAC;IAClF,OAAOZ,aAAa,CAACoB,IAAI,EAAEE,eAAe,CAAC;EAC7C;AACF,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@loaders.gl/mvt",
3
3
  "description": "Loader for Mapbox Vector Tiles",
4
- "version": "4.1.1",
4
+ "version": "4.2.0-alpha.2",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "publishConfig": {
@@ -40,15 +40,15 @@
40
40
  "build-worker": "esbuild src/workers/mvt-worker.ts --bundle --outfile=dist/mvt-worker.js --define:__VERSION__=\\\"$npm_package_version\\\""
41
41
  },
42
42
  "dependencies": {
43
- "@loaders.gl/gis": "4.1.1",
44
- "@loaders.gl/images": "4.1.1",
45
- "@loaders.gl/loader-utils": "4.1.1",
46
- "@loaders.gl/schema": "4.1.1",
43
+ "@loaders.gl/gis": "4.2.0-alpha.2",
44
+ "@loaders.gl/images": "4.2.0-alpha.2",
45
+ "@loaders.gl/loader-utils": "4.2.0-alpha.2",
46
+ "@loaders.gl/schema": "4.2.0-alpha.2",
47
47
  "@math.gl/polygon": "^4.0.0",
48
48
  "pbf": "^3.2.1"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@types/pbf": "^3.0.2"
52
52
  },
53
- "gitHead": "b4a8cb4e5c2b67ac0e1afaa21ae45b3a45a91db0"
53
+ "gitHead": "d66a6a4626ea84c5f2cad5fa5cf7ebb6943c57c8"
54
54
  }