@deck.gl/geo-layers 8.7.0-alpha.8 → 8.7.0-alpha.9

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
@@ -7,7 +7,7 @@
7
7
  exports["deck"] = factory(require("deck"), require("luma"), require("h3"));
8
8
  else
9
9
  root["deck"] = factory(root["deck"], root["luma"], root["h3"]);
10
- })(window, function(__WEBPACK_EXTERNAL_MODULE__deck_gl_layers__, __WEBPACK_EXTERNAL_MODULE__luma_gl_core__, __WEBPACK_EXTERNAL_MODULE_h3_js__) {
10
+ })(window, function(__WEBPACK_EXTERNAL_MODULE__deck_gl_core__, __WEBPACK_EXTERNAL_MODULE__luma_gl_core__, __WEBPACK_EXTERNAL_MODULE_h3_js__) {
11
11
  return /******/ (function(modules) { // webpackBootstrap
12
12
  /******/ // The module cache
13
13
  /******/ var installedModules = {};
@@ -2965,7 +2965,7 @@ async function parse3DTile(arrayBuffer, byteOffset = 0, options, context, tile =
2965
2965
  "use strict";
2966
2966
  __webpack_require__.r(__webpack_exports__);
2967
2967
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VERSION", function() { return VERSION; });
2968
- const VERSION = true ? "3.1.0" : undefined;
2968
+ const VERSION = true ? "3.1.3" : undefined;
2969
2969
  //# sourceMappingURL=version.js.map
2970
2970
 
2971
2971
  /***/ }),
@@ -3135,7 +3135,7 @@ function hasImplicitTilingExtension(tilesetJson) {
3135
3135
  /*!**********************************************************************************!*\
3136
3136
  !*** /Users/alasarr/dev/deck.gl/node_modules/@loaders.gl/core/dist/esm/index.js ***!
3137
3137
  \**********************************************************************************/
3138
- /*! exports provided: fetchFile, readArrayBuffer, readFileSync, writeFile, writeFileSync, setLoaderOptions, registerLoaders, selectLoader, selectLoaderSync, parse, parseSync, parseInBatches, load, loadInBatches, encode, encodeSync, encodeInBatches, encodeText, encodeURLtoURL, save, saveSync, setPathPrefix, getPathPrefix, resolvePath, RequestScheduler, makeIterator, makeStream, makeDOMStream, makeNodeStream, NullWorkerLoader, NullLoader, JSONLoader, _fetchProgress, _BrowserFileSystem, _unregisterLoaders, isBrowser, isWorker, self, window, global, document, assert, forEach, concatenateArrayBuffersAsync, makeTextDecoderIterator, makeTextEncoderIterator, makeLineIterator, makeNumberedLineIterator, isPureObject, isPromise, isIterable, isAsyncIterable, isIterator, isResponse, isReadableStream, isWritableStream */
3138
+ /*! exports provided: fetchFile, readArrayBuffer, readFileSync, writeFile, writeFileSync, setLoaderOptions, registerLoaders, selectLoader, selectLoaderSync, parse, parseSync, parseInBatches, load, loadInBatches, encode, encodeSync, encodeInBatches, encodeText, encodeURLtoURL, save, saveSync, setPathPrefix, getPathPrefix, resolvePath, RequestScheduler, makeIterator, makeStream, NullWorkerLoader, NullLoader, JSONLoader, _fetchProgress, _BrowserFileSystem, _unregisterLoaders, isBrowser, isWorker, self, window, global, document, assert, forEach, concatenateArrayBuffersAsync, makeTextDecoderIterator, makeTextEncoderIterator, makeLineIterator, makeNumberedLineIterator, isPureObject, isPromise, isIterable, isAsyncIterable, isIterator, isResponse, isReadableStream, isWritableStream */
3139
3139
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3140
3140
 
3141
3141
  "use strict";
@@ -3208,27 +3208,21 @@ __webpack_require__.r(__webpack_exports__);
3208
3208
  /* harmony import */ var _iterators_make_iterator_make_iterator__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./iterators/make-iterator/make-iterator */ "../../node_modules/@loaders.gl/core/dist/esm/iterators/make-iterator/make-iterator.js");
3209
3209
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "makeIterator", function() { return _iterators_make_iterator_make_iterator__WEBPACK_IMPORTED_MODULE_15__["makeIterator"]; });
3210
3210
 
3211
- /* harmony import */ var _iterators_make_stream_make_stream__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./iterators/make-stream/make-stream */ "../../node_modules/@loaders.gl/core/dist/esm/iterators/make-stream/make-stream.js");
3212
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "makeStream", function() { return _iterators_make_stream_make_stream__WEBPACK_IMPORTED_MODULE_16__["makeStream"]; });
3211
+ /* harmony import */ var _iterators_make_stream_make_node_stream__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./iterators/make-stream/make-node-stream */ "../../node_modules/@loaders.gl/core/dist/esm/iterators/make-stream/make-dom-stream.js");
3212
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "makeStream", function() { return _iterators_make_stream_make_node_stream__WEBPACK_IMPORTED_MODULE_16__["makeStream"]; });
3213
3213
 
3214
- /* harmony import */ var _iterators_make_stream_make_dom_stream__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./iterators/make-stream/make-dom-stream */ "../../node_modules/@loaders.gl/core/dist/esm/iterators/make-stream/make-dom-stream.js");
3215
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "makeDOMStream", function() { return _iterators_make_stream_make_dom_stream__WEBPACK_IMPORTED_MODULE_17__["makeDOMStream"]; });
3214
+ /* harmony import */ var _null_loader__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./null-loader */ "../../node_modules/@loaders.gl/core/dist/esm/null-loader.js");
3215
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NullWorkerLoader", function() { return _null_loader__WEBPACK_IMPORTED_MODULE_17__["NullWorkerLoader"]; });
3216
3216
 
3217
- /* harmony import */ var _iterators_make_stream_make_node_stream__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./iterators/make-stream/make-node-stream */ 8);
3218
- /* harmony import */ var _iterators_make_stream_make_node_stream__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_iterators_make_stream_make_node_stream__WEBPACK_IMPORTED_MODULE_18__);
3219
- /* harmony reexport (default from non-harmony) */ __webpack_require__.d(__webpack_exports__, "makeNodeStream", function() { return _iterators_make_stream_make_node_stream__WEBPACK_IMPORTED_MODULE_18___default.a; });
3220
- /* harmony import */ var _null_loader__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./null-loader */ "../../node_modules/@loaders.gl/core/dist/esm/null-loader.js");
3221
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NullWorkerLoader", function() { return _null_loader__WEBPACK_IMPORTED_MODULE_19__["NullWorkerLoader"]; });
3222
-
3223
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NullLoader", function() { return _null_loader__WEBPACK_IMPORTED_MODULE_19__["NullLoader"]; });
3217
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NullLoader", function() { return _null_loader__WEBPACK_IMPORTED_MODULE_17__["NullLoader"]; });
3224
3218
 
3225
3219
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "JSONLoader", function() { return _loaders_gl_loader_utils__WEBPACK_IMPORTED_MODULE_14__["JSONLoader"]; });
3226
3220
 
3227
- /* harmony import */ var _lib_progress_fetch_progress__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./lib/progress/fetch-progress */ "../../node_modules/@loaders.gl/core/dist/esm/lib/progress/fetch-progress.js");
3228
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "_fetchProgress", function() { return _lib_progress_fetch_progress__WEBPACK_IMPORTED_MODULE_20__["default"]; });
3221
+ /* harmony import */ var _lib_progress_fetch_progress__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./lib/progress/fetch-progress */ "../../node_modules/@loaders.gl/core/dist/esm/lib/progress/fetch-progress.js");
3222
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "_fetchProgress", function() { return _lib_progress_fetch_progress__WEBPACK_IMPORTED_MODULE_18__["default"]; });
3229
3223
 
3230
- /* harmony import */ var _lib_filesystems_browser_filesystem__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./lib/filesystems/browser-filesystem */ "../../node_modules/@loaders.gl/core/dist/esm/lib/filesystems/browser-filesystem.js");
3231
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "_BrowserFileSystem", function() { return _lib_filesystems_browser_filesystem__WEBPACK_IMPORTED_MODULE_21__["default"]; });
3224
+ /* harmony import */ var _lib_filesystems_browser_filesystem__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./lib/filesystems/browser-filesystem */ "../../node_modules/@loaders.gl/core/dist/esm/lib/filesystems/browser-filesystem.js");
3225
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "_BrowserFileSystem", function() { return _lib_filesystems_browser_filesystem__WEBPACK_IMPORTED_MODULE_19__["default"]; });
3232
3226
 
3233
3227
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "_unregisterLoaders", function() { return _lib_api_register_loaders__WEBPACK_IMPORTED_MODULE_5__["_unregisterLoaders"]; });
3234
3228
 
@@ -3258,24 +3252,22 @@ __webpack_require__.r(__webpack_exports__);
3258
3252
 
3259
3253
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "makeNumberedLineIterator", function() { return _loaders_gl_loader_utils__WEBPACK_IMPORTED_MODULE_14__["makeNumberedLineIterator"]; });
3260
3254
 
3261
- /* harmony import */ var _javascript_utils_is_type__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./javascript-utils/is-type */ "../../node_modules/@loaders.gl/core/dist/esm/javascript-utils/is-type.js");
3262
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isPureObject", function() { return _javascript_utils_is_type__WEBPACK_IMPORTED_MODULE_22__["isPureObject"]; });
3263
-
3264
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isPromise", function() { return _javascript_utils_is_type__WEBPACK_IMPORTED_MODULE_22__["isPromise"]; });
3265
-
3266
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isIterable", function() { return _javascript_utils_is_type__WEBPACK_IMPORTED_MODULE_22__["isIterable"]; });
3255
+ /* harmony import */ var _javascript_utils_is_type__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./javascript-utils/is-type */ "../../node_modules/@loaders.gl/core/dist/esm/javascript-utils/is-type.js");
3256
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isPureObject", function() { return _javascript_utils_is_type__WEBPACK_IMPORTED_MODULE_20__["isPureObject"]; });
3267
3257
 
3268
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isAsyncIterable", function() { return _javascript_utils_is_type__WEBPACK_IMPORTED_MODULE_22__["isAsyncIterable"]; });
3258
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isPromise", function() { return _javascript_utils_is_type__WEBPACK_IMPORTED_MODULE_20__["isPromise"]; });
3269
3259
 
3270
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isIterator", function() { return _javascript_utils_is_type__WEBPACK_IMPORTED_MODULE_22__["isIterator"]; });
3260
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isIterable", function() { return _javascript_utils_is_type__WEBPACK_IMPORTED_MODULE_20__["isIterable"]; });
3271
3261
 
3272
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isResponse", function() { return _javascript_utils_is_type__WEBPACK_IMPORTED_MODULE_22__["isResponse"]; });
3262
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isAsyncIterable", function() { return _javascript_utils_is_type__WEBPACK_IMPORTED_MODULE_20__["isAsyncIterable"]; });
3273
3263
 
3274
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isReadableStream", function() { return _javascript_utils_is_type__WEBPACK_IMPORTED_MODULE_22__["isReadableStream"]; });
3264
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isIterator", function() { return _javascript_utils_is_type__WEBPACK_IMPORTED_MODULE_20__["isIterator"]; });
3275
3265
 
3276
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isWritableStream", function() { return _javascript_utils_is_type__WEBPACK_IMPORTED_MODULE_22__["isWritableStream"]; });
3266
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isResponse", function() { return _javascript_utils_is_type__WEBPACK_IMPORTED_MODULE_20__["isResponse"]; });
3277
3267
 
3268
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isReadableStream", function() { return _javascript_utils_is_type__WEBPACK_IMPORTED_MODULE_20__["isReadableStream"]; });
3278
3269
 
3270
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isWritableStream", function() { return _javascript_utils_is_type__WEBPACK_IMPORTED_MODULE_20__["isWritableStream"]; });
3279
3271
 
3280
3272
 
3281
3273
 
@@ -3498,13 +3490,13 @@ function* makeStringIterator(string, options) {
3498
3490
  /*!******************************************************************************************************************!*\
3499
3491
  !*** /Users/alasarr/dev/deck.gl/node_modules/@loaders.gl/core/dist/esm/iterators/make-stream/make-dom-stream.js ***!
3500
3492
  \******************************************************************************************************************/
3501
- /*! exports provided: makeDOMStream */
3493
+ /*! exports provided: makeStream */
3502
3494
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3503
3495
 
3504
3496
  "use strict";
3505
3497
  __webpack_require__.r(__webpack_exports__);
3506
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeDOMStream", function() { return makeDOMStream; });
3507
- function makeDOMStream(source, options) {
3498
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeStream", function() { return makeStream; });
3499
+ function makeStream(source, options) {
3508
3500
  const iterator = source[Symbol.asyncIterator] ? source[Symbol.asyncIterator]() : source[Symbol.iterator]();
3509
3501
  return new ReadableStream({
3510
3502
  type: 'bytes',
@@ -3541,30 +3533,6 @@ function makeDOMStream(source, options) {
3541
3533
 
3542
3534
  /***/ }),
3543
3535
 
3544
- /***/ "../../node_modules/@loaders.gl/core/dist/esm/iterators/make-stream/make-stream.js":
3545
- /*!**************************************************************************************************************!*\
3546
- !*** /Users/alasarr/dev/deck.gl/node_modules/@loaders.gl/core/dist/esm/iterators/make-stream/make-stream.js ***!
3547
- \**************************************************************************************************************/
3548
- /*! exports provided: makeStream */
3549
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
3550
-
3551
- "use strict";
3552
- __webpack_require__.r(__webpack_exports__);
3553
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeStream", function() { return makeStream; });
3554
- /* harmony import */ var _loaders_gl_loader_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @loaders.gl/loader-utils */ "../../node_modules/@loaders.gl/loader-utils/dist/esm/index.js");
3555
- /* harmony import */ var _make_dom_stream__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./make-dom-stream */ "../../node_modules/@loaders.gl/core/dist/esm/iterators/make-stream/make-dom-stream.js");
3556
- /* harmony import */ var _make_node_stream__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./make-node-stream */ 7);
3557
- /* harmony import */ var _make_node_stream__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_make_node_stream__WEBPACK_IMPORTED_MODULE_2__);
3558
-
3559
-
3560
-
3561
- function makeStream(data, options) {
3562
- return _loaders_gl_loader_utils__WEBPACK_IMPORTED_MODULE_0__["isBrowser"] ? Object(_make_dom_stream__WEBPACK_IMPORTED_MODULE_1__["makeDOMStream"])(data, options) : _make_node_stream__WEBPACK_IMPORTED_MODULE_2___default()(data, options);
3563
- }
3564
- //# sourceMappingURL=make-stream.js.map
3565
-
3566
- /***/ }),
3567
-
3568
3536
  /***/ "../../node_modules/@loaders.gl/core/dist/esm/javascript-utils/is-type.js":
3569
3537
  /*!*****************************************************************************************************!*\
3570
3538
  !*** /Users/alasarr/dev/deck.gl/node_modules/@loaders.gl/core/dist/esm/javascript-utils/is-type.js ***!
@@ -5573,7 +5541,7 @@ function arrayBufferToBase64(buffer) {
5573
5541
  __webpack_require__.r(__webpack_exports__);
5574
5542
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NullWorkerLoader", function() { return NullWorkerLoader; });
5575
5543
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NullLoader", function() { return NullLoader; });
5576
- const VERSION = true ? "3.1.0" : undefined;
5544
+ const VERSION = true ? "3.1.3" : undefined;
5577
5545
  const NullWorkerLoader = {
5578
5546
  name: 'Null loader',
5579
5547
  id: 'null',
@@ -6751,7 +6719,7 @@ function makeMetadata(metadata) {
6751
6719
  "use strict";
6752
6720
  __webpack_require__.r(__webpack_exports__);
6753
6721
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VERSION", function() { return VERSION; });
6754
- const VERSION = true ? "3.1.0" : undefined;
6722
+ const VERSION = true ? "3.1.3" : undefined;
6755
6723
  //# sourceMappingURL=version.js.map
6756
6724
 
6757
6725
  /***/ }),
@@ -6760,25 +6728,33 @@ const VERSION = true ? "3.1.0" : undefined;
6760
6728
  /*!*********************************************************************************!*\
6761
6729
  !*** /Users/alasarr/dev/deck.gl/node_modules/@loaders.gl/gis/dist/esm/index.js ***!
6762
6730
  \*********************************************************************************/
6763
- /*! exports provided: geojsonToBinary, binaryToGeojson, binaryToGeoJson, binaryToGeometry, transformBinaryCoords, transformGeoJsonCoords */
6731
+ /*! exports provided: flatGeojsonToBinary, geojsonToBinary, geojsonToFlatGeojson, binaryToGeojson, binaryToGeoJson, binaryToGeometry, transformBinaryCoords, transformGeoJsonCoords */
6764
6732
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
6765
6733
 
6766
6734
  "use strict";
6767
6735
  __webpack_require__.r(__webpack_exports__);
6768
- /* harmony import */ var _lib_geojson_to_binary__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./lib/geojson-to-binary */ "../../node_modules/@loaders.gl/gis/dist/esm/lib/geojson-to-binary.js");
6769
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geojsonToBinary", function() { return _lib_geojson_to_binary__WEBPACK_IMPORTED_MODULE_0__["geojsonToBinary"]; });
6736
+ /* harmony import */ var _lib_flat_geojson_to_binary__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./lib/flat-geojson-to-binary */ "../../node_modules/@loaders.gl/gis/dist/esm/lib/flat-geojson-to-binary.js");
6737
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "flatGeojsonToBinary", function() { return _lib_flat_geojson_to_binary__WEBPACK_IMPORTED_MODULE_0__["flatGeojsonToBinary"]; });
6738
+
6739
+ /* harmony import */ var _lib_geojson_to_binary__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./lib/geojson-to-binary */ "../../node_modules/@loaders.gl/gis/dist/esm/lib/geojson-to-binary.js");
6740
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geojsonToBinary", function() { return _lib_geojson_to_binary__WEBPACK_IMPORTED_MODULE_1__["geojsonToBinary"]; });
6741
+
6742
+ /* harmony import */ var _lib_geojson_to_flat_geojson__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lib/geojson-to-flat-geojson */ "../../node_modules/@loaders.gl/gis/dist/esm/lib/geojson-to-flat-geojson.js");
6743
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "geojsonToFlatGeojson", function() { return _lib_geojson_to_flat_geojson__WEBPACK_IMPORTED_MODULE_2__["geojsonToFlatGeojson"]; });
6744
+
6745
+ /* harmony import */ var _lib_binary_to_geojson__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lib/binary-to-geojson */ "../../node_modules/@loaders.gl/gis/dist/esm/lib/binary-to-geojson.js");
6746
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "binaryToGeojson", function() { return _lib_binary_to_geojson__WEBPACK_IMPORTED_MODULE_3__["binaryToGeojson"]; });
6747
+
6748
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "binaryToGeoJson", function() { return _lib_binary_to_geojson__WEBPACK_IMPORTED_MODULE_3__["binaryToGeoJson"]; });
6770
6749
 
6771
- /* harmony import */ var _lib_binary_to_geojson__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./lib/binary-to-geojson */ "../../node_modules/@loaders.gl/gis/dist/esm/lib/binary-to-geojson.js");
6772
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "binaryToGeojson", function() { return _lib_binary_to_geojson__WEBPACK_IMPORTED_MODULE_1__["binaryToGeojson"]; });
6750
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "binaryToGeometry", function() { return _lib_binary_to_geojson__WEBPACK_IMPORTED_MODULE_3__["binaryToGeometry"]; });
6773
6751
 
6774
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "binaryToGeoJson", function() { return _lib_binary_to_geojson__WEBPACK_IMPORTED_MODULE_1__["binaryToGeoJson"]; });
6752
+ /* harmony import */ var _lib_transform__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./lib/transform */ "../../node_modules/@loaders.gl/gis/dist/esm/lib/transform.js");
6753
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "transformBinaryCoords", function() { return _lib_transform__WEBPACK_IMPORTED_MODULE_4__["transformBinaryCoords"]; });
6775
6754
 
6776
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "binaryToGeometry", function() { return _lib_binary_to_geojson__WEBPACK_IMPORTED_MODULE_1__["binaryToGeometry"]; });
6755
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "transformGeoJsonCoords", function() { return _lib_transform__WEBPACK_IMPORTED_MODULE_4__["transformGeoJsonCoords"]; });
6777
6756
 
6778
- /* harmony import */ var _lib_transform__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lib/transform */ "../../node_modules/@loaders.gl/gis/dist/esm/lib/transform.js");
6779
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "transformBinaryCoords", function() { return _lib_transform__WEBPACK_IMPORTED_MODULE_2__["transformBinaryCoords"]; });
6780
6757
 
6781
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "transformGeoJsonCoords", function() { return _lib_transform__WEBPACK_IMPORTED_MODULE_2__["transformGeoJsonCoords"]; });
6782
6758
 
6783
6759
 
6784
6760
 
@@ -7076,31 +7052,17 @@ function parseType(data) {
7076
7052
 
7077
7053
  /***/ }),
7078
7054
 
7079
- /***/ "../../node_modules/@loaders.gl/gis/dist/esm/lib/geojson-to-binary.js":
7080
- /*!*************************************************************************************************!*\
7081
- !*** /Users/alasarr/dev/deck.gl/node_modules/@loaders.gl/gis/dist/esm/lib/geojson-to-binary.js ***!
7082
- \*************************************************************************************************/
7083
- /*! exports provided: geojsonToBinary, TEST_EXPORTS */
7055
+ /***/ "../../node_modules/@loaders.gl/gis/dist/esm/lib/extract-geometry-info.js":
7056
+ /*!*****************************************************************************************************!*\
7057
+ !*** /Users/alasarr/dev/deck.gl/node_modules/@loaders.gl/gis/dist/esm/lib/extract-geometry-info.js ***!
7058
+ \*****************************************************************************************************/
7059
+ /*! exports provided: extractGeometryInfo */
7084
7060
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
7085
7061
 
7086
7062
  "use strict";
7087
7063
  __webpack_require__.r(__webpack_exports__);
7088
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "geojsonToBinary", function() { return geojsonToBinary; });
7089
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TEST_EXPORTS", function() { return TEST_EXPORTS; });
7090
- function geojsonToBinary(features, options = {}) {
7091
- const firstPassData = firstPass(features);
7092
- return secondPass(features, firstPassData, {
7093
- coordLength: options.coordLength || firstPassData.coordLength,
7094
- numericPropKeys: options.numericPropKeys || firstPassData.numericPropKeys,
7095
- PositionDataType: options.PositionDataType || Float32Array
7096
- });
7097
- }
7098
- const TEST_EXPORTS = {
7099
- firstPass,
7100
- secondPass
7101
- };
7102
-
7103
- function firstPass(features) {
7064
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extractGeometryInfo", function() { return extractGeometryInfo; });
7065
+ function extractGeometryInfo(features) {
7104
7066
  let pointPositionsCount = 0;
7105
7067
  let pointFeaturesCount = 0;
7106
7068
  let linePositionsCount = 0;
@@ -7111,7 +7073,6 @@ function firstPass(features) {
7111
7073
  let polygonRingsCount = 0;
7112
7074
  let polygonFeaturesCount = 0;
7113
7075
  const coordLengths = new Set();
7114
- const propArrayTypes = {};
7115
7076
 
7116
7077
  for (const feature of features) {
7117
7078
  const geometry = feature.geometry;
@@ -7162,9 +7123,10 @@ function firstPass(features) {
7162
7123
  polygonFeaturesCount++;
7163
7124
  polygonObjectsCount++;
7164
7125
  polygonRingsCount += geometry.coordinates.length;
7165
- polygonPositionsCount += flatten(geometry.coordinates).length;
7126
+ const flattened = geometry.coordinates.flat();
7127
+ polygonPositionsCount += flattened.length;
7166
7128
 
7167
- for (const coord of flatten(geometry.coordinates)) {
7129
+ for (const coord of flattened) {
7168
7130
  coordLengths.add(coord.length);
7169
7131
  }
7170
7132
 
@@ -7176,9 +7138,10 @@ function firstPass(features) {
7176
7138
  for (const polygon of geometry.coordinates) {
7177
7139
  polygonObjectsCount++;
7178
7140
  polygonRingsCount += polygon.length;
7179
- polygonPositionsCount += flatten(polygon).length;
7141
+ const flattened = polygon.flat();
7142
+ polygonPositionsCount += flattened.length;
7180
7143
 
7181
- for (const coord of flatten(polygon)) {
7144
+ for (const coord of flattened) {
7182
7145
  coordLengths.add(coord.length);
7183
7146
  }
7184
7147
  }
@@ -7188,13 +7151,6 @@ function firstPass(features) {
7188
7151
  default:
7189
7152
  throw new Error("Unsupported geometry type: ".concat(geometry.type));
7190
7153
  }
7191
-
7192
- if (feature.properties) {
7193
- for (const key in feature.properties) {
7194
- const val = feature.properties[key];
7195
- propArrayTypes[key] = deduceArrayType(val, propArrayTypes[key]);
7196
- }
7197
- }
7198
7154
  }
7199
7155
 
7200
7156
  return {
@@ -7207,13 +7163,57 @@ function firstPass(features) {
7207
7163
  polygonPositionsCount,
7208
7164
  polygonObjectsCount,
7209
7165
  polygonRingsCount,
7210
- polygonFeaturesCount,
7211
- numericPropKeys: Object.keys(propArrayTypes).filter(k => propArrayTypes[k] !== Array),
7212
- propArrayTypes
7166
+ polygonFeaturesCount
7213
7167
  };
7214
7168
  }
7169
+ //# sourceMappingURL=extract-geometry-info.js.map
7170
+
7171
+ /***/ }),
7172
+
7173
+ /***/ "../../node_modules/@loaders.gl/gis/dist/esm/lib/flat-geojson-to-binary.js":
7174
+ /*!******************************************************************************************************!*\
7175
+ !*** /Users/alasarr/dev/deck.gl/node_modules/@loaders.gl/gis/dist/esm/lib/flat-geojson-to-binary.js ***!
7176
+ \******************************************************************************************************/
7177
+ /*! exports provided: flatGeojsonToBinary, TEST_EXPORTS */
7178
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
7179
+
7180
+ "use strict";
7181
+ __webpack_require__.r(__webpack_exports__);
7182
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "flatGeojsonToBinary", function() { return flatGeojsonToBinary; });
7183
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TEST_EXPORTS", function() { return TEST_EXPORTS; });
7184
+ /* harmony import */ var _math_gl_polygon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @math.gl/polygon */ "../../node_modules/@math.gl/polygon/dist/esm/index.js");
7185
+
7186
+ function flatGeojsonToBinary(features, geometryInfo, options) {
7187
+ const propArrayTypes = extractNumericPropTypes(features);
7188
+ const numericPropKeys = Object.keys(propArrayTypes).filter(k => propArrayTypes[k] !== Array);
7189
+ return fillArrays(features, {
7190
+ propArrayTypes,
7191
+ ...geometryInfo
7192
+ }, {
7193
+ numericPropKeys: options && options.numericPropKeys || numericPropKeys,
7194
+ PositionDataType: options ? options.PositionDataType : Float32Array
7195
+ });
7196
+ }
7197
+ const TEST_EXPORTS = {
7198
+ extractNumericPropTypes
7199
+ };
7200
+
7201
+ function extractNumericPropTypes(features) {
7202
+ const propArrayTypes = {};
7203
+
7204
+ for (const feature of features) {
7205
+ if (feature.properties) {
7206
+ for (const key in feature.properties) {
7207
+ const val = feature.properties[key];
7208
+ propArrayTypes[key] = deduceArrayType(val, propArrayTypes[key]);
7209
+ }
7210
+ }
7211
+ }
7212
+
7213
+ return propArrayTypes;
7214
+ }
7215
7215
 
7216
- function secondPass(features, firstPassData, options) {
7216
+ function fillArrays(features, geometryInfo, options) {
7217
7217
  const {
7218
7218
  pointPositionsCount,
7219
7219
  pointFeaturesCount,
@@ -7223,47 +7223,52 @@ function secondPass(features, firstPassData, options) {
7223
7223
  polygonPositionsCount,
7224
7224
  polygonObjectsCount,
7225
7225
  polygonRingsCount,
7226
+ polygonFeaturesCount,
7226
7227
  propArrayTypes,
7227
- polygonFeaturesCount
7228
- } = firstPassData;
7228
+ coordLength
7229
+ } = geometryInfo;
7229
7230
  const {
7230
- coordLength,
7231
- numericPropKeys,
7231
+ numericPropKeys = [],
7232
7232
  PositionDataType = Float32Array
7233
7233
  } = options;
7234
+ const hasGlobalId = features[0] && 'id' in features[0];
7234
7235
  const GlobalFeatureIdsDataType = features.length > 65535 ? Uint32Array : Uint16Array;
7235
7236
  const points = {
7237
+ type: 'Point',
7236
7238
  positions: new PositionDataType(pointPositionsCount * coordLength),
7237
7239
  globalFeatureIds: new GlobalFeatureIdsDataType(pointPositionsCount),
7238
7240
  featureIds: pointFeaturesCount > 65535 ? new Uint32Array(pointPositionsCount) : new Uint16Array(pointPositionsCount),
7239
7241
  numericProps: {},
7240
- properties: Array(),
7241
- fields: Array()
7242
+ properties: [],
7243
+ fields: []
7242
7244
  };
7243
7245
  const lines = {
7244
- positions: new PositionDataType(linePositionsCount * coordLength),
7246
+ type: 'LineString',
7245
7247
  pathIndices: linePositionsCount > 65535 ? new Uint32Array(linePathsCount + 1) : new Uint16Array(linePathsCount + 1),
7248
+ positions: new PositionDataType(linePositionsCount * coordLength),
7246
7249
  globalFeatureIds: new GlobalFeatureIdsDataType(linePositionsCount),
7247
7250
  featureIds: lineFeaturesCount > 65535 ? new Uint32Array(linePositionsCount) : new Uint16Array(linePositionsCount),
7248
7251
  numericProps: {},
7249
- properties: Array(),
7250
- fields: Array()
7252
+ properties: [],
7253
+ fields: []
7251
7254
  };
7252
7255
  const polygons = {
7253
- positions: new PositionDataType(polygonPositionsCount * coordLength),
7256
+ type: 'Polygon',
7254
7257
  polygonIndices: polygonPositionsCount > 65535 ? new Uint32Array(polygonObjectsCount + 1) : new Uint16Array(polygonObjectsCount + 1),
7255
7258
  primitivePolygonIndices: polygonPositionsCount > 65535 ? new Uint32Array(polygonRingsCount + 1) : new Uint16Array(polygonRingsCount + 1),
7259
+ positions: new PositionDataType(polygonPositionsCount * coordLength),
7260
+ triangles: [],
7256
7261
  globalFeatureIds: new GlobalFeatureIdsDataType(polygonPositionsCount),
7257
7262
  featureIds: polygonFeaturesCount > 65535 ? new Uint32Array(polygonPositionsCount) : new Uint16Array(polygonPositionsCount),
7258
7263
  numericProps: {},
7259
- properties: Array(),
7260
- fields: Array()
7264
+ properties: [],
7265
+ fields: []
7261
7266
  };
7262
7267
 
7263
7268
  for (const object of [points, lines, polygons]) {
7264
- for (const propName of numericPropKeys || []) {
7265
- const TypedArray = propArrayTypes[propName];
7266
- object.numericProps[propName] = new TypedArray(object.positions.length / coordLength);
7269
+ for (const propName of numericPropKeys) {
7270
+ const T = propArrayTypes[propName];
7271
+ object.numericProps[propName] = new T(object.positions.length / coordLength);
7267
7272
  }
7268
7273
  }
7269
7274
 
@@ -7289,38 +7294,41 @@ function secondPass(features, firstPassData, options) {
7289
7294
 
7290
7295
  switch (geometry.type) {
7291
7296
  case 'Point':
7292
- handlePoint(geometry.coordinates, points, indexMap, coordLength, properties);
7297
+ handlePoint(geometry, points, indexMap, coordLength, properties);
7293
7298
  points.properties.push(keepStringProperties(properties, numericPropKeys));
7294
- indexMap.pointFeature++;
7295
- break;
7296
7299
 
7297
- case 'MultiPoint':
7298
- handleMultiPoint(geometry.coordinates, points, indexMap, coordLength, properties);
7299
- points.properties.push(keepStringProperties(properties, numericPropKeys));
7300
+ if (hasGlobalId) {
7301
+ points.fields.push({
7302
+ id: feature.id
7303
+ });
7304
+ }
7305
+
7300
7306
  indexMap.pointFeature++;
7301
7307
  break;
7302
7308
 
7303
7309
  case 'LineString':
7304
- handleLineString(geometry.coordinates, lines, indexMap, coordLength, properties);
7310
+ handleLineString(geometry, lines, indexMap, coordLength, properties);
7305
7311
  lines.properties.push(keepStringProperties(properties, numericPropKeys));
7306
- indexMap.lineFeature++;
7307
- break;
7308
7312
 
7309
- case 'MultiLineString':
7310
- handleMultiLineString(geometry.coordinates, lines, indexMap, coordLength, properties);
7311
- lines.properties.push(keepStringProperties(properties, numericPropKeys));
7313
+ if (hasGlobalId) {
7314
+ lines.fields.push({
7315
+ id: feature.id
7316
+ });
7317
+ }
7318
+
7312
7319
  indexMap.lineFeature++;
7313
7320
  break;
7314
7321
 
7315
7322
  case 'Polygon':
7316
- handlePolygon(geometry.coordinates, polygons, indexMap, coordLength, properties);
7323
+ handlePolygon(geometry, polygons, indexMap, coordLength, properties);
7317
7324
  polygons.properties.push(keepStringProperties(properties, numericPropKeys));
7318
- indexMap.polygonFeature++;
7319
- break;
7320
7325
 
7321
- case 'MultiPolygon':
7322
- handleMultiPolygon(geometry.coordinates, polygons, indexMap, coordLength, properties);
7323
- polygons.properties.push(keepStringProperties(properties, numericPropKeys));
7326
+ if (hasGlobalId) {
7327
+ polygons.fields.push({
7328
+ id: feature.id
7329
+ });
7330
+ }
7331
+
7324
7332
  indexMap.polygonFeature++;
7325
7333
  break;
7326
7334
 
@@ -7334,61 +7342,92 @@ function secondPass(features, firstPassData, options) {
7334
7342
  return makeAccessorObjects(points, lines, polygons, coordLength);
7335
7343
  }
7336
7344
 
7337
- function handlePoint(coords, points, indexMap, coordLength, properties) {
7338
- points.positions.set(coords, indexMap.pointPosition * coordLength);
7339
- points.globalFeatureIds[indexMap.pointPosition] = indexMap.feature;
7340
- points.featureIds[indexMap.pointPosition] = indexMap.pointFeature;
7341
- fillNumericProperties(points, properties, indexMap.pointPosition, 1);
7342
- indexMap.pointPosition++;
7345
+ function handlePoint(geometry, points, indexMap, coordLength, properties) {
7346
+ points.positions.set(geometry.data, indexMap.pointPosition * coordLength);
7347
+ const nPositions = geometry.data.length / coordLength;
7348
+ fillNumericProperties(points, properties, indexMap.pointPosition, nPositions);
7349
+ points.globalFeatureIds.fill(indexMap.feature, indexMap.pointPosition, indexMap.pointPosition + nPositions);
7350
+ points.featureIds.fill(indexMap.pointFeature, indexMap.pointPosition, indexMap.pointPosition + nPositions);
7351
+ indexMap.pointPosition += nPositions;
7343
7352
  }
7344
7353
 
7345
- function handleMultiPoint(coords, points, indexMap, coordLength, properties) {
7346
- for (const point of coords) {
7347
- handlePoint(point, points, indexMap, coordLength, properties);
7354
+ function handleLineString(geometry, lines, indexMap, coordLength, properties) {
7355
+ lines.positions.set(geometry.data, indexMap.linePosition * coordLength);
7356
+ const nPositions = geometry.data.length / coordLength;
7357
+ fillNumericProperties(lines, properties, indexMap.linePosition, nPositions);
7358
+ lines.globalFeatureIds.fill(indexMap.feature, indexMap.linePosition, indexMap.linePosition + nPositions);
7359
+ lines.featureIds.fill(indexMap.lineFeature, indexMap.linePosition, indexMap.linePosition + nPositions);
7360
+
7361
+ for (let i = 0, il = geometry.indices.length; i < il; ++i) {
7362
+ const start = geometry.indices[i];
7363
+ const end = i === il - 1 ? geometry.data.length : geometry.indices[i + 1];
7364
+ lines.pathIndices[indexMap.linePath++] = indexMap.linePosition;
7365
+ indexMap.linePosition += (end - start) / coordLength;
7348
7366
  }
7349
7367
  }
7350
7368
 
7351
- function handleLineString(coords, lines, indexMap, coordLength, properties) {
7352
- lines.pathIndices[indexMap.linePath] = indexMap.linePosition;
7353
- indexMap.linePath++;
7354
- fillCoords(lines.positions, coords, indexMap.linePosition, coordLength);
7355
- const nPositions = coords.length;
7356
- fillNumericProperties(lines, properties, indexMap.linePosition, nPositions);
7357
- lines.globalFeatureIds.set(new Uint32Array(nPositions).fill(indexMap.feature), indexMap.linePosition);
7358
- lines.featureIds.set(new Uint32Array(nPositions).fill(indexMap.lineFeature), indexMap.linePosition);
7359
- indexMap.linePosition += nPositions;
7360
- }
7369
+ function handlePolygon(geometry, polygons, indexMap, coordLength, properties) {
7370
+ polygons.positions.set(geometry.data, indexMap.polygonPosition * coordLength);
7371
+ const nPositions = geometry.data.length / coordLength;
7372
+ fillNumericProperties(polygons, properties, indexMap.polygonPosition, nPositions);
7373
+ polygons.globalFeatureIds.fill(indexMap.feature, indexMap.polygonPosition, indexMap.polygonPosition + nPositions);
7374
+ polygons.featureIds.fill(indexMap.polygonFeature, indexMap.polygonPosition, indexMap.polygonPosition + nPositions);
7375
+
7376
+ for (let l = 0, ll = geometry.indices.length; l < ll; ++l) {
7377
+ const startPosition = indexMap.polygonPosition;
7378
+ polygons.polygonIndices[indexMap.polygonObject++] = startPosition;
7379
+ const areas = geometry.areas[l];
7380
+ const indices = geometry.indices[l];
7381
+ const nextIndices = geometry.indices[l + 1];
7382
+
7383
+ for (let i = 0, il = indices.length; i < il; ++i) {
7384
+ const start = indices[i];
7385
+ const end = i === il - 1 ? nextIndices === undefined ? geometry.data.length : nextIndices[0] : indices[i + 1];
7386
+ polygons.primitivePolygonIndices[indexMap.polygonRing++] = indexMap.polygonPosition;
7387
+ indexMap.polygonPosition += (end - start) / coordLength;
7388
+ }
7361
7389
 
7362
- function handleMultiLineString(coords, lines, indexMap, coordLength, properties) {
7363
- for (const line of coords) {
7364
- handleLineString(line, lines, indexMap, coordLength, properties);
7390
+ const endPosition = indexMap.polygonPosition;
7391
+ triangulatePolygon(polygons, areas, indices, {
7392
+ startPosition,
7393
+ endPosition,
7394
+ coordLength
7395
+ });
7365
7396
  }
7366
7397
  }
7367
7398
 
7368
- function handlePolygon(coords, polygons, indexMap, coordLength, properties) {
7369
- polygons.polygonIndices[indexMap.polygonObject] = indexMap.polygonPosition;
7370
- indexMap.polygonObject++;
7399
+ function triangulatePolygon(polygons, areas, indices, {
7400
+ startPosition,
7401
+ endPosition,
7402
+ coordLength
7403
+ }) {
7404
+ const start = startPosition * coordLength;
7405
+ const end = endPosition * coordLength;
7406
+ const polygonPositions = polygons.positions.subarray(start, end);
7407
+ const offset = indices[0];
7408
+ const holes = indices.slice(1).map(n => (n - offset) / coordLength);
7409
+ const triangles = Object(_math_gl_polygon__WEBPACK_IMPORTED_MODULE_0__["earcut"])(polygonPositions, holes, coordLength, areas);
7371
7410
 
7372
- for (const ring of coords) {
7373
- polygons.primitivePolygonIndices[indexMap.polygonRing] = indexMap.polygonPosition;
7374
- indexMap.polygonRing++;
7375
- fillCoords(polygons.positions, ring, indexMap.polygonPosition, coordLength);
7376
- const nPositions = ring.length;
7377
- fillNumericProperties(polygons, properties, indexMap.polygonPosition, nPositions);
7378
- polygons.globalFeatureIds.set(new Uint32Array(nPositions).fill(indexMap.feature), indexMap.polygonPosition);
7379
- polygons.featureIds.set(new Uint32Array(nPositions).fill(indexMap.polygonFeature), indexMap.polygonPosition);
7380
- indexMap.polygonPosition += nPositions;
7411
+ for (let t = 0, tl = triangles.length; t < tl; ++t) {
7412
+ polygons.triangles.push(startPosition + triangles[t]);
7381
7413
  }
7382
7414
  }
7383
7415
 
7384
- function handleMultiPolygon(coords, polygons, indexMap, coordLength, properties) {
7385
- for (const polygon of coords) {
7386
- handlePolygon(polygon, polygons, indexMap, coordLength, properties);
7416
+ function wrapProps(obj, size) {
7417
+ const returnObj = {};
7418
+
7419
+ for (const key in obj) {
7420
+ returnObj[key] = {
7421
+ value: obj[key],
7422
+ size
7423
+ };
7387
7424
  }
7425
+
7426
+ return returnObj;
7388
7427
  }
7389
7428
 
7390
7429
  function makeAccessorObjects(points, lines, polygons, coordLength) {
7391
- const returnObj = {
7430
+ return {
7392
7431
  points: { ...points,
7393
7432
  positions: {
7394
7433
  value: points.positions,
@@ -7402,17 +7441,17 @@ function makeAccessorObjects(points, lines, polygons, coordLength) {
7402
7441
  value: points.featureIds,
7403
7442
  size: 1
7404
7443
  },
7405
- type: 'Point'
7444
+ numericProps: wrapProps(points.numericProps, 1)
7406
7445
  },
7407
7446
  lines: { ...lines,
7408
- pathIndices: {
7409
- value: lines.pathIndices,
7410
- size: 1
7411
- },
7412
7447
  positions: {
7413
7448
  value: lines.positions,
7414
7449
  size: coordLength
7415
7450
  },
7451
+ pathIndices: {
7452
+ value: lines.pathIndices,
7453
+ size: 1
7454
+ },
7416
7455
  globalFeatureIds: {
7417
7456
  value: lines.globalFeatureIds,
7418
7457
  size: 1
@@ -7421,9 +7460,13 @@ function makeAccessorObjects(points, lines, polygons, coordLength) {
7421
7460
  value: lines.featureIds,
7422
7461
  size: 1
7423
7462
  },
7424
- type: 'LineString'
7463
+ numericProps: wrapProps(lines.numericProps, 1)
7425
7464
  },
7426
7465
  polygons: { ...polygons,
7466
+ positions: {
7467
+ value: polygons.positions,
7468
+ size: coordLength
7469
+ },
7427
7470
  polygonIndices: {
7428
7471
  value: polygons.polygonIndices,
7429
7472
  size: 1
@@ -7432,9 +7475,9 @@ function makeAccessorObjects(points, lines, polygons, coordLength) {
7432
7475
  value: polygons.primitivePolygonIndices,
7433
7476
  size: 1
7434
7477
  },
7435
- positions: {
7436
- value: polygons.positions,
7437
- size: coordLength
7478
+ triangles: {
7479
+ value: new Uint32Array(polygons.triangles),
7480
+ size: 1
7438
7481
  },
7439
7482
  globalFeatureIds: {
7440
7483
  value: polygons.globalFeatureIds,
@@ -7444,26 +7487,16 @@ function makeAccessorObjects(points, lines, polygons, coordLength) {
7444
7487
  value: polygons.featureIds,
7445
7488
  size: 1
7446
7489
  },
7447
- type: 'Polygon'
7490
+ numericProps: wrapProps(polygons.numericProps, 1)
7448
7491
  }
7449
7492
  };
7450
-
7451
- for (const geomType in returnObj) {
7452
- for (const numericProp in returnObj[geomType].numericProps) {
7453
- returnObj[geomType].numericProps[numericProp] = {
7454
- value: returnObj[geomType].numericProps[numericProp],
7455
- size: 1
7456
- };
7457
- }
7458
- }
7459
-
7460
- return returnObj;
7461
7493
  }
7462
7494
 
7463
7495
  function fillNumericProperties(object, properties, index, length) {
7464
7496
  for (const numericPropName in object.numericProps) {
7465
7497
  if (numericPropName in properties) {
7466
- object.numericProps[numericPropName].set(new Array(length).fill(properties[numericPropName]), index);
7498
+ const value = properties[numericPropName];
7499
+ object.numericProps[numericPropName].fill(value, index, index + length);
7467
7500
  }
7468
7501
  }
7469
7502
  }
@@ -7480,27 +7513,181 @@ function keepStringProperties(properties, numericKeys) {
7480
7513
  return props;
7481
7514
  }
7482
7515
 
7483
- function fillCoords(array, coords, startVertex, coordLength) {
7484
- let index = startVertex * coordLength;
7516
+ function deduceArrayType(x, constructor) {
7517
+ if (constructor === Array || !Number.isFinite(x)) {
7518
+ return Array;
7519
+ }
7520
+
7521
+ return constructor === Float64Array || Math.fround(x) !== x ? Float64Array : Float32Array;
7522
+ }
7523
+ //# sourceMappingURL=flat-geojson-to-binary.js.map
7524
+
7525
+ /***/ }),
7526
+
7527
+ /***/ "../../node_modules/@loaders.gl/gis/dist/esm/lib/geojson-to-binary.js":
7528
+ /*!*************************************************************************************************!*\
7529
+ !*** /Users/alasarr/dev/deck.gl/node_modules/@loaders.gl/gis/dist/esm/lib/geojson-to-binary.js ***!
7530
+ \*************************************************************************************************/
7531
+ /*! exports provided: geojsonToBinary */
7532
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
7533
+
7534
+ "use strict";
7535
+ __webpack_require__.r(__webpack_exports__);
7536
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "geojsonToBinary", function() { return geojsonToBinary; });
7537
+ /* harmony import */ var _extract_geometry_info__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./extract-geometry-info */ "../../node_modules/@loaders.gl/gis/dist/esm/lib/extract-geometry-info.js");
7538
+ /* harmony import */ var _geojson_to_flat_geojson__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./geojson-to-flat-geojson */ "../../node_modules/@loaders.gl/gis/dist/esm/lib/geojson-to-flat-geojson.js");
7539
+ /* harmony import */ var _flat_geojson_to_binary__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./flat-geojson-to-binary */ "../../node_modules/@loaders.gl/gis/dist/esm/lib/flat-geojson-to-binary.js");
7540
+
7485
7541
 
7486
- for (const coord of coords) {
7487
- array.set(coord, index);
7488
- index += coordLength;
7542
+
7543
+ function geojsonToBinary(features, options = {
7544
+ fixRingWinding: true
7545
+ }) {
7546
+ const geometryInfo = Object(_extract_geometry_info__WEBPACK_IMPORTED_MODULE_0__["extractGeometryInfo"])(features);
7547
+ const coordLength = geometryInfo.coordLength;
7548
+ const {
7549
+ fixRingWinding
7550
+ } = options;
7551
+ const flatFeatures = Object(_geojson_to_flat_geojson__WEBPACK_IMPORTED_MODULE_1__["geojsonToFlatGeojson"])(features, {
7552
+ coordLength,
7553
+ fixRingWinding
7554
+ });
7555
+ return Object(_flat_geojson_to_binary__WEBPACK_IMPORTED_MODULE_2__["flatGeojsonToBinary"])(flatFeatures, geometryInfo, {
7556
+ numericPropKeys: options.numericPropKeys,
7557
+ PositionDataType: options.PositionDataType || Float32Array
7558
+ });
7559
+ }
7560
+ //# sourceMappingURL=geojson-to-binary.js.map
7561
+
7562
+ /***/ }),
7563
+
7564
+ /***/ "../../node_modules/@loaders.gl/gis/dist/esm/lib/geojson-to-flat-geojson.js":
7565
+ /*!*******************************************************************************************************!*\
7566
+ !*** /Users/alasarr/dev/deck.gl/node_modules/@loaders.gl/gis/dist/esm/lib/geojson-to-flat-geojson.js ***!
7567
+ \*******************************************************************************************************/
7568
+ /*! exports provided: geojsonToFlatGeojson */
7569
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
7570
+
7571
+ "use strict";
7572
+ __webpack_require__.r(__webpack_exports__);
7573
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "geojsonToFlatGeojson", function() { return geojsonToFlatGeojson; });
7574
+ /* harmony import */ var _math_gl_polygon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @math.gl/polygon */ "../../node_modules/@math.gl/polygon/dist/esm/index.js");
7575
+
7576
+ function geojsonToFlatGeojson(features, options = {
7577
+ coordLength: 2,
7578
+ fixRingWinding: true
7579
+ }) {
7580
+ return features.map(feature => flattenFeature(feature, options));
7581
+ }
7582
+
7583
+ function flattenPoint(coordinates, data, indices, options) {
7584
+ indices.push(data.length);
7585
+ data.push(...coordinates);
7586
+
7587
+ for (let i = coordinates.length; i < options.coordLength; i++) {
7588
+ data.push(0);
7489
7589
  }
7490
7590
  }
7491
7591
 
7492
- function flatten(arrays) {
7493
- return [].concat(...arrays);
7592
+ function flattenLineString(coordinates, data, indices, options) {
7593
+ indices.push(data.length);
7594
+
7595
+ for (const c of coordinates) {
7596
+ data.push(...c);
7597
+
7598
+ for (let i = c.length; i < options.coordLength; i++) {
7599
+ data.push(0);
7600
+ }
7601
+ }
7494
7602
  }
7495
7603
 
7496
- function deduceArrayType(x, constructor) {
7497
- if (constructor === Array || !Number.isFinite(x)) {
7498
- return Array;
7604
+ function flattenPolygon(coordinates, data, indices, areas, options) {
7605
+ let count = 0;
7606
+ const ringAreas = [];
7607
+ const polygons = [];
7608
+
7609
+ for (const lineString of coordinates) {
7610
+ const lineString2d = lineString.map(p => p.slice(0, 2));
7611
+ let area = Object(_math_gl_polygon__WEBPACK_IMPORTED_MODULE_0__["getPolygonSignedArea"])(lineString2d.flat());
7612
+ const ccw = area < 0;
7613
+
7614
+ if (options.fixRingWinding && (count === 0 && !ccw || count > 0 && ccw)) {
7615
+ lineString.reverse();
7616
+ area = -area;
7617
+ }
7618
+
7619
+ ringAreas.push(area);
7620
+ flattenLineString(lineString, data, polygons, options);
7621
+ count++;
7499
7622
  }
7500
7623
 
7501
- return constructor === Float64Array || Math.fround(x) !== x ? Float64Array : Float32Array;
7624
+ if (count > 0) {
7625
+ areas.push(ringAreas);
7626
+ indices.push(polygons);
7627
+ }
7502
7628
  }
7503
- //# sourceMappingURL=geojson-to-binary.js.map
7629
+
7630
+ function flattenFeature(feature, options) {
7631
+ const {
7632
+ geometry
7633
+ } = feature;
7634
+
7635
+ if (geometry.type === 'GeometryCollection') {
7636
+ throw new Error('GeometryCollection type not supported');
7637
+ }
7638
+
7639
+ const data = [];
7640
+ const indices = [];
7641
+ let areas;
7642
+ let type;
7643
+
7644
+ switch (geometry.type) {
7645
+ case 'Point':
7646
+ type = 'Point';
7647
+ flattenPoint(geometry.coordinates, data, indices, options);
7648
+ break;
7649
+
7650
+ case 'MultiPoint':
7651
+ type = 'Point';
7652
+ geometry.coordinates.map(c => flattenPoint(c, data, indices, options));
7653
+ break;
7654
+
7655
+ case 'LineString':
7656
+ type = 'LineString';
7657
+ flattenLineString(geometry.coordinates, data, indices, options);
7658
+ break;
7659
+
7660
+ case 'MultiLineString':
7661
+ type = 'LineString';
7662
+ geometry.coordinates.map(c => flattenLineString(c, data, indices, options));
7663
+ break;
7664
+
7665
+ case 'Polygon':
7666
+ type = 'Polygon';
7667
+ areas = [];
7668
+ flattenPolygon(geometry.coordinates, data, indices, areas, options);
7669
+ break;
7670
+
7671
+ case 'MultiPolygon':
7672
+ type = 'Polygon';
7673
+ areas = [];
7674
+ geometry.coordinates.map(c => flattenPolygon(c, data, indices, areas, options));
7675
+ break;
7676
+
7677
+ default:
7678
+ throw new Error("Unknown type: ".concat(type));
7679
+ }
7680
+
7681
+ return { ...feature,
7682
+ geometry: {
7683
+ type,
7684
+ indices,
7685
+ data,
7686
+ areas
7687
+ }
7688
+ };
7689
+ }
7690
+ //# sourceMappingURL=geojson-to-flat-geojson.js.map
7504
7691
 
7505
7692
  /***/ }),
7506
7693
 
@@ -10340,7 +10527,7 @@ function assert(condition, message) {
10340
10527
  "use strict";
10341
10528
  __webpack_require__.r(__webpack_exports__);
10342
10529
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VERSION", function() { return VERSION; });
10343
- const VERSION = true ? "3.1.0" : undefined;
10530
+ const VERSION = true ? "3.1.3" : undefined;
10344
10531
  //# sourceMappingURL=version.js.map
10345
10532
 
10346
10533
  /***/ }),
@@ -11445,7 +11632,7 @@ function getMipLevels({
11445
11632
  "use strict";
11446
11633
  __webpack_require__.r(__webpack_exports__);
11447
11634
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VERSION", function() { return VERSION; });
11448
- const VERSION = true ? "3.1.0" : undefined;
11635
+ const VERSION = true ? "3.1.3" : undefined;
11449
11636
  //# sourceMappingURL=version.js.map
11450
11637
 
11451
11638
  /***/ }),
@@ -11612,7 +11799,7 @@ __webpack_require__.r(__webpack_exports__);
11612
11799
  __webpack_require__.r(__webpack_exports__);
11613
11800
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JSONLoader", function() { return JSONLoader; });
11614
11801
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_typecheckJSONLoader", function() { return _typecheckJSONLoader; });
11615
- const VERSION = true ? "3.1.0" : undefined;
11802
+ const VERSION = true ? "3.1.3" : undefined;
11616
11803
  const JSONLoader = {
11617
11804
  name: 'JSON',
11618
11805
  id: 'json',
@@ -13494,13 +13681,15 @@ __webpack_require__.r(__webpack_exports__);
13494
13681
  /* harmony import */ var _math_gl_polygon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @math.gl/polygon */ "../../node_modules/@math.gl/polygon/dist/esm/index.js");
13495
13682
 
13496
13683
  function classifyRings(geom) {
13497
- const len = geom.lines.length;
13684
+ const len = geom.indices.length;
13685
+ const type = 'Polygon';
13498
13686
 
13499
13687
  if (len <= 1) {
13500
13688
  return {
13689
+ type,
13501
13690
  data: geom.data,
13502
13691
  areas: [[Object(_math_gl_polygon__WEBPACK_IMPORTED_MODULE_0__["getPolygonSignedArea"])(geom.data)]],
13503
- lines: [geom.lines]
13692
+ indices: [geom.indices]
13504
13693
  };
13505
13694
  }
13506
13695
 
@@ -13512,8 +13701,8 @@ function classifyRings(geom) {
13512
13701
  let offset = 0;
13513
13702
 
13514
13703
  for (let endIndex, i = 0, startIndex; i < len; i++) {
13515
- startIndex = geom.lines[i] - offset;
13516
- endIndex = geom.lines[i + 1] - offset || geom.data.length;
13704
+ startIndex = geom.indices[i] - offset;
13705
+ endIndex = geom.indices[i + 1] - offset || geom.data.length;
13517
13706
  const shape = geom.data.slice(startIndex, endIndex);
13518
13707
  const area = Object(_math_gl_polygon__WEBPACK_IMPORTED_MODULE_0__["getPolygonSignedArea"])(shape);
13519
13708
 
@@ -13544,8 +13733,9 @@ function classifyRings(geom) {
13544
13733
  if (ringAreas) areas.push(ringAreas);
13545
13734
  if (polygon.length) polygons.push(polygon);
13546
13735
  return {
13736
+ type,
13547
13737
  areas,
13548
- lines: polygons,
13738
+ indices: polygons,
13549
13739
  data: geom.data
13550
13740
  };
13551
13741
  }
@@ -13660,352 +13850,6 @@ __webpack_require__.r(__webpack_exports__);
13660
13850
 
13661
13851
  /***/ }),
13662
13852
 
13663
- /***/ "../../node_modules/@loaders.gl/mvt/dist/esm/lib/binary-vector-tile/features-to-binary.js":
13664
- /*!*********************************************************************************************************************!*\
13665
- !*** /Users/alasarr/dev/deck.gl/node_modules/@loaders.gl/mvt/dist/esm/lib/binary-vector-tile/features-to-binary.js ***!
13666
- \*********************************************************************************************************************/
13667
- /*! exports provided: featuresToBinary, TEST_EXPORTS */
13668
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
13669
-
13670
- "use strict";
13671
- __webpack_require__.r(__webpack_exports__);
13672
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "featuresToBinary", function() { return featuresToBinary; });
13673
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TEST_EXPORTS", function() { return TEST_EXPORTS; });
13674
- /* harmony import */ var _math_gl_polygon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @math.gl/polygon */ "../../node_modules/@math.gl/polygon/dist/esm/index.js");
13675
-
13676
- function featuresToBinary(features, firstPassData, options) {
13677
- const propArrayTypes = extractNumericPropTypes(features);
13678
- const numericPropKeys = Object.keys(propArrayTypes).filter(k => propArrayTypes[k] !== Array);
13679
- return fillArrays(features, firstPassData, {
13680
- numericPropKeys: options ? options.numericPropKeys : numericPropKeys,
13681
- propArrayTypes,
13682
- PositionDataType: options ? options.PositionDataType : Float32Array
13683
- });
13684
- }
13685
- const TEST_EXPORTS = {
13686
- fillArrays
13687
- };
13688
-
13689
- function extractNumericPropTypes(features) {
13690
- const propArrayTypes = {};
13691
-
13692
- for (const feature of features) {
13693
- if (feature.properties) {
13694
- for (const key in feature.properties) {
13695
- const val = feature.properties[key];
13696
- propArrayTypes[key] = deduceArrayType(val, propArrayTypes[key]);
13697
- }
13698
- }
13699
- }
13700
-
13701
- return propArrayTypes;
13702
- }
13703
-
13704
- function fillArrays(features, firstPassData, options) {
13705
- const {
13706
- pointPositionsCount,
13707
- pointFeaturesCount,
13708
- linePositionsCount,
13709
- linePathsCount,
13710
- lineFeaturesCount,
13711
- polygonPositionsCount,
13712
- polygonObjectsCount,
13713
- polygonRingsCount,
13714
- polygonFeaturesCount
13715
- } = firstPassData;
13716
- const {
13717
- numericPropKeys,
13718
- propArrayTypes,
13719
- PositionDataType = Float32Array
13720
- } = options;
13721
- const hasGlobalId = features[0] && 'id' in features[0];
13722
- const coordLength = 2;
13723
- const GlobalFeatureIdsDataType = features.length > 65535 ? Uint32Array : Uint16Array;
13724
- const points = {
13725
- positions: new PositionDataType(pointPositionsCount * coordLength),
13726
- globalFeatureIds: new GlobalFeatureIdsDataType(pointPositionsCount),
13727
- featureIds: pointFeaturesCount > 65535 ? new Uint32Array(pointPositionsCount) : new Uint16Array(pointPositionsCount),
13728
- numericProps: {},
13729
- properties: [],
13730
- fields: []
13731
- };
13732
- const lines = {
13733
- pathIndices: linePositionsCount > 65535 ? new Uint32Array(linePathsCount + 1) : new Uint16Array(linePathsCount + 1),
13734
- positions: new PositionDataType(linePositionsCount * coordLength),
13735
- globalFeatureIds: new GlobalFeatureIdsDataType(linePositionsCount),
13736
- featureIds: lineFeaturesCount > 65535 ? new Uint32Array(linePositionsCount) : new Uint16Array(linePositionsCount),
13737
- numericProps: {},
13738
- properties: [],
13739
- fields: []
13740
- };
13741
- const polygons = {
13742
- polygonIndices: polygonPositionsCount > 65535 ? new Uint32Array(polygonObjectsCount + 1) : new Uint16Array(polygonObjectsCount + 1),
13743
- primitivePolygonIndices: polygonPositionsCount > 65535 ? new Uint32Array(polygonRingsCount + 1) : new Uint16Array(polygonRingsCount + 1),
13744
- positions: new PositionDataType(polygonPositionsCount * coordLength),
13745
- triangles: [],
13746
- globalFeatureIds: new GlobalFeatureIdsDataType(polygonPositionsCount),
13747
- featureIds: polygonFeaturesCount > 65535 ? new Uint32Array(polygonPositionsCount) : new Uint16Array(polygonPositionsCount),
13748
- numericProps: {},
13749
- properties: [],
13750
- fields: []
13751
- };
13752
-
13753
- for (const object of [points, lines, polygons]) {
13754
- for (const propName of numericPropKeys) {
13755
- const TypedArray = propArrayTypes[propName];
13756
- object.numericProps[propName] = new TypedArray(object.positions.length / coordLength);
13757
- }
13758
- }
13759
-
13760
- lines.pathIndices[linePathsCount] = linePositionsCount;
13761
- polygons.polygonIndices[polygonObjectsCount] = polygonPositionsCount;
13762
- polygons.primitivePolygonIndices[polygonRingsCount] = polygonPositionsCount;
13763
- const indexMap = {
13764
- pointPosition: 0,
13765
- pointFeature: 0,
13766
- linePosition: 0,
13767
- linePath: 0,
13768
- lineFeature: 0,
13769
- polygonPosition: 0,
13770
- polygonObject: 0,
13771
- polygonRing: 0,
13772
- polygonFeature: 0,
13773
- feature: 0
13774
- };
13775
-
13776
- for (const feature of features) {
13777
- const geometry = feature.geometry;
13778
- const properties = feature.properties || {};
13779
-
13780
- switch (geometry.type) {
13781
- case 'Point':
13782
- case 'MultiPoint':
13783
- handlePoint(geometry, points, indexMap, coordLength, properties);
13784
- points.properties.push(keepStringProperties(properties, numericPropKeys));
13785
-
13786
- if (hasGlobalId) {
13787
- points.fields.push({
13788
- id: feature.id
13789
- });
13790
- }
13791
-
13792
- indexMap.pointFeature++;
13793
- break;
13794
-
13795
- case 'LineString':
13796
- case 'MultiLineString':
13797
- handleLineString(geometry, lines, indexMap, coordLength, properties);
13798
- lines.properties.push(keepStringProperties(properties, numericPropKeys));
13799
-
13800
- if (hasGlobalId) {
13801
- lines.fields.push({
13802
- id: feature.id
13803
- });
13804
- }
13805
-
13806
- indexMap.lineFeature++;
13807
- break;
13808
-
13809
- case 'Polygon':
13810
- case 'MultiPolygon':
13811
- handlePolygon(geometry, polygons, indexMap, coordLength, properties);
13812
- polygons.properties.push(keepStringProperties(properties, numericPropKeys));
13813
-
13814
- if (hasGlobalId) {
13815
- polygons.fields.push({
13816
- id: feature.id
13817
- });
13818
- }
13819
-
13820
- indexMap.polygonFeature++;
13821
- break;
13822
-
13823
- default:
13824
- throw new Error('Invalid geometry type');
13825
- }
13826
-
13827
- indexMap.feature++;
13828
- }
13829
-
13830
- return makeAccessorObjects(points, lines, polygons, coordLength);
13831
- }
13832
-
13833
- function handlePoint(geometry, points, indexMap, coordLength, properties) {
13834
- points.positions.set(geometry.data, indexMap.pointPosition * coordLength);
13835
- const nPositions = geometry.data.length / coordLength;
13836
- fillNumericProperties(points, properties, indexMap.pointPosition, nPositions);
13837
- points.globalFeatureIds.fill(indexMap.feature, indexMap.pointPosition, indexMap.pointPosition + nPositions);
13838
- points.featureIds.fill(indexMap.pointFeature, indexMap.pointPosition, indexMap.pointPosition + nPositions);
13839
- indexMap.pointPosition += nPositions;
13840
- }
13841
-
13842
- function handleLineString(geometry, lines, indexMap, coordLength, properties) {
13843
- lines.positions.set(geometry.data, indexMap.linePosition * coordLength);
13844
- const nPositions = geometry.data.length / coordLength;
13845
- fillNumericProperties(lines, properties, indexMap.linePosition, nPositions);
13846
- lines.globalFeatureIds.fill(indexMap.feature, indexMap.linePosition, indexMap.linePosition + nPositions);
13847
- lines.featureIds.fill(indexMap.lineFeature, indexMap.linePosition, indexMap.linePosition + nPositions);
13848
-
13849
- for (let i = 0, il = geometry.lines.length; i < il; ++i) {
13850
- const start = geometry.lines[i];
13851
- const end = i === il - 1 ? geometry.data.length : geometry.lines[i + 1];
13852
- lines.pathIndices[indexMap.linePath++] = indexMap.linePosition;
13853
- indexMap.linePosition += (end - start) / coordLength;
13854
- }
13855
- }
13856
-
13857
- function handlePolygon(geometry, polygons, indexMap, coordLength, properties) {
13858
- polygons.positions.set(geometry.data, indexMap.polygonPosition * coordLength);
13859
- const nPositions = geometry.data.length / coordLength;
13860
- fillNumericProperties(polygons, properties, indexMap.polygonPosition, nPositions);
13861
- polygons.globalFeatureIds.fill(indexMap.feature, indexMap.polygonPosition, indexMap.polygonPosition + nPositions);
13862
- polygons.featureIds.fill(indexMap.polygonFeature, indexMap.polygonPosition, indexMap.polygonPosition + nPositions);
13863
-
13864
- for (let l = 0, ll = geometry.lines.length; l < ll; ++l) {
13865
- const startPosition = indexMap.polygonPosition;
13866
- polygons.polygonIndices[indexMap.polygonObject++] = startPosition;
13867
- const areas = geometry.areas[l];
13868
- const lines = geometry.lines[l];
13869
- const nextLines = geometry.lines[l + 1];
13870
-
13871
- for (let i = 0, il = lines.length; i < il; ++i) {
13872
- const start = lines[i];
13873
- const end = i === il - 1 ? nextLines === undefined ? geometry.data.length : nextLines[0] : lines[i + 1];
13874
- polygons.primitivePolygonIndices[indexMap.polygonRing++] = indexMap.polygonPosition;
13875
- indexMap.polygonPosition += (end - start) / coordLength;
13876
- }
13877
-
13878
- const endPosition = indexMap.polygonPosition;
13879
- triangulatePolygon(polygons, areas, lines, {
13880
- startPosition,
13881
- endPosition,
13882
- coordLength
13883
- });
13884
- }
13885
- }
13886
-
13887
- function triangulatePolygon(polygons, areas, lines, {
13888
- startPosition,
13889
- endPosition,
13890
- coordLength
13891
- }) {
13892
- const start = startPosition * coordLength;
13893
- const end = endPosition * coordLength;
13894
- const polygonPositions = polygons.positions.subarray(start, end);
13895
- const offset = lines[0];
13896
- const holes = lines.slice(1).map(n => (n - offset) / coordLength);
13897
- const indices = Object(_math_gl_polygon__WEBPACK_IMPORTED_MODULE_0__["earcut"])(polygonPositions, holes, coordLength, areas);
13898
-
13899
- for (let t = 0, tl = indices.length; t < tl; ++t) {
13900
- polygons.triangles.push(startPosition + indices[t]);
13901
- }
13902
- }
13903
-
13904
- function makeAccessorObjects(points, lines, polygons, coordLength) {
13905
- const returnObj = {
13906
- points: { ...points,
13907
- positions: {
13908
- value: points.positions,
13909
- size: coordLength
13910
- },
13911
- globalFeatureIds: {
13912
- value: points.globalFeatureIds,
13913
- size: 1
13914
- },
13915
- featureIds: {
13916
- value: points.featureIds,
13917
- size: 1
13918
- }
13919
- },
13920
- lines: { ...lines,
13921
- pathIndices: {
13922
- value: lines.pathIndices,
13923
- size: 1
13924
- },
13925
- positions: {
13926
- value: lines.positions,
13927
- size: coordLength
13928
- },
13929
- globalFeatureIds: {
13930
- value: lines.globalFeatureIds,
13931
- size: 1
13932
- },
13933
- featureIds: {
13934
- value: lines.featureIds,
13935
- size: 1
13936
- }
13937
- },
13938
- polygons: { ...polygons,
13939
- polygonIndices: {
13940
- value: polygons.polygonIndices,
13941
- size: 1
13942
- },
13943
- primitivePolygonIndices: {
13944
- value: polygons.primitivePolygonIndices,
13945
- size: 1
13946
- },
13947
- positions: {
13948
- value: polygons.positions,
13949
- size: coordLength
13950
- },
13951
- triangles: {
13952
- value: new Uint32Array(polygons.triangles),
13953
- size: 1
13954
- },
13955
- globalFeatureIds: {
13956
- value: polygons.globalFeatureIds,
13957
- size: 1
13958
- },
13959
- featureIds: {
13960
- value: polygons.featureIds,
13961
- size: 1
13962
- }
13963
- }
13964
- };
13965
-
13966
- for (const geomType in returnObj) {
13967
- for (const numericProp in returnObj[geomType].numericProps) {
13968
- returnObj[geomType].numericProps[numericProp] = {
13969
- value: returnObj[geomType].numericProps[numericProp],
13970
- size: 1
13971
- };
13972
- }
13973
- }
13974
-
13975
- return returnObj;
13976
- }
13977
-
13978
- function fillNumericProperties(object, properties, index, length) {
13979
- for (const numericPropName in object.numericProps) {
13980
- if (numericPropName in properties) {
13981
- object.numericProps[numericPropName].fill(properties[numericPropName], index, index + length);
13982
- }
13983
- }
13984
- }
13985
-
13986
- function keepStringProperties(properties, numericKeys) {
13987
- const props = {};
13988
-
13989
- for (const key in properties) {
13990
- if (!numericKeys.includes(key)) {
13991
- props[key] = properties[key];
13992
- }
13993
- }
13994
-
13995
- return props;
13996
- }
13997
-
13998
- function deduceArrayType(x, constructor) {
13999
- if (constructor === Array || !Number.isFinite(x)) {
14000
- return Array;
14001
- }
14002
-
14003
- return constructor === Float64Array || Math.fround(x) !== x ? Float64Array : Float32Array;
14004
- }
14005
- //# sourceMappingURL=features-to-binary.js.map
14006
-
14007
- /***/ }),
14008
-
14009
13853
  /***/ "../../node_modules/@loaders.gl/mvt/dist/esm/lib/binary-vector-tile/vector-tile-feature.js":
14010
13854
  /*!**********************************************************************************************************************!*\
14011
13855
  !*** /Users/alasarr/dev/deck.gl/node_modules/@loaders.gl/mvt/dist/esm/lib/binary-vector-tile/vector-tile-feature.js ***!
@@ -14032,11 +13876,7 @@ const TEST_EXPORTS = {
14032
13876
  classifyRings: _helpers_binary_util_functions__WEBPACK_IMPORTED_MODULE_1__["classifyRings"]
14033
13877
  };
14034
13878
  class VectorTileFeature {
14035
- static get types() {
14036
- return ['Unknown', 'Point', 'LineString', 'Polygon'];
14037
- }
14038
-
14039
- constructor(pbf, end, extent, keys, values, firstPassData) {
13879
+ constructor(pbf, end, extent, keys, values, geometryInfo) {
14040
13880
  Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "properties", void 0);
14041
13881
 
14042
13882
  Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "extent", void 0);
@@ -14053,7 +13893,7 @@ class VectorTileFeature {
14053
13893
 
14054
13894
  Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "_values", void 0);
14055
13895
 
14056
- Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "_firstPassData", void 0);
13896
+ Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "_geometryInfo", void 0);
14057
13897
 
14058
13898
  this.properties = {};
14059
13899
  this.extent = extent;
@@ -14063,7 +13903,7 @@ class VectorTileFeature {
14063
13903
  this._geometry = -1;
14064
13904
  this._keys = keys;
14065
13905
  this._values = values;
14066
- this._firstPassData = firstPassData;
13906
+ this._geometryInfo = geometryInfo;
14067
13907
  pbf.readFields(_helpers_binary_util_functions__WEBPACK_IMPORTED_MODULE_1__["readFeature"], this, end);
14068
13908
  }
14069
13909
 
@@ -14076,7 +13916,7 @@ class VectorTileFeature {
14076
13916
  x = 0;
14077
13917
  y = 0;
14078
13918
  i = 0;
14079
- const lines = [];
13919
+ const indices = [];
14080
13920
  const data = [];
14081
13921
 
14082
13922
  while (pbf.pos < endPos) {
@@ -14093,14 +13933,14 @@ class VectorTileFeature {
14093
13933
  y += pbf.readSVarint();
14094
13934
 
14095
13935
  if (cmd === 1) {
14096
- lines.push(i);
13936
+ indices.push(i);
14097
13937
  }
14098
13938
 
14099
13939
  data.push(x, y);
14100
13940
  i += 2;
14101
13941
  } else if (cmd === 7) {
14102
13942
  if (i > 0) {
14103
- const start = lines[lines.length - 1];
13943
+ const start = indices[indices.length - 1];
14104
13944
  data.push(data[start], data[start + 1]);
14105
13945
  i += 2;
14106
13946
  }
@@ -14111,50 +13951,55 @@ class VectorTileFeature {
14111
13951
 
14112
13952
  return {
14113
13953
  data,
14114
- lines
13954
+ indices
14115
13955
  };
14116
13956
  }
14117
13957
 
14118
13958
  _toBinaryCoordinates(transform) {
14119
- let geom = this.loadGeometry();
13959
+ const geom = this.loadGeometry();
13960
+ let geometry;
14120
13961
  transform(geom.data, this);
14121
13962
  const coordLength = 2;
14122
13963
 
14123
13964
  switch (this.type) {
14124
13965
  case 1:
14125
- this._firstPassData.pointFeaturesCount++;
14126
- this._firstPassData.pointPositionsCount += geom.lines.length;
13966
+ this._geometryInfo.pointFeaturesCount++;
13967
+ this._geometryInfo.pointPositionsCount += geom.indices.length;
13968
+ geometry = {
13969
+ type: 'Point',
13970
+ ...geom
13971
+ };
14127
13972
  break;
14128
13973
 
14129
13974
  case 2:
14130
- this._firstPassData.lineFeaturesCount++;
14131
- this._firstPassData.linePathsCount += geom.lines.length;
14132
- this._firstPassData.linePositionsCount += geom.data.length / coordLength;
13975
+ this._geometryInfo.lineFeaturesCount++;
13976
+ this._geometryInfo.linePathsCount += geom.indices.length;
13977
+ this._geometryInfo.linePositionsCount += geom.data.length / coordLength;
13978
+ geometry = {
13979
+ type: 'LineString',
13980
+ ...geom
13981
+ };
14133
13982
  break;
14134
13983
 
14135
13984
  case 3:
14136
- const classified = Object(_helpers_binary_util_functions__WEBPACK_IMPORTED_MODULE_1__["classifyRings"])(geom);
14137
- this._firstPassData.polygonFeaturesCount++;
14138
- this._firstPassData.polygonObjectsCount += classified.lines.length;
13985
+ geometry = Object(_helpers_binary_util_functions__WEBPACK_IMPORTED_MODULE_1__["classifyRings"])(geom);
13986
+ this._geometryInfo.polygonFeaturesCount++;
13987
+ this._geometryInfo.polygonObjectsCount += geometry.indices.length;
14139
13988
 
14140
- for (const lines of classified.lines) {
14141
- this._firstPassData.polygonRingsCount += lines.length;
13989
+ for (const indices of geometry.indices) {
13990
+ this._geometryInfo.polygonRingsCount += indices.length;
14142
13991
  }
14143
13992
 
14144
- this._firstPassData.polygonPositionsCount += classified.data.length / coordLength;
14145
- geom = classified;
13993
+ this._geometryInfo.polygonPositionsCount += geometry.data.length / coordLength;
14146
13994
  break;
14147
- }
14148
-
14149
- geom.type = VectorTileFeature.types[this.type];
14150
13995
 
14151
- if (geom.lines.length > 1) {
14152
- geom.type = "Multi".concat(geom.type);
13996
+ default:
13997
+ throw new Error("Invalid geometry type: ".concat(this.type));
14153
13998
  }
14154
13999
 
14155
14000
  const result = {
14156
14001
  type: 'Feature',
14157
- geometry: geom,
14002
+ geometry,
14158
14003
  properties: this.properties
14159
14004
  };
14160
14005
 
@@ -14222,7 +14067,7 @@ class VectorTileLayer {
14222
14067
  this.length = this._features.length;
14223
14068
  }
14224
14069
 
14225
- feature(i, firstPassData) {
14070
+ feature(i, geometryInfo) {
14226
14071
  if (i < 0 || i >= this._features.length) {
14227
14072
  throw new Error('feature index out of bounds');
14228
14073
  }
@@ -14231,7 +14076,7 @@ class VectorTileLayer {
14231
14076
 
14232
14077
  const end = this._pbf.readVarint() + this._pbf.pos;
14233
14078
 
14234
- return new _vector_tile_feature__WEBPACK_IMPORTED_MODULE_1__["default"](this._pbf, end, this.extent, this._keys, this._values, firstPassData);
14079
+ return new _vector_tile_feature__WEBPACK_IMPORTED_MODULE_1__["default"](this._pbf, end, this.extent, this._keys, this._values, geometryInfo);
14235
14080
  }
14236
14081
 
14237
14082
  }
@@ -14641,7 +14486,7 @@ __webpack_require__.r(__webpack_exports__);
14641
14486
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return parseMVT; });
14642
14487
  /* harmony import */ var _mapbox_vector_tile_vector_tile__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./mapbox-vector-tile/vector-tile */ "../../node_modules/@loaders.gl/mvt/dist/esm/lib/mapbox-vector-tile/vector-tile.js");
14643
14488
  /* harmony import */ var _binary_vector_tile_vector_tile__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./binary-vector-tile/vector-tile */ "../../node_modules/@loaders.gl/mvt/dist/esm/lib/binary-vector-tile/vector-tile.js");
14644
- /* harmony import */ var _binary_vector_tile_features_to_binary__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./binary-vector-tile/features-to-binary */ "../../node_modules/@loaders.gl/mvt/dist/esm/lib/binary-vector-tile/features-to-binary.js");
14489
+ /* harmony import */ var _loaders_gl_gis__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @loaders.gl/gis */ "../../node_modules/@loaders.gl/gis/dist/esm/index.js");
14645
14490
  /* harmony import */ var pbf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! pbf */ "../../node_modules/pbf/index.js");
14646
14491
  /* harmony import */ var pbf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(pbf__WEBPACK_IMPORTED_MODULE_3__);
14647
14492
 
@@ -14654,7 +14499,8 @@ function parseMVT(arrayBuffer, options) {
14654
14499
 
14655
14500
  if (options) {
14656
14501
  const binary = options.gis.format === 'binary';
14657
- const firstPassData = {
14502
+ const geometryInfo = {
14503
+ coordLength: 2,
14658
14504
  pointPositionsCount: 0,
14659
14505
  pointFeaturesCount: 0,
14660
14506
  linePositionsCount: 0,
@@ -14681,7 +14527,7 @@ function parseMVT(arrayBuffer, options) {
14681
14527
  }
14682
14528
 
14683
14529
  for (let i = 0; i < vectorTileLayer.length; i++) {
14684
- const vectorTileFeature = vectorTileLayer.feature(i, firstPassData);
14530
+ const vectorTileFeature = vectorTileLayer.feature(i, geometryInfo);
14685
14531
  const decodedFeature = binary ? getDecodedFeatureBinary(vectorTileFeature, featureOptions) : getDecodedFeature(vectorTileFeature, featureOptions);
14686
14532
  features.push(decodedFeature);
14687
14533
  }
@@ -14689,7 +14535,7 @@ function parseMVT(arrayBuffer, options) {
14689
14535
  }
14690
14536
 
14691
14537
  if (binary) {
14692
- const data = Object(_binary_vector_tile_features_to_binary__WEBPACK_IMPORTED_MODULE_2__["featuresToBinary"])(features, firstPassData);
14538
+ const data = Object(_loaders_gl_gis__WEBPACK_IMPORTED_MODULE_2__["flatGeojsonToBinary"])(features, geometryInfo);
14693
14539
  data.byteLength = arrayBuffer.byteLength;
14694
14540
  return data;
14695
14541
  }
@@ -14731,7 +14577,7 @@ function getDecodedFeature(feature, options) {
14731
14577
  function getDecodedFeatureBinary(feature, options) {
14732
14578
  const decodedFeature = feature.toBinaryCoordinates(options.coordinates === 'wgs84' ? options.tileIndex : transformToLocalCoordinatesBinary);
14733
14579
 
14734
- if (options.layerProperty) {
14580
+ if (options.layerProperty && decodedFeature.properties) {
14735
14581
  decodedFeature.properties[options.layerProperty] = options.layerName;
14736
14582
  }
14737
14583
 
@@ -14776,7 +14622,7 @@ __webpack_require__.r(__webpack_exports__);
14776
14622
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MVTLoader", function() { return MVTLoader; });
14777
14623
  /* harmony import */ var _lib_parse_mvt__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./lib/parse-mvt */ "../../node_modules/@loaders.gl/mvt/dist/esm/lib/parse-mvt.js");
14778
14624
 
14779
- const VERSION = true ? "3.1.0" : undefined;
14625
+ const VERSION = true ? "3.1.3" : undefined;
14780
14626
  const MVTWorkerLoader = {
14781
14627
  name: 'Mapbox Vector Tile',
14782
14628
  id: 'mvt',
@@ -18021,7 +17867,7 @@ async function loadTerrain(arrayBuffer, options, context) {
18021
17867
  "use strict";
18022
17868
  __webpack_require__.r(__webpack_exports__);
18023
17869
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VERSION", function() { return VERSION; });
18024
- const VERSION = true ? "3.1.0" : undefined;
17870
+ const VERSION = true ? "3.1.3" : undefined;
18025
17871
  //# sourceMappingURL=version.js.map
18026
17872
 
18027
17873
  /***/ }),
@@ -18441,16 +18287,13 @@ __webpack_require__.r(__webpack_exports__);
18441
18287
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "encodeImageURLToCompressedTextureURL", function() { return encodeImageURLToCompressedTextureURL; });
18442
18288
  /* harmony import */ var _loaders_gl_worker_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @loaders.gl/worker-utils */ "../../node_modules/@loaders.gl/worker-utils/dist/esm/index.js");
18443
18289
 
18444
- const MODULE_ROOT = "".concat(__dirname, "/../../..");
18445
- async function encodeImageURLToCompressedTextureURL(inputUrl, outputUrl) {
18290
+ async function encodeImageURLToCompressedTextureURL(inputUrl, outputUrl, options) {
18446
18291
  const args = ['texture-compressor', '--type', 's3tc', '--compression', 'DXT1', '--quality', 'normal', '--input', inputUrl, '--output', outputUrl];
18447
18292
  const childProcess = new _loaders_gl_worker_utils__WEBPACK_IMPORTED_MODULE_0__["ChildProcessProxy"]();
18448
18293
  await childProcess.start({
18449
18294
  command: 'npx',
18450
18295
  arguments: args,
18451
- spawn: {
18452
- cwd: MODULE_ROOT
18453
- }
18296
+ spawn: options
18454
18297
  });
18455
18298
  return outputUrl;
18456
18299
  }
@@ -18544,7 +18387,7 @@ __webpack_require__.r(__webpack_exports__);
18544
18387
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "loadBasisTrascoderModule", function() { return loadBasisTrascoderModule; });
18545
18388
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "loadBasisEncoderModule", function() { return loadBasisEncoderModule; });
18546
18389
  /* harmony import */ var _loaders_gl_worker_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @loaders.gl/worker-utils */ "../../node_modules/@loaders.gl/worker-utils/dist/esm/index.js");
18547
- const VERSION = true ? "3.1.0" : undefined;
18390
+ const VERSION = true ? "3.1.3" : undefined;
18548
18391
 
18549
18392
  const BASIS_CDN_ENCODER_WASM = "https://unpkg.com/@loaders.gl/textures@".concat(VERSION, "/dist/libs/basis_encoder.wasm");
18550
18393
  const BASIS_CDN_ENCODER_JS = "https://unpkg.com/@loaders.gl/textures@".concat(VERSION, "/dist/libs/basis_encoder.js");
@@ -19858,7 +19701,7 @@ function getWebGLContext() {
19858
19701
  "use strict";
19859
19702
  __webpack_require__.r(__webpack_exports__);
19860
19703
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VERSION", function() { return VERSION; });
19861
- const VERSION = true ? "3.1.0" : undefined;
19704
+ const VERSION = true ? "3.1.3" : undefined;
19862
19705
  //# sourceMappingURL=version.js.map
19863
19706
 
19864
19707
  /***/ }),
@@ -20163,7 +20006,7 @@ function getFrameState(viewport, frameNumber) {
20163
20006
  const {
20164
20007
  metersPerUnit
20165
20008
  } = viewport.distanceScales;
20166
- const viewportCenterCartographic = [viewport.longitude, viewport.latitude, 0];
20009
+ const viewportCenterCartographic = viewport.unprojectPosition(viewport.center);
20167
20010
  const viewportCenterCartesian = _math_gl_geospatial__WEBPACK_IMPORTED_MODULE_2__["Ellipsoid"].WGS84.cartographicToCartesian(viewportCenterCartographic, new _math_gl_core__WEBPACK_IMPORTED_MODULE_0__["Vector3"]());
20168
20011
  const enuToFixedTransform = _math_gl_geospatial__WEBPACK_IMPORTED_MODULE_2__["Ellipsoid"].WGS84.eastNorthUpToFixedFrame(viewportCenterCartesian);
20169
20012
  const cameraPositionCartographic = viewport.unprojectPosition(viewport.cameraPosition);
@@ -22951,8 +22794,8 @@ const nodeVersion = matches && parseFloat(matches[1]) || 0;
22951
22794
  "use strict";
22952
22795
  __webpack_require__.r(__webpack_exports__);
22953
22796
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VERSION", function() { return VERSION; });
22954
- const DEFAULT_VERSION = 'beta';
22955
- const VERSION = true ? "3.1.0" : undefined;
22797
+ const DEFAULT_VERSION = 'latest';
22798
+ const VERSION = true ? "3.1.3" : undefined;
22956
22799
 
22957
22800
  if (false) {}
22958
22801
  //# sourceMappingURL=version.js.map
@@ -22979,8 +22822,8 @@ __webpack_require__.r(__webpack_exports__);
22979
22822
 
22980
22823
 
22981
22824
 
22982
- const LATEST = 'beta';
22983
- const VERSION = true ? "3.1.0" : undefined;
22825
+ const LATEST = 'latest';
22826
+ const VERSION = true ? "3.1.3" : undefined;
22984
22827
  const loadLibraryPromises = {};
22985
22828
  async function loadLibrary(libraryUrl, moduleName = null, options = {}) {
22986
22829
  if (moduleName) {
@@ -23024,7 +22867,11 @@ async function loadLibraryFromFile(libraryUrl) {
23024
22867
  }
23025
22868
 
23026
22869
  if (!_env_utils_globals__WEBPACK_IMPORTED_MODULE_0__["isBrowser"]) {
23027
- return _node_require_utils_node__WEBPACK_IMPORTED_MODULE_1__["requireFromFile"] && (await _node_require_utils_node__WEBPACK_IMPORTED_MODULE_1__["requireFromFile"](libraryUrl));
22870
+ try {
22871
+ return _node_require_utils_node__WEBPACK_IMPORTED_MODULE_1__ && _node_require_utils_node__WEBPACK_IMPORTED_MODULE_1__["requireFromFile"] && (await _node_require_utils_node__WEBPACK_IMPORTED_MODULE_1__["requireFromFile"](libraryUrl));
22872
+ } catch {
22873
+ return null;
22874
+ }
23028
22875
  }
23029
22876
 
23030
22877
  if (_env_utils_globals__WEBPACK_IMPORTED_MODULE_0__["isWorker"]) {
@@ -23191,8 +23038,8 @@ __webpack_require__.r(__webpack_exports__);
23191
23038
  /* harmony import */ var _env_utils_version__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../env-utils/version */ "../../node_modules/@loaders.gl/worker-utils/dist/esm/lib/env-utils/version.js");
23192
23039
 
23193
23040
 
23194
- const NPM_TAG = 'beta';
23195
- const VERSION = true ? "3.1.0" : undefined;
23041
+ const NPM_TAG = 'latest';
23042
+ const VERSION = true ? "3.1.3" : undefined;
23196
23043
  function getWorkerName(worker) {
23197
23044
  const warning = worker.version !== VERSION ? " (worker-utils@".concat(VERSION, ")") : '';
23198
23045
  return "".concat(worker.name, "@").concat(worker.version).concat(warning);
@@ -53573,13 +53420,42 @@ __webpack_require__.r(__webpack_exports__);
53573
53420
  "use strict";
53574
53421
  __webpack_require__.r(__webpack_exports__);
53575
53422
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Stat; });
53576
- /* harmony import */ var _utils_hi_res_timestamp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/hi-res-timestamp */ "../../node_modules/@probe.gl/stats/dist/esm/utils/hi-res-timestamp.js");
53423
+ /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "../../node_modules/@babel/runtime/helpers/esm/defineProperty.js");
53424
+ /* harmony import */ var _utils_hi_res_timestamp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/hi-res-timestamp */ "../../node_modules/@probe.gl/stats/dist/esm/utils/hi-res-timestamp.js");
53425
+
53577
53426
 
53578
53427
  class Stat {
53579
53428
  constructor(name, type) {
53429
+ Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "name", void 0);
53430
+
53431
+ Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "type", void 0);
53432
+
53433
+ Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "sampleSize", 1);
53434
+
53435
+ Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "time", void 0);
53436
+
53437
+ Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "count", void 0);
53438
+
53439
+ Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "samples", void 0);
53440
+
53441
+ Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "lastTiming", void 0);
53442
+
53443
+ Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "lastSampleTime", void 0);
53444
+
53445
+ Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "lastSampleCount", void 0);
53446
+
53447
+ Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "_count", 0);
53448
+
53449
+ Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "_time", 0);
53450
+
53451
+ Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "_samples", 0);
53452
+
53453
+ Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "_startTime", 0);
53454
+
53455
+ Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "_timerPending", false);
53456
+
53580
53457
  this.name = name;
53581
53458
  this.type = type;
53582
- this.sampleSize = 1;
53583
53459
  this.reset();
53584
53460
  }
53585
53461
 
@@ -53627,7 +53503,7 @@ class Stat {
53627
53503
  }
53628
53504
 
53629
53505
  timeStart() {
53630
- this._startTime = Object(_utils_hi_res_timestamp__WEBPACK_IMPORTED_MODULE_0__["default"])();
53506
+ this._startTime = Object(_utils_hi_res_timestamp__WEBPACK_IMPORTED_MODULE_1__["default"])();
53631
53507
  this._timerPending = true;
53632
53508
  return this;
53633
53509
  }
@@ -53637,7 +53513,7 @@ class Stat {
53637
53513
  return this;
53638
53514
  }
53639
53515
 
53640
- this.addTime(Object(_utils_hi_res_timestamp__WEBPACK_IMPORTED_MODULE_0__["default"])() - this._startTime);
53516
+ this.addTime(Object(_utils_hi_res_timestamp__WEBPACK_IMPORTED_MODULE_1__["default"])() - this._startTime);
53641
53517
  this._timerPending = false;
53642
53518
 
53643
53519
  this._checkSampling();
@@ -53712,22 +53588,26 @@ class Stat {
53712
53588
  "use strict";
53713
53589
  __webpack_require__.r(__webpack_exports__);
53714
53590
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Stats; });
53715
- /* harmony import */ var _stat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./stat */ "../../node_modules/@probe.gl/stats/dist/esm/lib/stat.js");
53591
+ /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "../../node_modules/@babel/runtime/helpers/esm/defineProperty.js");
53592
+ /* harmony import */ var _stat__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stat */ "../../node_modules/@probe.gl/stats/dist/esm/lib/stat.js");
53593
+
53716
53594
 
53717
53595
  class Stats {
53718
- constructor({
53719
- id,
53720
- stats
53721
- }) {
53722
- this.id = id;
53596
+ constructor(options) {
53597
+ Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "id", void 0);
53598
+
53599
+ Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "stats", {});
53600
+
53601
+ this.id = options.id;
53723
53602
  this.stats = {};
53724
53603
 
53725
- this._initializeStats(stats);
53604
+ this._initializeStats(options.stats);
53726
53605
 
53727
53606
  Object.seal(this);
53728
53607
  }
53729
53608
 
53730
- get(name, type = 'count') {
53609
+ get(name) {
53610
+ let type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'count';
53731
53611
  return this._getOrCreate({
53732
53612
  name,
53733
53613
  type
@@ -53765,7 +53645,8 @@ class Stats {
53765
53645
  return table;
53766
53646
  }
53767
53647
 
53768
- _initializeStats(stats = []) {
53648
+ _initializeStats() {
53649
+ let stats = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
53769
53650
  stats.forEach(stat => this._getOrCreate(stat));
53770
53651
  }
53771
53652
 
@@ -53780,10 +53661,10 @@ class Stats {
53780
53661
  } = stat;
53781
53662
 
53782
53663
  if (!this.stats[name]) {
53783
- if (stat instanceof _stat__WEBPACK_IMPORTED_MODULE_0__["default"]) {
53664
+ if (stat instanceof _stat__WEBPACK_IMPORTED_MODULE_1__["default"]) {
53784
53665
  this.stats[name] = stat;
53785
53666
  } else {
53786
- this.stats[name] = new _stat__WEBPACK_IMPORTED_MODULE_0__["default"](name, type);
53667
+ this.stats[name] = new _stat__WEBPACK_IMPORTED_MODULE_1__["default"](name, type);
53787
53668
  }
53788
53669
  }
53789
53670
 
@@ -62735,7 +62616,7 @@ __webpack_require__.r(__webpack_exports__);
62735
62616
  /* harmony import */ var _utils_hi_res_timestamp__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./utils/hi-res-timestamp */ "../../node_modules/probe.gl/dist/esm/utils/hi-res-timestamp.js");
62736
62617
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getHiResTimestamp", function() { return _utils_hi_res_timestamp__WEBPACK_IMPORTED_MODULE_12__["default"]; });
62737
62618
 
62738
- /* harmony import */ var _probe_gl_stats__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @probe.gl/stats */ "../../node_modules/@probe.gl/stats/dist/esm/index.js");
62619
+ /* harmony import */ var _probe_gl_stats__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @probe.gl/stats */ "../../node_modules/probe.gl/node_modules/@probe.gl/stats/dist/esm/index.js");
62739
62620
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Stats", function() { return _probe_gl_stats__WEBPACK_IMPORTED_MODULE_13__["Stats"]; });
62740
62621
 
62741
62622
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Stat", function() { return _probe_gl_stats__WEBPACK_IMPORTED_MODULE_13__["Stat"]; });
@@ -63444,7 +63325,7 @@ __webpack_require__.r(__webpack_exports__);
63444
63325
 
63445
63326
 
63446
63327
 
63447
- const VERSION = true ? "8.7.0-alpha.8" : undefined;
63328
+ const VERSION = true ? "8.7.0-alpha.9" : undefined;
63448
63329
  const isBrowser = Object(_env_is_browser__WEBPACK_IMPORTED_MODULE_0__["default"])();
63449
63330
  //# sourceMappingURL=globals.js.map
63450
63331
 
@@ -63561,6 +63442,291 @@ class LocalStorage {
63561
63442
  module.exports = __webpack_require__(/*! ./dist/es5/env */ "../../node_modules/probe.gl/dist/es5/env/index.js");
63562
63443
 
63563
63444
 
63445
+ /***/ }),
63446
+
63447
+ /***/ "../../node_modules/probe.gl/node_modules/@probe.gl/stats/dist/esm/index.js":
63448
+ /*!*******************************************************************************************************!*\
63449
+ !*** /Users/alasarr/dev/deck.gl/node_modules/probe.gl/node_modules/@probe.gl/stats/dist/esm/index.js ***!
63450
+ \*******************************************************************************************************/
63451
+ /*! exports provided: Stats, Stat, _getHiResTimestamp */
63452
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
63453
+
63454
+ "use strict";
63455
+ __webpack_require__.r(__webpack_exports__);
63456
+ /* harmony import */ var _lib_stats__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./lib/stats */ "../../node_modules/probe.gl/node_modules/@probe.gl/stats/dist/esm/lib/stats.js");
63457
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Stats", function() { return _lib_stats__WEBPACK_IMPORTED_MODULE_0__["default"]; });
63458
+
63459
+ /* harmony import */ var _lib_stat__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./lib/stat */ "../../node_modules/probe.gl/node_modules/@probe.gl/stats/dist/esm/lib/stat.js");
63460
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Stat", function() { return _lib_stat__WEBPACK_IMPORTED_MODULE_1__["default"]; });
63461
+
63462
+ /* harmony import */ var _utils_hi_res_timestamp__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils/hi-res-timestamp */ "../../node_modules/probe.gl/node_modules/@probe.gl/stats/dist/esm/utils/hi-res-timestamp.js");
63463
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "_getHiResTimestamp", function() { return _utils_hi_res_timestamp__WEBPACK_IMPORTED_MODULE_2__["default"]; });
63464
+
63465
+
63466
+
63467
+
63468
+ //# sourceMappingURL=index.js.map
63469
+
63470
+ /***/ }),
63471
+
63472
+ /***/ "../../node_modules/probe.gl/node_modules/@probe.gl/stats/dist/esm/lib/stat.js":
63473
+ /*!**********************************************************************************************************!*\
63474
+ !*** /Users/alasarr/dev/deck.gl/node_modules/probe.gl/node_modules/@probe.gl/stats/dist/esm/lib/stat.js ***!
63475
+ \**********************************************************************************************************/
63476
+ /*! exports provided: default */
63477
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
63478
+
63479
+ "use strict";
63480
+ __webpack_require__.r(__webpack_exports__);
63481
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Stat; });
63482
+ /* harmony import */ var _utils_hi_res_timestamp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/hi-res-timestamp */ "../../node_modules/probe.gl/node_modules/@probe.gl/stats/dist/esm/utils/hi-res-timestamp.js");
63483
+
63484
+ class Stat {
63485
+ constructor(name, type) {
63486
+ this.name = name;
63487
+ this.type = type;
63488
+ this.sampleSize = 1;
63489
+ this.reset();
63490
+ }
63491
+
63492
+ setSampleSize(samples) {
63493
+ this.sampleSize = samples;
63494
+ return this;
63495
+ }
63496
+
63497
+ incrementCount() {
63498
+ this.addCount(1);
63499
+ return this;
63500
+ }
63501
+
63502
+ decrementCount() {
63503
+ this.subtractCount(1);
63504
+ return this;
63505
+ }
63506
+
63507
+ addCount(value) {
63508
+ this._count += value;
63509
+ this._samples++;
63510
+
63511
+ this._checkSampling();
63512
+
63513
+ return this;
63514
+ }
63515
+
63516
+ subtractCount(value) {
63517
+ this._count -= value;
63518
+ this._samples++;
63519
+
63520
+ this._checkSampling();
63521
+
63522
+ return this;
63523
+ }
63524
+
63525
+ addTime(time) {
63526
+ this._time += time;
63527
+ this.lastTiming = time;
63528
+ this._samples++;
63529
+
63530
+ this._checkSampling();
63531
+
63532
+ return this;
63533
+ }
63534
+
63535
+ timeStart() {
63536
+ this._startTime = Object(_utils_hi_res_timestamp__WEBPACK_IMPORTED_MODULE_0__["default"])();
63537
+ this._timerPending = true;
63538
+ return this;
63539
+ }
63540
+
63541
+ timeEnd() {
63542
+ if (!this._timerPending) {
63543
+ return this;
63544
+ }
63545
+
63546
+ this.addTime(Object(_utils_hi_res_timestamp__WEBPACK_IMPORTED_MODULE_0__["default"])() - this._startTime);
63547
+ this._timerPending = false;
63548
+
63549
+ this._checkSampling();
63550
+
63551
+ return this;
63552
+ }
63553
+
63554
+ getSampleAverageCount() {
63555
+ return this.sampleSize > 0 ? this.lastSampleCount / this.sampleSize : 0;
63556
+ }
63557
+
63558
+ getSampleAverageTime() {
63559
+ return this.sampleSize > 0 ? this.lastSampleTime / this.sampleSize : 0;
63560
+ }
63561
+
63562
+ getSampleHz() {
63563
+ return this.lastSampleTime > 0 ? this.sampleSize / (this.lastSampleTime / 1000) : 0;
63564
+ }
63565
+
63566
+ getAverageCount() {
63567
+ return this.samples > 0 ? this.count / this.samples : 0;
63568
+ }
63569
+
63570
+ getAverageTime() {
63571
+ return this.samples > 0 ? this.time / this.samples : 0;
63572
+ }
63573
+
63574
+ getHz() {
63575
+ return this.time > 0 ? this.samples / (this.time / 1000) : 0;
63576
+ }
63577
+
63578
+ reset() {
63579
+ this.time = 0;
63580
+ this.count = 0;
63581
+ this.samples = 0;
63582
+ this.lastTiming = 0;
63583
+ this.lastSampleTime = 0;
63584
+ this.lastSampleCount = 0;
63585
+ this._count = 0;
63586
+ this._time = 0;
63587
+ this._samples = 0;
63588
+ this._startTime = 0;
63589
+ this._timerPending = false;
63590
+ return this;
63591
+ }
63592
+
63593
+ _checkSampling() {
63594
+ if (this._samples === this.sampleSize) {
63595
+ this.lastSampleTime = this._time;
63596
+ this.lastSampleCount = this._count;
63597
+ this.count += this._count;
63598
+ this.time += this._time;
63599
+ this.samples += this._samples;
63600
+ this._time = 0;
63601
+ this._count = 0;
63602
+ this._samples = 0;
63603
+ }
63604
+ }
63605
+
63606
+ }
63607
+ //# sourceMappingURL=stat.js.map
63608
+
63609
+ /***/ }),
63610
+
63611
+ /***/ "../../node_modules/probe.gl/node_modules/@probe.gl/stats/dist/esm/lib/stats.js":
63612
+ /*!***********************************************************************************************************!*\
63613
+ !*** /Users/alasarr/dev/deck.gl/node_modules/probe.gl/node_modules/@probe.gl/stats/dist/esm/lib/stats.js ***!
63614
+ \***********************************************************************************************************/
63615
+ /*! exports provided: default */
63616
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
63617
+
63618
+ "use strict";
63619
+ __webpack_require__.r(__webpack_exports__);
63620
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Stats; });
63621
+ /* harmony import */ var _stat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./stat */ "../../node_modules/probe.gl/node_modules/@probe.gl/stats/dist/esm/lib/stat.js");
63622
+
63623
+ class Stats {
63624
+ constructor({
63625
+ id,
63626
+ stats
63627
+ }) {
63628
+ this.id = id;
63629
+ this.stats = {};
63630
+
63631
+ this._initializeStats(stats);
63632
+
63633
+ Object.seal(this);
63634
+ }
63635
+
63636
+ get(name, type = 'count') {
63637
+ return this._getOrCreate({
63638
+ name,
63639
+ type
63640
+ });
63641
+ }
63642
+
63643
+ get size() {
63644
+ return Object.keys(this.stats).length;
63645
+ }
63646
+
63647
+ reset() {
63648
+ for (const key in this.stats) {
63649
+ this.stats[key].reset();
63650
+ }
63651
+
63652
+ return this;
63653
+ }
63654
+
63655
+ forEach(fn) {
63656
+ for (const key in this.stats) {
63657
+ fn(this.stats[key]);
63658
+ }
63659
+ }
63660
+
63661
+ getTable() {
63662
+ const table = {};
63663
+ this.forEach(stat => {
63664
+ table[stat.name] = {
63665
+ time: stat.time || 0,
63666
+ count: stat.count || 0,
63667
+ average: stat.getAverageTime() || 0,
63668
+ hz: stat.getHz() || 0
63669
+ };
63670
+ });
63671
+ return table;
63672
+ }
63673
+
63674
+ _initializeStats(stats = []) {
63675
+ stats.forEach(stat => this._getOrCreate(stat));
63676
+ }
63677
+
63678
+ _getOrCreate(stat) {
63679
+ if (!stat || !stat.name) {
63680
+ return null;
63681
+ }
63682
+
63683
+ const {
63684
+ name,
63685
+ type
63686
+ } = stat;
63687
+
63688
+ if (!this.stats[name]) {
63689
+ if (stat instanceof _stat__WEBPACK_IMPORTED_MODULE_0__["default"]) {
63690
+ this.stats[name] = stat;
63691
+ } else {
63692
+ this.stats[name] = new _stat__WEBPACK_IMPORTED_MODULE_0__["default"](name, type);
63693
+ }
63694
+ }
63695
+
63696
+ return this.stats[name];
63697
+ }
63698
+
63699
+ }
63700
+ //# sourceMappingURL=stats.js.map
63701
+
63702
+ /***/ }),
63703
+
63704
+ /***/ "../../node_modules/probe.gl/node_modules/@probe.gl/stats/dist/esm/utils/hi-res-timestamp.js":
63705
+ /*!************************************************************************************************************************!*\
63706
+ !*** /Users/alasarr/dev/deck.gl/node_modules/probe.gl/node_modules/@probe.gl/stats/dist/esm/utils/hi-res-timestamp.js ***!
63707
+ \************************************************************************************************************************/
63708
+ /*! exports provided: default */
63709
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
63710
+
63711
+ "use strict";
63712
+ __webpack_require__.r(__webpack_exports__);
63713
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getHiResTimestamp; });
63714
+ function getHiResTimestamp() {
63715
+ let timestamp;
63716
+
63717
+ if (typeof window !== 'undefined' && window.performance) {
63718
+ timestamp = window.performance.now();
63719
+ } else if (typeof process !== 'undefined' && process.hrtime) {
63720
+ const timeParts = process.hrtime();
63721
+ timestamp = timeParts[0] * 1000 + timeParts[1] / 1e6;
63722
+ } else {
63723
+ timestamp = Date.now();
63724
+ }
63725
+
63726
+ return timestamp;
63727
+ }
63728
+ //# sourceMappingURL=hi-res-timestamp.js.map
63729
+
63564
63730
  /***/ }),
63565
63731
 
63566
63732
  /***/ "./bundle.ts":
@@ -63592,7 +63758,7 @@ module.exports = Object.assign(deck, deckGLLayers);
63592
63758
  "use strict";
63593
63759
  __webpack_require__.r(__webpack_exports__);
63594
63760
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return GreatCircleLayer; });
63595
- /* harmony import */ var _deck_gl_layers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @deck.gl/layers */ "@deck.gl/layers");
63761
+ /* harmony import */ var _deck_gl_layers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @deck.gl/layers */ "@deck.gl/core");
63596
63762
  /* harmony import */ var _deck_gl_layers__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_deck_gl_layers__WEBPACK_IMPORTED_MODULE_0__);
63597
63763
  // Copyright (c) 2015 - 2017 Uber Technologies, Inc.
63598
63764
  //
@@ -63640,7 +63806,7 @@ __webpack_require__.r(__webpack_exports__);
63640
63806
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return H3ClusterLayer; });
63641
63807
  /* harmony import */ var h3_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! h3-js */ "h3-js");
63642
63808
  /* harmony import */ var h3_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(h3_js__WEBPACK_IMPORTED_MODULE_0__);
63643
- /* harmony import */ var _deck_gl_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @deck.gl/core */ "@deck.gl/layers");
63809
+ /* harmony import */ var _deck_gl_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @deck.gl/core */ "@deck.gl/core");
63644
63810
  /* harmony import */ var _deck_gl_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_deck_gl_core__WEBPACK_IMPORTED_MODULE_1__);
63645
63811
 
63646
63812
 
@@ -63758,7 +63924,7 @@ __webpack_require__.r(__webpack_exports__);
63758
63924
  /* harmony import */ var h3_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! h3-js */ "h3-js");
63759
63925
  /* harmony import */ var h3_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(h3_js__WEBPACK_IMPORTED_MODULE_0__);
63760
63926
  /* harmony import */ var _math_gl_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @math.gl/core */ "../../node_modules/@math.gl/core/dist/esm/index.js");
63761
- /* harmony import */ var _deck_gl_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @deck.gl/core */ "@deck.gl/layers");
63927
+ /* harmony import */ var _deck_gl_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @deck.gl/core */ "@deck.gl/core");
63762
63928
  /* harmony import */ var _deck_gl_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_deck_gl_core__WEBPACK_IMPORTED_MODULE_2__);
63763
63929
 
63764
63930
 
@@ -64348,7 +64514,7 @@ __webpack_require__.r(__webpack_exports__);
64348
64514
  /* harmony import */ var _luma_gl_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @luma.gl/core */ "@luma.gl/core");
64349
64515
  /* harmony import */ var _luma_gl_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_luma_gl_core__WEBPACK_IMPORTED_MODULE_1__);
64350
64516
  /* harmony import */ var _luma_gl_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @luma.gl/constants */ "../../node_modules/@luma.gl/constants/dist/esm/index.js");
64351
- /* harmony import */ var _deck_gl_mesh_layers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @deck.gl/mesh-layers */ "@deck.gl/layers");
64517
+ /* harmony import */ var _deck_gl_mesh_layers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @deck.gl/mesh-layers */ "@deck.gl/core");
64352
64518
  /* harmony import */ var _deck_gl_mesh_layers__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_deck_gl_mesh_layers__WEBPACK_IMPORTED_MODULE_3__);
64353
64519
  /* harmony import */ var _mesh_layer_vertex_glsl__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./mesh-layer-vertex.glsl */ "./src/mesh-layer/mesh-layer-vertex.glsl.js");
64354
64520
  /* harmony import */ var _mesh_layer_fragment_glsl__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./mesh-layer-fragment.glsl */ "./src/mesh-layer/mesh-layer-fragment.glsl.js");
@@ -64722,7 +64888,7 @@ function findIndex(array, predicate, startIndex, endIndex) {
64722
64888
  "use strict";
64723
64889
  __webpack_require__.r(__webpack_exports__);
64724
64890
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return MVTLayer; });
64725
- /* harmony import */ var _deck_gl_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @deck.gl/core */ "@deck.gl/layers");
64891
+ /* harmony import */ var _deck_gl_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @deck.gl/core */ "@deck.gl/core");
64726
64892
  /* harmony import */ var _deck_gl_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_deck_gl_core__WEBPACK_IMPORTED_MODULE_0__);
64727
64893
  /* harmony import */ var _math_gl_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @math.gl/core */ "../../node_modules/@math.gl/core/dist/esm/index.js");
64728
64894
  /* harmony import */ var _loaders_gl_mvt__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @loaders.gl/mvt */ "../../node_modules/@loaders.gl/mvt/dist/esm/index.js");
@@ -65333,7 +65499,7 @@ function FromHilbertQuadKey(hilbertQuadkey) {
65333
65499
  "use strict";
65334
65500
  __webpack_require__.r(__webpack_exports__);
65335
65501
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return S2Layer; });
65336
- /* harmony import */ var _deck_gl_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @deck.gl/core */ "@deck.gl/layers");
65502
+ /* harmony import */ var _deck_gl_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @deck.gl/core */ "@deck.gl/core");
65337
65503
  /* harmony import */ var _deck_gl_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_deck_gl_core__WEBPACK_IMPORTED_MODULE_0__);
65338
65504
  /* harmony import */ var _s2_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./s2-utils */ "./src/s2-layer/s2-utils.js");
65339
65505
  // Copyright (c) 2015 - 2017 Uber Technologies, Inc.
@@ -65566,7 +65732,7 @@ function getS2Polygon(token) {
65566
65732
  "use strict";
65567
65733
  __webpack_require__.r(__webpack_exports__);
65568
65734
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return TerrainLayer; });
65569
- /* harmony import */ var _deck_gl_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @deck.gl/core */ "@deck.gl/layers");
65735
+ /* harmony import */ var _deck_gl_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @deck.gl/core */ "@deck.gl/core");
65570
65736
  /* harmony import */ var _deck_gl_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_deck_gl_core__WEBPACK_IMPORTED_MODULE_0__);
65571
65737
  /* harmony import */ var _loaders_gl_terrain__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @loaders.gl/terrain */ "../../node_modules/@loaders.gl/terrain/dist/esm/index.js");
65572
65738
  /* harmony import */ var _tile_layer_tile_layer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tile-layer/tile-layer */ "./src/tile-layer/tile-layer.js");
@@ -65899,7 +66065,7 @@ __webpack_require__.r(__webpack_exports__);
65899
66065
  /* harmony import */ var _luma_gl_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @luma.gl/constants */ "../../node_modules/@luma.gl/constants/dist/esm/index.js");
65900
66066
  /* harmony import */ var _luma_gl_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @luma.gl/core */ "@luma.gl/core");
65901
66067
  /* harmony import */ var _luma_gl_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_luma_gl_core__WEBPACK_IMPORTED_MODULE_1__);
65902
- /* harmony import */ var _deck_gl_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @deck.gl/core */ "@deck.gl/layers");
66068
+ /* harmony import */ var _deck_gl_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @deck.gl/core */ "@deck.gl/core");
65903
66069
  /* harmony import */ var _deck_gl_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_deck_gl_core__WEBPACK_IMPORTED_MODULE_2__);
65904
66070
  /* harmony import */ var _mesh_layer_mesh_layer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../mesh-layer/mesh-layer */ "./src/mesh-layer/mesh-layer.js");
65905
66071
  /* harmony import */ var _loaders_gl_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @loaders.gl/core */ "../../node_modules/@loaders.gl/core/dist/esm/index.js");
@@ -66361,7 +66527,7 @@ Tile3DLayer.defaultProps = defaultProps;
66361
66527
  "use strict";
66362
66528
  __webpack_require__.r(__webpack_exports__);
66363
66529
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Tile2DHeader; });
66364
- /* harmony import */ var _deck_gl_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @deck.gl/core */ "@deck.gl/layers");
66530
+ /* harmony import */ var _deck_gl_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @deck.gl/core */ "@deck.gl/core");
66365
66531
  /* harmony import */ var _deck_gl_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_deck_gl_core__WEBPACK_IMPORTED_MODULE_0__);
66366
66532
  /* eslint-env browser */
66367
66533
 
@@ -66748,7 +66914,7 @@ function getOSMTileIndices(viewport, maxZ, zRange, bounds) {
66748
66914
  "use strict";
66749
66915
  __webpack_require__.r(__webpack_exports__);
66750
66916
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return TileLayer; });
66751
- /* harmony import */ var _deck_gl_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @deck.gl/core */ "@deck.gl/layers");
66917
+ /* harmony import */ var _deck_gl_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @deck.gl/core */ "@deck.gl/core");
66752
66918
  /* harmony import */ var _deck_gl_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_deck_gl_core__WEBPACK_IMPORTED_MODULE_0__);
66753
66919
  /* harmony import */ var _tileset_2d__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./tileset-2d */ "./src/tile-layer/tileset-2d.js");
66754
66920
  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./src/tile-layer/utils.js");
@@ -67801,7 +67967,7 @@ function isURLTemplate(s) {
67801
67967
  "use strict";
67802
67968
  __webpack_require__.r(__webpack_exports__);
67803
67969
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return TripsLayer; });
67804
- /* harmony import */ var _deck_gl_layers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @deck.gl/layers */ "@deck.gl/layers");
67970
+ /* harmony import */ var _deck_gl_layers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @deck.gl/layers */ "@deck.gl/core");
67805
67971
  /* harmony import */ var _deck_gl_layers__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_deck_gl_layers__WEBPACK_IMPORTED_MODULE_0__);
67806
67972
  // Copyright (c) 2015 - 2017 Uber Technologies, Inc.
67807
67973
  //
@@ -67992,36 +68158,14 @@ TripsLayer.defaultProps = defaultProps;
67992
68158
 
67993
68159
  /***/ }),
67994
68160
 
67995
- /***/ 7:
67996
- /*!************************************!*\
67997
- !*** ./make-node-stream (ignored) ***!
67998
- \************************************/
67999
- /*! no static exports found */
68000
- /***/ (function(module, exports) {
68001
-
68002
- /* (ignored) */
68003
-
68004
- /***/ }),
68005
-
68006
- /***/ 8:
68007
- /*!**********************************************************!*\
68008
- !*** ./iterators/make-stream/make-node-stream (ignored) ***!
68009
- \**********************************************************/
68010
- /*! no static exports found */
68011
- /***/ (function(module, exports) {
68012
-
68013
- /* (ignored) */
68014
-
68015
- /***/ }),
68016
-
68017
- /***/ "@deck.gl/layers":
68161
+ /***/ "@deck.gl/core":
68018
68162
  /*!***********************!*\
68019
68163
  !*** external "deck" ***!
68020
68164
  \***********************/
68021
68165
  /*! no static exports found */
68022
68166
  /***/ (function(module, exports) {
68023
68167
 
68024
- module.exports = __WEBPACK_EXTERNAL_MODULE__deck_gl_layers__;
68168
+ module.exports = __WEBPACK_EXTERNAL_MODULE__deck_gl_core__;
68025
68169
 
68026
68170
  /***/ }),
68027
68171