@loaders.gl/tiles 5.0.0-alpha.11 → 5.0.0-alpha.13
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/LICENSE +1 -1
- package/README.md +18 -72
- package/dist/dist.dev.js +5874 -23815
- package/dist/dist.min.js +3 -3
- package/dist/image-set.d.ts +1 -1
- package/dist/image-set.d.ts.map +1 -1
- package/dist/index.cjs +2803 -10209
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +4 -43
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -26
- package/dist/index.js.map +1 -1
- package/dist/mlt/bundled.d.ts +3 -0
- package/dist/mlt/bundled.d.ts.map +1 -0
- package/dist/mlt/bundled.js +5 -0
- package/dist/mlt/bundled.js.map +1 -0
- package/dist/mlt/index.cjs +3701 -0
- package/dist/mlt/index.cjs.map +6 -0
- package/dist/mlt/index.d.ts +10 -0
- package/dist/mlt/index.d.ts.map +1 -0
- package/dist/mlt/index.js +12 -0
- package/dist/mlt/index.js.map +1 -0
- package/dist/mlt/lib/encode-mlt-geometry.d.ts +6 -0
- package/dist/mlt/lib/encode-mlt-geometry.d.ts.map +1 -0
- package/dist/mlt/lib/encode-mlt-geometry.js +150 -0
- package/dist/mlt/lib/encode-mlt-geometry.js.map +1 -0
- package/dist/mlt/lib/encode-mlt-streams.d.ts +13 -0
- package/dist/mlt/lib/encode-mlt-streams.d.ts.map +1 -0
- package/dist/mlt/lib/encode-mlt-streams.js +57 -0
- package/dist/mlt/lib/encode-mlt-streams.js.map +1 -0
- package/dist/mlt/lib/encode-mlt.d.ts +6 -0
- package/dist/mlt/lib/encode-mlt.d.ts.map +1 -0
- package/dist/mlt/lib/encode-mlt.js +174 -0
- package/dist/mlt/lib/encode-mlt.js.map +1 -0
- package/dist/mlt/lib/parse-mlt.d.ts +11 -0
- package/dist/mlt/lib/parse-mlt.d.ts.map +1 -0
- package/dist/mlt/lib/parse-mlt.js +675 -0
- package/dist/mlt/lib/parse-mlt.js.map +1 -0
- package/dist/mlt/mlt-format.d.ts +14 -0
- package/dist/mlt/mlt-format.d.ts.map +1 -0
- package/dist/mlt/mlt-format.js +17 -0
- package/dist/mlt/mlt-format.js.map +1 -0
- package/dist/mlt/mlt-loader-with-parser.d.ts +91 -0
- package/dist/mlt/mlt-loader-with-parser.d.ts.map +1 -0
- package/dist/mlt/mlt-loader-with-parser.js +29 -0
- package/dist/mlt/mlt-loader-with-parser.js.map +1 -0
- package/dist/mlt/mlt-loader.d.ts +115 -0
- package/dist/mlt/mlt-loader.d.ts.map +1 -0
- package/dist/mlt/mlt-loader.js +38 -0
- package/dist/mlt/mlt-loader.js.map +1 -0
- package/dist/mlt/mlt-source-loader.d.ts +82 -0
- package/dist/mlt/mlt-source-loader.d.ts.map +1 -0
- package/dist/mlt/mlt-source-loader.js +179 -0
- package/dist/mlt/mlt-source-loader.js.map +1 -0
- package/dist/mlt/mlt-writer.d.ts +45 -0
- package/dist/mlt/mlt-writer.d.ts.map +1 -0
- package/dist/mlt/mlt-writer.js +21 -0
- package/dist/mlt/mlt-writer.js.map +1 -0
- package/dist/mlt/unbundled.d.ts +3 -0
- package/dist/mlt/unbundled.d.ts.map +1 -0
- package/dist/mlt/unbundled.js +5 -0
- package/dist/mlt/unbundled.js.map +1 -0
- package/dist/mvt/arrow-table-tile-source-loader-types.d.ts +36 -0
- package/dist/mvt/arrow-table-tile-source-loader-types.d.ts.map +1 -0
- package/dist/mvt/arrow-table-tile-source-loader-types.js +36 -0
- package/dist/mvt/arrow-table-tile-source-loader-types.js.map +1 -0
- package/dist/mvt/arrow-table-tile-source-loader.cjs +6343 -0
- package/dist/mvt/arrow-table-tile-source-loader.cjs.map +6 -0
- package/dist/mvt/arrow-table-tile-source-loader.d.ts +69 -0
- package/dist/mvt/arrow-table-tile-source-loader.d.ts.map +1 -0
- package/dist/mvt/arrow-table-tile-source-loader.js +216 -0
- package/dist/mvt/arrow-table-tile-source-loader.js.map +1 -0
- package/dist/mvt/arrow-table-tile-source-types.d.ts +21 -0
- package/dist/mvt/arrow-table-tile-source-types.d.ts.map +1 -0
- package/dist/mvt/arrow-table-tile-source-types.js +6 -0
- package/dist/mvt/arrow-table-tile-source-types.js.map +1 -0
- package/dist/mvt/bundled.d.ts +6 -0
- package/dist/mvt/bundled.d.ts.map +1 -0
- package/dist/mvt/bundled.js +7 -0
- package/dist/mvt/bundled.js.map +1 -0
- package/dist/mvt/dist.dev.js +46689 -0
- package/dist/mvt/dist.min.js +94 -0
- package/dist/mvt/index.cjs +10095 -0
- package/dist/mvt/index.cjs.map +6 -0
- package/dist/mvt/index.d.ts +28 -0
- package/dist/mvt/index.d.ts.map +1 -0
- package/dist/mvt/index.js +27 -0
- package/dist/mvt/index.js.map +1 -0
- package/dist/mvt/lib/encode-mvt-arrow.d.ts +6 -0
- package/dist/mvt/lib/encode-mvt-arrow.d.ts.map +1 -0
- package/dist/mvt/lib/encode-mvt-arrow.js +225 -0
- package/dist/mvt/lib/encode-mvt-arrow.js.map +1 -0
- package/dist/mvt/lib/encode-mvt.d.ts +30 -0
- package/dist/mvt/lib/encode-mvt.d.ts.map +1 -0
- package/dist/mvt/lib/encode-mvt.js +20 -0
- package/dist/mvt/lib/encode-mvt.js.map +1 -0
- package/dist/mvt/lib/get-schemas-from-tilejson.d.ts +4 -0
- package/dist/mvt/lib/get-schemas-from-tilejson.d.ts.map +1 -0
- package/dist/mvt/lib/get-schemas-from-tilejson.js +56 -0
- package/dist/mvt/lib/get-schemas-from-tilejson.js.map +1 -0
- package/dist/mvt/lib/is-longitude-latitude-crs.d.ts +3 -0
- package/dist/mvt/lib/is-longitude-latitude-crs.d.ts.map +1 -0
- package/dist/mvt/lib/is-longitude-latitude-crs.js +13 -0
- package/dist/mvt/lib/is-longitude-latitude-crs.js.map +1 -0
- package/dist/mvt/lib/mapbox-vt-pbf/geojson-wrapper.d.ts +25 -0
- package/dist/mvt/lib/mapbox-vt-pbf/geojson-wrapper.d.ts.map +1 -0
- package/dist/mvt/lib/mapbox-vt-pbf/geojson-wrapper.js +73 -0
- package/dist/mvt/lib/mapbox-vt-pbf/geojson-wrapper.js.map +1 -0
- package/dist/mvt/lib/mapbox-vt-pbf/to-vector-tile.d.ts +52 -0
- package/dist/mvt/lib/mapbox-vt-pbf/to-vector-tile.d.ts.map +1 -0
- package/dist/mvt/lib/mapbox-vt-pbf/to-vector-tile.js +165 -0
- package/dist/mvt/lib/mapbox-vt-pbf/to-vector-tile.js.map +1 -0
- package/dist/mvt/lib/mvt-pbf/mvt-constants.d.ts +116 -0
- package/dist/mvt/lib/mvt-pbf/mvt-constants.d.ts.map +1 -0
- package/dist/mvt/lib/mvt-pbf/mvt-constants.js +127 -0
- package/dist/mvt/lib/mvt-pbf/mvt-constants.js.map +1 -0
- package/dist/mvt/lib/mvt-pbf/mvt-types.d.ts +17 -0
- package/dist/mvt/lib/mvt-pbf/mvt-types.d.ts.map +1 -0
- package/dist/mvt/lib/mvt-pbf/mvt-types.js +5 -0
- package/dist/mvt/lib/mvt-pbf/mvt-types.js.map +1 -0
- package/dist/mvt/lib/mvt-pbf/parse-geometry-from-pbf.d.ts +77 -0
- package/dist/mvt/lib/mvt-pbf/parse-geometry-from-pbf.d.ts.map +1 -0
- package/dist/mvt/lib/mvt-pbf/parse-geometry-from-pbf.js +235 -0
- package/dist/mvt/lib/mvt-pbf/parse-geometry-from-pbf.js.map +1 -0
- package/dist/mvt/lib/mvt-pbf/parse-mvt-from-pbf.d.ts +25 -0
- package/dist/mvt/lib/mvt-pbf/parse-mvt-from-pbf.d.ts.map +1 -0
- package/dist/mvt/lib/mvt-pbf/parse-mvt-from-pbf.js +263 -0
- package/dist/mvt/lib/mvt-pbf/parse-mvt-from-pbf.js.map +1 -0
- package/dist/mvt/lib/mvt-pbf/write-mvt-to-pbf.d.ts +4 -0
- package/dist/mvt/lib/mvt-pbf/write-mvt-to-pbf.d.ts.map +1 -0
- package/dist/mvt/lib/mvt-pbf/write-mvt-to-pbf.js +134 -0
- package/dist/mvt/lib/mvt-pbf/write-mvt-to-pbf.js.map +1 -0
- package/dist/mvt/lib/mvt-worker-transport.d.ts +15 -0
- package/dist/mvt/lib/mvt-worker-transport.d.ts.map +1 -0
- package/dist/mvt/lib/mvt-worker-transport.js +54 -0
- package/dist/mvt/lib/mvt-worker-transport.js.map +1 -0
- package/dist/mvt/lib/parse-mvt-geojson.d.ts +6 -0
- package/dist/mvt/lib/parse-mvt-geojson.d.ts.map +1 -0
- package/dist/mvt/lib/parse-mvt-geojson.js +48 -0
- package/dist/mvt/lib/parse-mvt-geojson.js.map +1 -0
- package/dist/mvt/lib/parse-mvt.d.ts +14 -0
- package/dist/mvt/lib/parse-mvt.d.ts.map +1 -0
- package/dist/mvt/lib/parse-mvt.js +105 -0
- package/dist/mvt/lib/parse-mvt.js.map +1 -0
- package/dist/mvt/lib/parse-tilejson.d.ts +74 -0
- package/dist/mvt/lib/parse-tilejson.d.ts.map +1 -0
- package/dist/mvt/lib/parse-tilejson.js +267 -0
- package/dist/mvt/lib/parse-tilejson.js.map +1 -0
- package/dist/mvt/lib/resolve-table-tile-parameters.d.ts +4 -0
- package/dist/mvt/lib/resolve-table-tile-parameters.d.ts.map +1 -0
- package/dist/mvt/lib/resolve-table-tile-parameters.js +16 -0
- package/dist/mvt/lib/resolve-table-tile-parameters.js.map +1 -0
- package/dist/mvt/lib/types.d.ts +88 -0
- package/dist/mvt/lib/types.d.ts.map +1 -0
- package/dist/mvt/lib/types.js.map +1 -0
- package/dist/mvt/lib/utils/geometry-utils.d.ts +83 -0
- package/dist/mvt/lib/utils/geometry-utils.d.ts.map +1 -0
- package/dist/mvt/lib/utils/geometry-utils.js +211 -0
- package/dist/mvt/lib/utils/geometry-utils.js.map +1 -0
- package/dist/mvt/lib/vector-tile/vector-tile-feature.d.ts +72 -0
- package/dist/mvt/lib/vector-tile/vector-tile-feature.d.ts.map +1 -0
- package/dist/mvt/lib/vector-tile/vector-tile-feature.js +350 -0
- package/dist/mvt/lib/vector-tile/vector-tile-feature.js.map +1 -0
- package/dist/mvt/lib/vector-tile/vector-tile-layer.d.ts +29 -0
- package/dist/mvt/lib/vector-tile/vector-tile-layer.d.ts.map +1 -0
- package/dist/mvt/lib/vector-tile/vector-tile-layer.js +108 -0
- package/dist/mvt/lib/vector-tile/vector-tile-layer.js.map +1 -0
- package/dist/mvt/lib/vector-tile/vector-tile.d.ts +9 -0
- package/dist/mvt/lib/vector-tile/vector-tile.d.ts.map +1 -0
- package/dist/mvt/lib/vector-tile/vector-tile.js +28 -0
- package/dist/mvt/lib/vector-tile/vector-tile.js.map +1 -0
- package/dist/mvt/lib/vector-tiler/arrow-tile.d.ts +6 -0
- package/dist/mvt/lib/vector-tiler/arrow-tile.d.ts.map +1 -0
- package/dist/mvt/lib/vector-tiler/arrow-tile.js +84 -0
- package/dist/mvt/lib/vector-tiler/arrow-tile.js.map +1 -0
- package/dist/mvt/lib/vector-tiler/features/clip-features.d.ts +16 -0
- package/dist/mvt/lib/vector-tiler/features/clip-features.d.ts.map +1 -0
- package/dist/mvt/lib/vector-tiler/features/clip-features.js +211 -0
- package/dist/mvt/lib/vector-tiler/features/clip-features.js.map +1 -0
- package/dist/mvt/lib/vector-tiler/features/convert-feature.d.ts +18 -0
- package/dist/mvt/lib/vector-tiler/features/convert-feature.d.ts.map +1 -0
- package/dist/mvt/lib/vector-tiler/features/convert-feature.js +161 -0
- package/dist/mvt/lib/vector-tiler/features/convert-feature.js.map +1 -0
- package/dist/mvt/lib/vector-tiler/features/proto-feature.d.ts +30 -0
- package/dist/mvt/lib/vector-tiler/features/proto-feature.d.ts.map +1 -0
- package/dist/mvt/lib/vector-tiler/features/proto-feature.js +53 -0
- package/dist/mvt/lib/vector-tiler/features/proto-feature.js.map +1 -0
- package/dist/mvt/lib/vector-tiler/features/simplify-path.d.ts +10 -0
- package/dist/mvt/lib/vector-tiler/features/simplify-path.d.ts.map +1 -0
- package/dist/mvt/lib/vector-tiler/features/simplify-path.js +67 -0
- package/dist/mvt/lib/vector-tiler/features/simplify-path.js.map +1 -0
- package/dist/mvt/lib/vector-tiler/features/wrap-features.d.ts +17 -0
- package/dist/mvt/lib/vector-tiler/features/wrap-features.d.ts.map +1 -0
- package/dist/mvt/lib/vector-tiler/features/wrap-features.js +95 -0
- package/dist/mvt/lib/vector-tiler/features/wrap-features.js.map +1 -0
- package/dist/mvt/lib/vector-tiler/proto-tile.d.ts +40 -0
- package/dist/mvt/lib/vector-tiler/proto-tile.d.ts.map +1 -0
- package/dist/mvt/lib/vector-tiler/proto-tile.js +139 -0
- package/dist/mvt/lib/vector-tiler/proto-tile.js.map +1 -0
- package/dist/mvt/lib/vector-tiler/tile-to-geojson.d.ts +12 -0
- package/dist/mvt/lib/vector-tiler/tile-to-geojson.d.ts.map +1 -0
- package/dist/mvt/lib/vector-tiler/tile-to-geojson.js +81 -0
- package/dist/mvt/lib/vector-tiler/tile-to-geojson.js.map +1 -0
- package/dist/mvt/lib/vector-tiler/transform-tile.d.ts +7 -0
- package/dist/mvt/lib/vector-tiler/transform-tile.d.ts.map +1 -0
- package/dist/mvt/lib/vector-tiler/transform-tile.js +42 -0
- package/dist/mvt/lib/vector-tiler/transform-tile.js.map +1 -0
- package/dist/mvt/map-style-format.d.ts +13 -0
- package/dist/mvt/map-style-format.d.ts.map +1 -0
- package/dist/mvt/map-style-format.js +16 -0
- package/dist/mvt/map-style-format.js.map +1 -0
- package/dist/mvt/map-style-loader-with-parser.d.ts +26 -0
- package/dist/mvt/map-style-loader-with-parser.d.ts.map +1 -0
- package/dist/mvt/map-style-loader-with-parser.js +38 -0
- package/dist/mvt/map-style-loader-with-parser.js.map +1 -0
- package/dist/mvt/map-style-loader.d.ts +44 -0
- package/dist/mvt/map-style-loader.d.ts.map +1 -0
- package/dist/mvt/map-style-loader.js +25 -0
- package/dist/mvt/map-style-loader.js.map +1 -0
- package/dist/mvt/map-style-schema.d.ts +58 -0
- package/dist/mvt/map-style-schema.d.ts.map +1 -0
- package/dist/mvt/map-style-schema.js +47 -0
- package/dist/mvt/map-style-schema.js.map +1 -0
- package/dist/mvt/map-style.d.ts +110 -0
- package/dist/mvt/map-style.d.ts.map +1 -0
- package/dist/mvt/map-style.js +90 -0
- package/dist/mvt/map-style.js.map +1 -0
- package/dist/mvt/mvt-format.d.ts +14 -0
- package/dist/mvt/mvt-format.d.ts.map +1 -0
- package/dist/mvt/mvt-format.js +23 -0
- package/dist/mvt/mvt-format.js.map +1 -0
- package/dist/mvt/mvt-geojson-loader-types.d.ts +82 -0
- package/dist/mvt/mvt-geojson-loader-types.d.ts.map +1 -0
- package/dist/mvt/mvt-geojson-loader-types.js +34 -0
- package/dist/mvt/mvt-geojson-loader-types.js.map +1 -0
- package/dist/mvt/mvt-geojson-loader.cjs +1366 -0
- package/dist/mvt/mvt-geojson-loader.cjs.map +6 -0
- package/dist/mvt/mvt-geojson-loader.d.ts +32 -0
- package/dist/mvt/mvt-geojson-loader.d.ts.map +1 -0
- package/dist/mvt/mvt-geojson-loader.js +13 -0
- package/dist/mvt/mvt-geojson-loader.js.map +1 -0
- package/dist/mvt/mvt-loader-with-parser.d.ts +105 -0
- package/dist/mvt/mvt-loader-with-parser.d.ts.map +1 -0
- package/dist/mvt/mvt-loader-with-parser.js +21 -0
- package/dist/mvt/mvt-loader-with-parser.js.map +1 -0
- package/dist/mvt/mvt-loader.d.ts +129 -0
- package/dist/mvt/mvt-loader.d.ts.map +1 -0
- package/dist/mvt/mvt-loader.js +40 -0
- package/dist/mvt/mvt-loader.js.map +1 -0
- package/dist/mvt/mvt-source-loader.d.ts +102 -0
- package/dist/mvt/mvt-source-loader.d.ts.map +1 -0
- package/dist/mvt/mvt-source-loader.js +275 -0
- package/dist/mvt/mvt-source-loader.js.map +1 -0
- package/dist/mvt/mvt-writer.d.ts +28 -0
- package/dist/mvt/mvt-writer.d.ts.map +1 -0
- package/dist/mvt/mvt-writer.js +32 -0
- package/dist/mvt/mvt-writer.js.map +1 -0
- package/dist/mvt/table-tile-source-loader.d.ts +169 -0
- package/dist/mvt/table-tile-source-loader.d.ts.map +1 -0
- package/dist/mvt/table-tile-source-loader.js +478 -0
- package/dist/mvt/table-tile-source-loader.js.map +1 -0
- package/dist/mvt/tilejson-format.d.ts +13 -0
- package/dist/mvt/tilejson-format.d.ts.map +1 -0
- package/dist/mvt/tilejson-format.js +16 -0
- package/dist/mvt/tilejson-format.js.map +1 -0
- package/dist/mvt/tilejson-loader-with-parser.d.ts +13 -0
- package/dist/mvt/tilejson-loader-with-parser.d.ts.map +1 -0
- package/dist/mvt/tilejson-loader-with-parser.js +25 -0
- package/dist/mvt/tilejson-loader-with-parser.js.map +1 -0
- package/dist/mvt/tilejson-loader.d.ts +56 -0
- package/dist/mvt/tilejson-loader.d.ts.map +1 -0
- package/dist/mvt/tilejson-loader.js +28 -0
- package/dist/mvt/tilejson-loader.js.map +1 -0
- package/dist/mvt/tilejson-zod-schema.cjs +79 -0
- package/dist/mvt/tilejson-zod-schema.cjs.map +6 -0
- package/dist/mvt/tilejson-zod-schema.d.ts +218 -0
- package/dist/mvt/tilejson-zod-schema.d.ts.map +1 -0
- package/dist/mvt/tilejson-zod-schema.js +68 -0
- package/dist/mvt/tilejson-zod-schema.js.map +1 -0
- package/dist/mvt/tilejson.schema.json +197 -0
- package/dist/mvt/unbundled.d.ts +8 -0
- package/dist/mvt/unbundled.d.ts.map +1 -0
- package/dist/mvt/unbundled.js +8 -0
- package/dist/mvt/unbundled.js.map +1 -0
- package/dist/mvt/workers/mvt-worker-node.d.ts +2 -0
- package/dist/mvt/workers/mvt-worker-node.d.ts.map +1 -0
- package/dist/mvt/workers/mvt-worker-node.js +8 -0
- package/dist/mvt/workers/mvt-worker-node.js.map +1 -0
- package/dist/mvt/workers/mvt-worker.d.ts +2 -0
- package/dist/mvt/workers/mvt-worker.d.ts.map +1 -0
- package/dist/mvt/workers/mvt-worker.js +7 -0
- package/dist/mvt/workers/mvt-worker.js.map +1 -0
- package/dist/mvt-worker-node.js +72460 -0
- package/dist/mvt-worker-node.js.map +7 -0
- package/dist/mvt-worker.js +21239 -0
- package/dist/pmtiles/bundled.d.ts +3 -0
- package/dist/pmtiles/bundled.d.ts.map +1 -0
- package/dist/pmtiles/bundled.js +5 -0
- package/dist/pmtiles/bundled.js.map +1 -0
- package/dist/pmtiles/dist.dev.js +50530 -0
- package/dist/pmtiles/dist.min.js +94 -0
- package/dist/pmtiles/geoarrow.cjs +6718 -0
- package/dist/pmtiles/geoarrow.cjs.map +6 -0
- package/dist/pmtiles/geoarrow.d.ts +30 -0
- package/dist/pmtiles/geoarrow.d.ts.map +1 -0
- package/dist/pmtiles/geoarrow.js +143 -0
- package/dist/pmtiles/geoarrow.js.map +1 -0
- package/dist/pmtiles/index.cjs +8011 -0
- package/dist/pmtiles/index.cjs.map +6 -0
- package/dist/pmtiles/index.d.ts +14 -0
- package/dist/pmtiles/index.d.ts.map +1 -0
- package/dist/pmtiles/index.js +10 -0
- package/dist/pmtiles/index.js.map +1 -0
- package/dist/pmtiles/lib/blob-source.d.ts +14 -0
- package/dist/pmtiles/lib/blob-source.d.ts.map +1 -0
- package/dist/pmtiles/lib/blob-source.js +32 -0
- package/dist/pmtiles/lib/blob-source.js.map +1 -0
- package/dist/pmtiles/lib/encode-pmtiles.d.ts +8 -0
- package/dist/pmtiles/lib/encode-pmtiles.d.ts.map +1 -0
- package/dist/pmtiles/lib/encode-pmtiles.js +268 -0
- package/dist/pmtiles/lib/encode-pmtiles.js.map +1 -0
- package/dist/pmtiles/lib/parse-pmtiles.d.ts +52 -0
- package/dist/pmtiles/lib/parse-pmtiles.d.ts.map +1 -0
- package/dist/pmtiles/lib/parse-pmtiles.js +95 -0
- package/dist/pmtiles/lib/parse-pmtiles.js.map +1 -0
- package/dist/pmtiles/lib/range-request-source.d.ts +24 -0
- package/dist/pmtiles/lib/range-request-source.d.ts.map +1 -0
- package/dist/pmtiles/lib/range-request-source.js +45 -0
- package/dist/pmtiles/lib/range-request-source.js.map +1 -0
- package/dist/pmtiles/lib/version.d.ts +2 -0
- package/dist/pmtiles/lib/version.d.ts.map +1 -0
- package/dist/pmtiles/lib/version.js +8 -0
- package/dist/pmtiles/lib/version.js.map +1 -0
- package/dist/pmtiles/pmtiles-format.d.ts +14 -0
- package/dist/pmtiles/pmtiles-format.d.ts.map +1 -0
- package/dist/pmtiles/pmtiles-format.js +17 -0
- package/dist/pmtiles/pmtiles-format.js.map +1 -0
- package/dist/pmtiles/pmtiles-loader-with-parser.d.ts +30 -0
- package/dist/pmtiles/pmtiles-loader-with-parser.d.ts.map +1 -0
- package/dist/pmtiles/pmtiles-loader-with-parser.js +41 -0
- package/dist/pmtiles/pmtiles-loader-with-parser.js.map +1 -0
- package/dist/pmtiles/pmtiles-loader.d.ts +41 -0
- package/dist/pmtiles/pmtiles-loader.d.ts.map +1 -0
- package/dist/pmtiles/pmtiles-loader.js +20 -0
- package/dist/pmtiles/pmtiles-loader.js.map +1 -0
- package/dist/pmtiles/pmtiles-source-loader.d.ts +85 -0
- package/dist/pmtiles/pmtiles-source-loader.d.ts.map +1 -0
- package/dist/pmtiles/pmtiles-source-loader.js +239 -0
- package/dist/pmtiles/pmtiles-source-loader.js.map +1 -0
- package/dist/pmtiles/pmtiles-writer-types.d.ts +39 -0
- package/dist/pmtiles/pmtiles-writer-types.d.ts.map +1 -0
- package/dist/pmtiles/pmtiles-writer-types.js +5 -0
- package/dist/pmtiles/pmtiles-writer-types.js.map +1 -0
- package/dist/pmtiles/pmtiles-writer.d.ts +22 -0
- package/dist/pmtiles/pmtiles-writer.d.ts.map +1 -0
- package/dist/pmtiles/pmtiles-writer.js +15 -0
- package/dist/pmtiles/pmtiles-writer.js.map +1 -0
- package/dist/pmtiles/raster.cjs +1183 -0
- package/dist/pmtiles/raster.cjs.map +6 -0
- package/dist/pmtiles/raster.d.ts +30 -0
- package/dist/pmtiles/raster.d.ts.map +1 -0
- package/dist/pmtiles/raster.js +212 -0
- package/dist/pmtiles/raster.js.map +1 -0
- package/dist/pmtiles/source-info.d.ts +25 -0
- package/dist/pmtiles/source-info.d.ts.map +1 -0
- package/dist/{types.js → pmtiles/source-info.js} +1 -1
- package/dist/pmtiles/source-info.js.map +1 -0
- package/dist/pmtiles/unbundled.d.ts +3 -0
- package/dist/pmtiles/unbundled.d.ts.map +1 -0
- package/dist/pmtiles/unbundled.js +5 -0
- package/dist/pmtiles/unbundled.js.map +1 -0
- package/dist/raster-set.d.ts +1 -1
- package/dist/raster-set.d.ts.map +1 -1
- package/dist/raster-set.js +1 -1
- package/dist/raster-set.js.map +1 -1
- package/dist/tile-matrix.cjs +81 -0
- package/dist/tile-matrix.cjs.map +6 -0
- package/dist/tile-matrix.d.ts +52 -0
- package/dist/tile-matrix.d.ts.map +1 -0
- package/dist/tile-matrix.js +75 -0
- package/dist/tile-matrix.js.map +1 -0
- package/dist/tileset-2d/tile-2d-header.d.ts +2 -2
- package/dist/tileset-2d/tile-2d-header.d.ts.map +1 -1
- package/dist/tileset-2d/tile-2d-header.js +11 -11
- package/dist/tileset-2d/tile-2d-header.js.map +1 -1
- package/dist/tileset-2d/tileset-2d.d.ts +19 -10
- package/dist/tileset-2d/tileset-2d.d.ts.map +1 -1
- package/dist/tileset-2d/tileset-2d.js +69 -15
- package/dist/tileset-2d/tileset-2d.js.map +1 -1
- package/dist/tileset-2d.d.ts +2 -1
- package/dist/tileset-2d.d.ts.map +1 -1
- package/dist/tileset-2d.js +1 -1
- package/dist/tileset-2d.js.map +1 -1
- package/package.json +104 -16
- package/src/image-set.ts +1 -1
- package/src/index.ts +9 -123
- package/src/mlt/bundled.ts +9 -0
- package/src/mlt/index.ts +18 -0
- package/src/mlt/lib/encode-mlt-geometry.ts +162 -0
- package/src/mlt/lib/encode-mlt-streams.ts +66 -0
- package/src/mlt/lib/encode-mlt.ts +215 -0
- package/src/mlt/lib/parse-mlt.ts +906 -0
- package/src/mlt/libs/mlt-decoder.cjs +4552 -0
- package/src/mlt/mlt-format.ts +19 -0
- package/src/mlt/mlt-loader-with-parser.ts +57 -0
- package/src/mlt/mlt-loader.ts +64 -0
- package/src/mlt/mlt-source-loader.ts +266 -0
- package/src/mlt/mlt-writer.ts +47 -0
- package/src/mlt/unbundled.ts +6 -0
- package/src/mvt/arrow-table-tile-source-loader-types.ts +55 -0
- package/src/mvt/arrow-table-tile-source-loader.ts +307 -0
- package/src/mvt/arrow-table-tile-source-types.ts +32 -0
- package/src/mvt/bundled.ts +14 -0
- package/src/mvt/index.ts +67 -0
- package/src/mvt/lib/encode-mvt-arrow.ts +273 -0
- package/src/mvt/lib/encode-mvt.ts +46 -0
- package/src/mvt/lib/get-schemas-from-tilejson.ts +64 -0
- package/src/mvt/lib/is-longitude-latitude-crs.ts +15 -0
- package/src/mvt/lib/mapbox-vt-pbf/geojson-to-vt.ts.disabled +76 -0
- package/src/mvt/lib/mapbox-vt-pbf/geojson-wrapper.ts +89 -0
- package/src/mvt/lib/mapbox-vt-pbf/to-vector-tile.ts +230 -0
- package/src/mvt/lib/mvt-pbf/mvt-constants.ts +135 -0
- package/src/mvt/lib/mvt-pbf/mvt-types.ts +22 -0
- package/src/mvt/lib/mvt-pbf/parse-geometry-from-pbf.ts +285 -0
- package/src/mvt/lib/mvt-pbf/parse-mvt-from-pbf.ts +310 -0
- package/src/mvt/lib/mvt-pbf/write-mvt-to-pbf.ts +162 -0
- package/src/mvt/lib/mvt-worker-transport.ts +74 -0
- package/src/mvt/lib/parse-mvt-geojson.ts +65 -0
- package/src/mvt/lib/parse-mvt.ts +145 -0
- package/src/mvt/lib/parse-tilejson.ts +397 -0
- package/src/mvt/lib/resolve-table-tile-parameters.ts +23 -0
- package/src/mvt/lib/types.ts +90 -0
- package/src/mvt/lib/utils/geometry-utils.ts +238 -0
- package/src/mvt/lib/vector-tile/LICENSE.txt +31 -0
- package/src/mvt/lib/vector-tile/vector-tile-feature.ts +430 -0
- package/src/mvt/lib/vector-tile/vector-tile-layer.ts +130 -0
- package/src/mvt/lib/vector-tile/vector-tile.ts +32 -0
- package/src/mvt/lib/vector-tiler/LICENSE +19 -0
- package/src/mvt/lib/vector-tiler/arrow-tile.ts +93 -0
- package/src/mvt/lib/vector-tiler/features/clip-features.ts +250 -0
- package/src/mvt/lib/vector-tiler/features/convert-feature.ts +213 -0
- package/src/mvt/lib/vector-tiler/features/proto-feature.ts +104 -0
- package/src/mvt/lib/vector-tiler/features/simplify-path.ts +84 -0
- package/src/mvt/lib/vector-tiler/features/wrap-features.ts +125 -0
- package/src/mvt/lib/vector-tiler/proto-tile.ts +217 -0
- package/src/mvt/lib/vector-tiler/tile-to-geojson.ts +104 -0
- package/src/mvt/lib/vector-tiler/transform-tile.ts +57 -0
- package/src/mvt/map-style-format.ts +18 -0
- package/src/mvt/map-style-loader-with-parser.ts +62 -0
- package/src/mvt/map-style-loader.ts +31 -0
- package/src/mvt/map-style-schema.ts +53 -0
- package/src/mvt/map-style.ts +218 -0
- package/src/mvt/mvt-format.ts +25 -0
- package/src/mvt/mvt-geojson-loader-types.ts +60 -0
- package/src/mvt/mvt-geojson-loader.ts +20 -0
- package/src/mvt/mvt-loader-with-parser.ts +53 -0
- package/src/mvt/mvt-loader.ts +73 -0
- package/src/mvt/mvt-source-loader.ts +410 -0
- package/src/mvt/mvt-writer.ts +35 -0
- package/src/mvt/table-tile-source-loader.ts +672 -0
- package/src/mvt/tilejson-format.ts +18 -0
- package/src/mvt/tilejson-loader-with-parser.ts +38 -0
- package/src/mvt/tilejson-loader.ts +42 -0
- package/src/mvt/tilejson-zod-schema.ts +199 -0
- package/src/mvt/unbundled.ts +13 -0
- package/src/mvt/workers/mvt-worker-node.ts +9 -0
- package/src/mvt/workers/mvt-worker.ts +8 -0
- package/src/pmtiles/bundled.ts +6 -0
- package/src/pmtiles/geoarrow.ts +188 -0
- package/src/pmtiles/index.ts +27 -0
- package/src/pmtiles/lib/blob-source.ts +41 -0
- package/src/pmtiles/lib/encode-pmtiles.ts +322 -0
- package/src/pmtiles/lib/parse-pmtiles.ts +180 -0
- package/src/pmtiles/lib/range-request-source.ts +60 -0
- package/src/pmtiles/lib/version.ts +8 -0
- package/src/pmtiles/pmtiles-format.ts +19 -0
- package/src/pmtiles/pmtiles-loader-with-parser.ts +60 -0
- package/src/pmtiles/pmtiles-loader.ts +30 -0
- package/src/pmtiles/pmtiles-source-loader.ts +346 -0
- package/src/pmtiles/pmtiles-writer-types.ts +45 -0
- package/src/pmtiles/pmtiles-writer.ts +26 -0
- package/src/pmtiles/raster.ts +289 -0
- package/src/pmtiles/source-info.ts +25 -0
- package/src/pmtiles/unbundled.ts +6 -0
- package/src/raster-set.ts +2 -2
- package/src/tile-matrix.ts +138 -0
- package/src/tileset-2d/tile-2d-header.ts +14 -13
- package/src/tileset-2d/tileset-2d.ts +81 -19
- package/src/tileset-2d.ts +25 -1
- package/dist/constants.d.ts +0 -38
- package/dist/constants.d.ts.map +0 -1
- package/dist/constants.js +0 -39
- package/dist/constants.js.map +0 -1
- package/dist/point-cloud/point-cloud-tile.d.ts +0 -47
- package/dist/point-cloud/point-cloud-tile.d.ts.map +0 -1
- package/dist/point-cloud/point-cloud-tile.js +0 -70
- package/dist/point-cloud/point-cloud-tile.js.map +0 -1
- package/dist/point-cloud/point-cloud-tileset.d.ts +0 -135
- package/dist/point-cloud/point-cloud-tileset.d.ts.map +0 -1
- package/dist/point-cloud/point-cloud-tileset.js +0 -549
- package/dist/point-cloud/point-cloud-tileset.js.map +0 -1
- package/dist/point-cloud/types.d.ts +0 -81
- package/dist/point-cloud/types.d.ts.map +0 -1
- package/dist/point-cloud/types.js.map +0 -1
- package/dist/spatial/format-spatial-reference.d.ts +0 -68
- package/dist/spatial/format-spatial-reference.d.ts.map +0 -1
- package/dist/spatial/format-spatial-reference.js +0 -291
- package/dist/spatial/format-spatial-reference.js.map +0 -1
- package/dist/spatial/get-spatial-coordinate-frame.d.ts +0 -20
- package/dist/spatial/get-spatial-coordinate-frame.d.ts.map +0 -1
- package/dist/spatial/get-spatial-coordinate-frame.js +0 -139
- package/dist/spatial/get-spatial-coordinate-frame.js.map +0 -1
- package/dist/spatial/i3s-elevation.d.ts +0 -20
- package/dist/spatial/i3s-elevation.d.ts.map +0 -1
- package/dist/spatial/i3s-elevation.js +0 -90
- package/dist/spatial/i3s-elevation.js.map +0 -1
- package/dist/spatial/i3s-spatial-transformer.d.ts +0 -205
- package/dist/spatial/i3s-spatial-transformer.d.ts.map +0 -1
- package/dist/spatial/i3s-spatial-transformer.js +0 -731
- package/dist/spatial/i3s-spatial-transformer.js.map +0 -1
- package/dist/spatial/normalize-crs-identifier.d.ts +0 -15
- package/dist/spatial/normalize-crs-identifier.d.ts.map +0 -1
- package/dist/spatial/normalize-crs-identifier.js +0 -22
- package/dist/spatial/normalize-crs-identifier.js.map +0 -1
- package/dist/spatial/spatial-coordinate-transformer.d.ts +0 -52
- package/dist/spatial/spatial-coordinate-transformer.d.ts.map +0 -1
- package/dist/spatial/spatial-coordinate-transformer.js +0 -295
- package/dist/spatial/spatial-coordinate-transformer.js.map +0 -1
- package/dist/spatial/spatial-resource-registry.d.ts +0 -47
- package/dist/spatial/spatial-resource-registry.d.ts.map +0 -1
- package/dist/spatial/spatial-resource-registry.js +0 -76
- package/dist/spatial/spatial-resource-registry.js.map +0 -1
- package/dist/spatial/spatial-types.d.ts +0 -190
- package/dist/spatial/spatial-types.d.ts.map +0 -1
- package/dist/spatial/spatial-types.js +0 -192
- package/dist/spatial/spatial-types.js.map +0 -1
- package/dist/spatial/tiles-3d-spatial-transformer.d.ts +0 -32
- package/dist/spatial/tiles-3d-spatial-transformer.d.ts.map +0 -1
- package/dist/spatial/tiles-3d-spatial-transformer.js +0 -163
- package/dist/spatial/tiles-3d-spatial-transformer.js.map +0 -1
- package/dist/tileset-3d/common/indexed-archive-tileset-source.d.ts +0 -60
- package/dist/tileset-3d/common/indexed-archive-tileset-source.d.ts.map +0 -1
- package/dist/tileset-3d/common/indexed-archive-tileset-source.js +0 -130
- package/dist/tileset-3d/common/indexed-archive-tileset-source.js.map +0 -1
- package/dist/tileset-3d/common/tile-3d-contracts.d.ts +0 -63
- package/dist/tileset-3d/common/tile-3d-contracts.d.ts.map +0 -1
- package/dist/tileset-3d/common/tile-3d-contracts.js +0 -51
- package/dist/tileset-3d/common/tile-3d-contracts.js.map +0 -1
- package/dist/tileset-3d/common/tile-3d.d.ts +0 -410
- package/dist/tileset-3d/common/tile-3d.d.ts.map +0 -1
- package/dist/tileset-3d/common/tile-3d.js +0 -1056
- package/dist/tileset-3d/common/tile-3d.js.map +0 -1
- package/dist/tileset-3d/common/tileset-3d.d.ts +0 -367
- package/dist/tileset-3d/common/tileset-3d.d.ts.map +0 -1
- package/dist/tileset-3d/common/tileset-3d.js +0 -879
- package/dist/tileset-3d/common/tileset-3d.js.map +0 -1
- package/dist/tileset-3d/common/tileset-cache.d.ts +0 -29
- package/dist/tileset-3d/common/tileset-cache.d.ts.map +0 -1
- package/dist/tileset-3d/common/tileset-cache.js +0 -82
- package/dist/tileset-3d/common/tileset-cache.js.map +0 -1
- package/dist/tileset-3d/common/tileset-content-traversal.d.ts +0 -37
- package/dist/tileset-3d/common/tileset-content-traversal.d.ts.map +0 -1
- package/dist/tileset-3d/common/tileset-content-traversal.js +0 -80
- package/dist/tileset-3d/common/tileset-content-traversal.js.map +0 -1
- package/dist/tileset-3d/common/tileset-observability.d.ts +0 -60
- package/dist/tileset-3d/common/tileset-observability.d.ts.map +0 -1
- package/dist/tileset-3d/common/tileset-observability.js +0 -39
- package/dist/tileset-3d/common/tileset-observability.js.map +0 -1
- package/dist/tileset-3d/common/tileset-source.d.ts +0 -228
- package/dist/tileset-3d/common/tileset-source.d.ts.map +0 -1
- package/dist/tileset-3d/common/tileset-source.js +0 -17
- package/dist/tileset-3d/common/tileset-source.js.map +0 -1
- package/dist/tileset-3d/common/tileset-traverser.d.ts +0 -88
- package/dist/tileset-3d/common/tileset-traverser.d.ts.map +0 -1
- package/dist/tileset-3d/common/tileset-traverser.js +0 -341
- package/dist/tileset-3d/common/tileset-traverser.js.map +0 -1
- package/dist/tileset-3d/format-3d-tiles/implicit-tiling.d.ts +0 -182
- package/dist/tileset-3d/format-3d-tiles/implicit-tiling.d.ts.map +0 -1
- package/dist/tileset-3d/format-3d-tiles/implicit-tiling.js +0 -681
- package/dist/tileset-3d/format-3d-tiles/implicit-tiling.js.map +0 -1
- package/dist/tileset-3d/format-3d-tiles/tiles-3d-source.d.ts +0 -221
- package/dist/tileset-3d/format-3d-tiles/tiles-3d-source.d.ts.map +0 -1
- package/dist/tileset-3d/format-3d-tiles/tiles-3d-source.js +0 -770
- package/dist/tileset-3d/format-3d-tiles/tiles-3d-source.js.map +0 -1
- package/dist/tileset-3d/format-3d-tiles/tileset-3d-traverser.d.ts +0 -111
- package/dist/tileset-3d/format-3d-tiles/tileset-3d-traverser.d.ts.map +0 -1
- package/dist/tileset-3d/format-3d-tiles/tileset-3d-traverser.js +0 -339
- package/dist/tileset-3d/format-3d-tiles/tileset-3d-traverser.js.map +0 -1
- package/dist/tileset-3d/format-i3s/i3s-pending-tiles-register.d.ts +0 -27
- package/dist/tileset-3d/format-i3s/i3s-pending-tiles-register.d.ts.map +0 -1
- package/dist/tileset-3d/format-i3s/i3s-pending-tiles-register.js +0 -45
- package/dist/tileset-3d/format-i3s/i3s-pending-tiles-register.js.map +0 -1
- package/dist/tileset-3d/format-i3s/i3s-source.d.ts +0 -116
- package/dist/tileset-3d/format-i3s/i3s-source.d.ts.map +0 -1
- package/dist/tileset-3d/format-i3s/i3s-source.js +0 -450
- package/dist/tileset-3d/format-i3s/i3s-source.js.map +0 -1
- package/dist/tileset-3d/format-i3s/i3s-tile-manager.d.ts +0 -34
- package/dist/tileset-3d/format-i3s/i3s-tile-manager.d.ts.map +0 -1
- package/dist/tileset-3d/format-i3s/i3s-tile-manager.js +0 -81
- package/dist/tileset-3d/format-i3s/i3s-tile-manager.js.map +0 -1
- package/dist/tileset-3d/format-i3s/i3s-tileset-traverser.d.ts +0 -25
- package/dist/tileset-3d/format-i3s/i3s-tileset-traverser.d.ts.map +0 -1
- package/dist/tileset-3d/format-i3s/i3s-tileset-traverser.js +0 -84
- package/dist/tileset-3d/format-i3s/i3s-tileset-traverser.js.map +0 -1
- package/dist/tileset-3d/helpers/3d-tiles-options.d.ts +0 -5
- package/dist/tileset-3d/helpers/3d-tiles-options.d.ts.map +0 -1
- package/dist/tileset-3d/helpers/3d-tiles-options.js +0 -9
- package/dist/tileset-3d/helpers/3d-tiles-options.js.map +0 -1
- package/dist/tileset-3d/helpers/bounding-volume.d.ts +0 -23
- package/dist/tileset-3d/helpers/bounding-volume.d.ts.map +0 -1
- package/dist/tileset-3d/helpers/bounding-volume.js +0 -236
- package/dist/tileset-3d/helpers/bounding-volume.js.map +0 -1
- package/dist/tileset-3d/helpers/frame-state.d.ts +0 -93
- package/dist/tileset-3d/helpers/frame-state.d.ts.map +0 -1
- package/dist/tileset-3d/helpers/frame-state.js +0 -211
- package/dist/tileset-3d/helpers/frame-state.js.map +0 -1
- package/dist/tileset-3d/helpers/i3s-lod.d.ts +0 -20
- package/dist/tileset-3d/helpers/i3s-lod.d.ts.map +0 -1
- package/dist/tileset-3d/helpers/i3s-lod.js +0 -95
- package/dist/tileset-3d/helpers/i3s-lod.js.map +0 -1
- package/dist/tileset-3d/helpers/s2-bounding-volume.d.ts +0 -17
- package/dist/tileset-3d/helpers/s2-bounding-volume.d.ts.map +0 -1
- package/dist/tileset-3d/helpers/s2-bounding-volume.js +0 -20
- package/dist/tileset-3d/helpers/s2-bounding-volume.js.map +0 -1
- package/dist/tileset-3d/helpers/tiles-3d-lod.d.ts +0 -72
- package/dist/tileset-3d/helpers/tiles-3d-lod.d.ts.map +0 -1
- package/dist/tileset-3d/helpers/tiles-3d-lod.js +0 -257
- package/dist/tileset-3d/helpers/tiles-3d-lod.js.map +0 -1
- package/dist/tileset-3d/helpers/tiles-3d-request-priority.d.ts +0 -134
- package/dist/tileset-3d/helpers/tiles-3d-request-priority.d.ts.map +0 -1
- package/dist/tileset-3d/helpers/tiles-3d-request-priority.js +0 -179
- package/dist/tileset-3d/helpers/tiles-3d-request-priority.js.map +0 -1
- package/dist/tileset-3d/helpers/transform-utils.d.ts +0 -3
- package/dist/tileset-3d/helpers/transform-utils.d.ts.map +0 -1
- package/dist/tileset-3d/helpers/transform-utils.js +0 -86
- package/dist/tileset-3d/helpers/transform-utils.js.map +0 -1
- package/dist/tileset-3d/helpers/zoom.d.ts +0 -46
- package/dist/tileset-3d/helpers/zoom.d.ts.map +0 -1
- package/dist/tileset-3d/helpers/zoom.js +0 -86
- package/dist/tileset-3d/helpers/zoom.js.map +0 -1
- package/dist/types.d.ts +0 -48
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js.map +0 -1
- package/dist/utils/doubly-linked-list-node.d.ts +0 -11
- package/dist/utils/doubly-linked-list-node.d.ts.map +0 -1
- package/dist/utils/doubly-linked-list-node.js +0 -20
- package/dist/utils/doubly-linked-list-node.js.map +0 -1
- package/dist/utils/doubly-linked-list.d.ts +0 -30
- package/dist/utils/doubly-linked-list.d.ts.map +0 -1
- package/dist/utils/doubly-linked-list.js +0 -93
- package/dist/utils/doubly-linked-list.js.map +0 -1
- package/dist/utils/managed-array.d.ts +0 -85
- package/dist/utils/managed-array.d.ts.map +0 -1
- package/dist/utils/managed-array.js +0 -152
- package/dist/utils/managed-array.js.map +0 -1
- package/src/constants.ts +0 -59
- package/src/point-cloud/point-cloud-tile.ts +0 -80
- package/src/point-cloud/point-cloud-tileset.ts +0 -767
- package/src/point-cloud/types.ts +0 -99
- package/src/spatial/format-spatial-reference.ts +0 -385
- package/src/spatial/get-spatial-coordinate-frame.ts +0 -169
- package/src/spatial/i3s-elevation.ts +0 -96
- package/src/spatial/i3s-spatial-transformer.ts +0 -1021
- package/src/spatial/normalize-crs-identifier.ts +0 -26
- package/src/spatial/spatial-coordinate-transformer.ts +0 -377
- package/src/spatial/spatial-resource-registry.ts +0 -90
- package/src/spatial/spatial-types.ts +0 -422
- package/src/spatial/tiles-3d-spatial-transformer.ts +0 -194
- package/src/tileset-3d/common/indexed-archive-tileset-source.ts +0 -205
- package/src/tileset-3d/common/tile-3d-contracts.ts +0 -115
- package/src/tileset-3d/common/tile-3d.ts +0 -1310
- package/src/tileset-3d/common/tileset-3d.ts +0 -1208
- package/src/tileset-3d/common/tileset-cache.ts +0 -111
- package/src/tileset-3d/common/tileset-content-traversal.ts +0 -114
- package/src/tileset-3d/common/tileset-observability.ts +0 -100
- package/src/tileset-3d/common/tileset-source.ts +0 -284
- package/src/tileset-3d/common/tileset-traverser.ts +0 -416
- package/src/tileset-3d/format-3d-tiles/implicit-tiling.ts +0 -1059
- package/src/tileset-3d/format-3d-tiles/tiles-3d-source.ts +0 -1025
- package/src/tileset-3d/format-3d-tiles/tileset-3d-traverser.ts +0 -391
- package/src/tileset-3d/format-i3s/i3s-pending-tiles-register.ts +0 -48
- package/src/tileset-3d/format-i3s/i3s-source.ts +0 -557
- package/src/tileset-3d/format-i3s/i3s-tile-manager.ts +0 -105
- package/src/tileset-3d/format-i3s/i3s-tileset-traverser.ts +0 -102
- package/src/tileset-3d/helpers/3d-tiles-options.ts +0 -11
- package/src/tileset-3d/helpers/bounding-volume.ts +0 -281
- package/src/tileset-3d/helpers/frame-state.ts +0 -322
- package/src/tileset-3d/helpers/i3s-lod.ts +0 -109
- package/src/tileset-3d/helpers/s2-bounding-volume.ts +0 -35
- package/src/tileset-3d/helpers/tiles-3d-lod.ts +0 -370
- package/src/tileset-3d/helpers/tiles-3d-request-priority.ts +0 -301
- package/src/tileset-3d/helpers/transform-utils.ts +0 -109
- package/src/tileset-3d/helpers/zoom.ts +0 -120
- package/src/types.ts +0 -54
- package/src/utils/doubly-linked-list-node.ts +0 -22
- package/src/utils/doubly-linked-list.ts +0 -105
- package/src/utils/managed-array.ts +0 -174
- /package/dist/{point-cloud → mvt/lib}/types.js +0 -0
|
@@ -1,770 +0,0 @@
|
|
|
1
|
-
// loaders.gl
|
|
2
|
-
// SPDX-License-Identifier: MIT
|
|
3
|
-
// Copyright (c) vis.gl contributors
|
|
4
|
-
import { path, RequestCache, sliceArrayBuffer } from '@loaders.gl/loader-utils';
|
|
5
|
-
import { Ellipsoid } from '@math.gl/geospatial';
|
|
6
|
-
import { Matrix4, Vector3 } from '@math.gl/core';
|
|
7
|
-
import { Tileset3DTraverser } from "./tileset-3d-traverser.js";
|
|
8
|
-
import { Tile3D as Tile3DNode } from "../common/tile-3d.js";
|
|
9
|
-
import { getZoomFromBoundingVolume } from "../helpers/zoom.js";
|
|
10
|
-
import { TILESET_TYPE } from "../../constants.js";
|
|
11
|
-
import { get3DTilesSpatialReference } from "../../spatial/format-spatial-reference.js";
|
|
12
|
-
import { Tiles3DSpatialTransformer } from "../../spatial/tiles-3d-spatial-transformer.js";
|
|
13
|
-
import { applyTilesetSpatialOptions, markTilesetSpatialReferenceTransformed } from "../../spatial/spatial-types.js";
|
|
14
|
-
import { materializeImplicitSubtree } from "./implicit-tiling.js";
|
|
15
|
-
const EMPTY_CONTENT_FORMATS = {
|
|
16
|
-
draco: false,
|
|
17
|
-
meshopt: false,
|
|
18
|
-
dds: false,
|
|
19
|
-
ktx2: false
|
|
20
|
-
};
|
|
21
|
-
const DEFAULT_MAXIMUM_CACHED_SUBTREES = 32;
|
|
22
|
-
/**
|
|
23
|
-
* {@link Tileset3DSource} implementation for 3D Tiles datasets.
|
|
24
|
-
*/
|
|
25
|
-
export class Tiles3DSource {
|
|
26
|
-
/** 3D Tiles format discriminator. */
|
|
27
|
-
type = TILESET_TYPE.TILES3D;
|
|
28
|
-
/** Loader used for tile content requests. */
|
|
29
|
-
loader;
|
|
30
|
-
/** Root tileset URL. */
|
|
31
|
-
url;
|
|
32
|
-
/** Base path used for relative tile resource resolution. */
|
|
33
|
-
basePath;
|
|
34
|
-
/** Parsed root tileset payload. */
|
|
35
|
-
tileset = null;
|
|
36
|
-
/** Loader options forwarded to content requests. */
|
|
37
|
-
loadOptions;
|
|
38
|
-
/** Core API used for root and tile-content loads when injected by the caller. */
|
|
39
|
-
coreApi;
|
|
40
|
-
/** Aggregate content-format flags discovered during streaming. */
|
|
41
|
-
contentFormats = { ...EMPTY_CONTENT_FORMATS };
|
|
42
|
-
/** Top-level 3D Tiles asset metadata. */
|
|
43
|
-
asset;
|
|
44
|
-
/** Top-level per-feature properties metadata. */
|
|
45
|
-
properties;
|
|
46
|
-
/** Top-level application-specific metadata. */
|
|
47
|
-
extras;
|
|
48
|
-
/** Source-provided attribution metadata. */
|
|
49
|
-
credits;
|
|
50
|
-
/** Normalized source metadata after initialization. */
|
|
51
|
-
metadata;
|
|
52
|
-
queryParams = {};
|
|
53
|
-
/** Final request URLs cached by unmodified tile content URL. */
|
|
54
|
-
tileUrlCache = new Map();
|
|
55
|
-
/** Original content descriptors retained across {@link Tile3D.unloadContent} calls. */
|
|
56
|
-
tileContentHeaders = new WeakMap();
|
|
57
|
-
/** Installed nested roots by parent placement and ordered nested-content slot, across reloads. */
|
|
58
|
-
nestedTilesetRoots = new WeakMap();
|
|
59
|
-
/** Source-local namespaces assigned to distinct embedded glTF package file collections. */
|
|
60
|
-
packageNamespaces = new WeakMap();
|
|
61
|
-
/** Next source-local package namespace. */
|
|
62
|
-
nextPackageNamespace = 0;
|
|
63
|
-
/** Parsed subtree requests keyed by final source URL for deduplication and LRU reuse. */
|
|
64
|
-
implicitSubtreeCache;
|
|
65
|
-
/** Mutable counters exposed as a defensive snapshot through {@link getImplicitTilingStats}. */
|
|
66
|
-
implicitTilingStats = {
|
|
67
|
-
requestedSubtrees: 0,
|
|
68
|
-
loadedSubtrees: 0,
|
|
69
|
-
cacheHits: 0,
|
|
70
|
-
materializedTiles: 0
|
|
71
|
-
};
|
|
72
|
-
/** Whether the owning tileset has released this source. */
|
|
73
|
-
destroyed = false;
|
|
74
|
-
extensionsUsed = [];
|
|
75
|
-
resolver;
|
|
76
|
-
rootTileset;
|
|
77
|
-
/** CRS transformer shared by this source's headers and decoded glTF content. */
|
|
78
|
-
spatialTransformer;
|
|
79
|
-
/** Root header after composing source-frame transforms and rebuilding target bounds. */
|
|
80
|
-
preparedRootHeader;
|
|
81
|
-
/**
|
|
82
|
-
* Creates a 3D Tiles source.
|
|
83
|
-
* @param input Root metadata request, or preloaded root metadata for tests and internal callers.
|
|
84
|
-
* @param loadOptions Loader options forwarded to tile requests.
|
|
85
|
-
*/
|
|
86
|
-
constructor(input, loadOptions = {}) {
|
|
87
|
-
const request = normalizeTiles3DRequest(input);
|
|
88
|
-
this.rootTileset = isTilesetRequest(input) ? null : input;
|
|
89
|
-
this.tileset = this.rootTileset;
|
|
90
|
-
this.loader = request.loader;
|
|
91
|
-
this.url = request.url;
|
|
92
|
-
this.basePath = request.basePath || path.dirname(request.url);
|
|
93
|
-
this.resolver = request.resolver;
|
|
94
|
-
this.coreApi = request.coreApi;
|
|
95
|
-
this.loadOptions = loadOptions;
|
|
96
|
-
const maximumCachedSubtrees = Number(loadOptions['3d-tiles']?.maximumCachedSubtrees);
|
|
97
|
-
const maximumCacheEntries = Number.isFinite(maximumCachedSubtrees)
|
|
98
|
-
? Math.max(0, Math.floor(maximumCachedSubtrees))
|
|
99
|
-
: DEFAULT_MAXIMUM_CACHED_SUBTREES;
|
|
100
|
-
this.implicitSubtreeCache = new RequestCache({ maxEntries: maximumCacheEntries });
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Releases URL and parsed-subtree caches and blocks late subtree installation.
|
|
104
|
-
*
|
|
105
|
-
* The injected resolver or core API remains responsible for transport-level abort signals. A
|
|
106
|
-
* request that cannot be aborted may finish parsing, but it will not mutate destroyed tiles.
|
|
107
|
-
*/
|
|
108
|
-
destroy() {
|
|
109
|
-
this.destroyed = true;
|
|
110
|
-
this.tileUrlCache.clear();
|
|
111
|
-
this.implicitSubtreeCache.clear();
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Fetches and validates top-level metadata, then normalizes common fields used by {@link Tileset3D}.
|
|
115
|
-
*/
|
|
116
|
-
async initialize() {
|
|
117
|
-
if (!this.rootTileset) {
|
|
118
|
-
const loaderOptions = this.loadOptions[this.loader.id] || {};
|
|
119
|
-
this.rootTileset = await this.loadRootData(this.url, {
|
|
120
|
-
...this.loadOptions,
|
|
121
|
-
[this.loader.id]: {
|
|
122
|
-
...loaderOptions,
|
|
123
|
-
isTileset: true
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
this.tileset = this.rootTileset;
|
|
128
|
-
if (this.rootTileset.queryString) {
|
|
129
|
-
const searchParams = new URLSearchParams(this.rootTileset.queryString);
|
|
130
|
-
for (const [parameterName, parameterValue] of searchParams.entries()) {
|
|
131
|
-
this.setQueryParameter(parameterName, parameterValue);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
this.asset = this.rootTileset.asset;
|
|
135
|
-
if (!this.asset) {
|
|
136
|
-
throw new Error('Tileset must have an asset property.');
|
|
137
|
-
}
|
|
138
|
-
if (this.rootTileset.formatVersion !== '2.0-draft' &&
|
|
139
|
-
this.asset.version !== '0.0' &&
|
|
140
|
-
this.asset.version !== '1.0' &&
|
|
141
|
-
this.asset.version !== '1.1') {
|
|
142
|
-
throw new Error('The tileset must be 3D Tiles version 0.0, 1.0, 1.1, or 2.0-draft.');
|
|
143
|
-
}
|
|
144
|
-
if ('tilesetVersion' in this.asset) {
|
|
145
|
-
this.setQueryParameter('v', this.asset.tilesetVersion);
|
|
146
|
-
}
|
|
147
|
-
this.properties = this.rootTileset.properties;
|
|
148
|
-
this.extras = this.rootTileset.extras;
|
|
149
|
-
this.credits = { attributions: [] };
|
|
150
|
-
this.extensionsUsed.splice(0, this.extensionsUsed.length, ...(this.rootTileset.extensionsUsed || []));
|
|
151
|
-
this.metadata = {
|
|
152
|
-
type: this.type,
|
|
153
|
-
loader: this.loader,
|
|
154
|
-
url: this.url,
|
|
155
|
-
basePath: this.basePath,
|
|
156
|
-
tileset: this.rootTileset,
|
|
157
|
-
lodMetricType: this.rootTileset.lodMetricType,
|
|
158
|
-
lodMetricValue: this.rootTileset.lodMetricValue,
|
|
159
|
-
refine: this.rootTileset.root?.refine,
|
|
160
|
-
spatialReference: get3DTilesSpatialReference(this.rootTileset)
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
/**
|
|
164
|
-
* Returns normalized source metadata after initialization.
|
|
165
|
-
*/
|
|
166
|
-
getMetadata() {
|
|
167
|
-
if (!this.metadata) {
|
|
168
|
-
throw new Error('Tiles3DSource has not been initialized');
|
|
169
|
-
}
|
|
170
|
-
return this.metadata;
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* Returns the root 3D Tiles payload.
|
|
174
|
-
*/
|
|
175
|
-
async getRootTileset() {
|
|
176
|
-
return this.getMetadata().tileset;
|
|
177
|
-
}
|
|
178
|
-
/** Prepare nonlinear CRS state before runtime headers are materialized. */
|
|
179
|
-
async prepareTileset(tileset) {
|
|
180
|
-
const spatialReference = tileset.spatialReference;
|
|
181
|
-
if (spatialReference.status === 'unresolved') {
|
|
182
|
-
throw new Error(spatialReference.warnings[0] ||
|
|
183
|
-
'3D Tiles spatial operations cannot be resolved from the supplied metadata and options');
|
|
184
|
-
}
|
|
185
|
-
if (spatialReference.status !== 'transformable' && spatialReference.status !== 'transformed') {
|
|
186
|
-
return;
|
|
187
|
-
}
|
|
188
|
-
this.spatialTransformer ||= new Tiles3DSpatialTransformer(spatialReference, tileset.options.spatial);
|
|
189
|
-
tileset.spatialReference = markTilesetSpatialReferenceTransformed(spatialReference);
|
|
190
|
-
this.preparedRootHeader = this.transformTileHeader(this.getMetadata().tileset.root, new Matrix4());
|
|
191
|
-
}
|
|
192
|
-
/**
|
|
193
|
-
* Builds explicit runtime headers while leaving implicit subtree references lazy.
|
|
194
|
-
*/
|
|
195
|
-
initializeTileHeaders(tileset, tilesetJson, parentTile) {
|
|
196
|
-
const rootHeader = parentTile ? tilesetJson.root : this.preparedRootHeader || tilesetJson.root;
|
|
197
|
-
const rootTile = new Tile3DNode(tileset, rootHeader, parentTile || undefined);
|
|
198
|
-
if (parentTile) {
|
|
199
|
-
parentTile.children.push(rootTile);
|
|
200
|
-
rootTile.depth = parentTile.depth + 1;
|
|
201
|
-
}
|
|
202
|
-
const stack = [rootTile];
|
|
203
|
-
while (stack.length > 0) {
|
|
204
|
-
const tile = stack.pop();
|
|
205
|
-
tileset.stats.get('Tiles In Tileset(s)').incrementCount();
|
|
206
|
-
const children = tile.header.children || [];
|
|
207
|
-
for (const childHeader of children) {
|
|
208
|
-
const childTile = new Tile3DNode(tileset, childHeader, tile);
|
|
209
|
-
if (childTile.contentUrl?.includes('?session=')) {
|
|
210
|
-
const url = new URL(childTile.contentUrl);
|
|
211
|
-
const session = url.searchParams.get('session');
|
|
212
|
-
if (session) {
|
|
213
|
-
this.setQueryParameter('session', session);
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
tile.children.push(childTile);
|
|
217
|
-
childTile.depth = tile.depth + 1;
|
|
218
|
-
stack.push(childTile);
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
return rootTile;
|
|
222
|
-
}
|
|
223
|
-
/**
|
|
224
|
-
* Creates the standard 3D Tiles traverser.
|
|
225
|
-
*/
|
|
226
|
-
createTraverser(options) {
|
|
227
|
-
return new Tileset3DTraverser(options);
|
|
228
|
-
}
|
|
229
|
-
/**
|
|
230
|
-
* Loads binary content or nested tileset JSON for a runtime tile.
|
|
231
|
-
*/
|
|
232
|
-
async loadTileContent(tile) {
|
|
233
|
-
const contentUrls = (tile.contentUrls || [tile.contentUrl]).filter(Boolean);
|
|
234
|
-
const cachedContentHeaders = this.tileContentHeaders.get(tile);
|
|
235
|
-
const contentHeaders = cachedContentHeaders ||
|
|
236
|
-
(Array.isArray(tile.header?.content)
|
|
237
|
-
? tile.header.content
|
|
238
|
-
: tile.header?.content
|
|
239
|
-
? [tile.header.content]
|
|
240
|
-
: []);
|
|
241
|
-
if (!cachedContentHeaders) {
|
|
242
|
-
this.tileContentHeaders.set(tile, contentHeaders);
|
|
243
|
-
}
|
|
244
|
-
const tilesetLoaderOptions = this.loadOptions[this.loader.id] || {};
|
|
245
|
-
const options = {
|
|
246
|
-
...this.loadOptions,
|
|
247
|
-
[this.loader.id]: {
|
|
248
|
-
...tilesetLoaderOptions,
|
|
249
|
-
// Content bytes, rather than URL suffixes, distinguish external tilesets from renderable
|
|
250
|
-
// payloads. This is required for signed and extensionless resources.
|
|
251
|
-
isTileset: 'auto',
|
|
252
|
-
assetGltfUpAxis: (this.asset && this.asset.gltfUpAxis) || 'Y',
|
|
253
|
-
_tilesetOptions: {
|
|
254
|
-
spatialReference: tile.header?._spatialReference || tile.tileset?.spatialReference,
|
|
255
|
-
spatialOptions: tile.tileset?.options.spatial,
|
|
256
|
-
spatialTransform: tile.header?._spatialTransform
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
};
|
|
260
|
-
const contents = await Promise.all(contentUrls.map((contentUrl, contentIndex) => {
|
|
261
|
-
const contentHeader = contentHeaders[contentIndex] || {};
|
|
262
|
-
const vectorExtension = contentHeader.extensions?.['3DTILES_content_gltf_vector'];
|
|
263
|
-
const vectorContent = contentHeader._vectorContent ||
|
|
264
|
-
(vectorExtension?.vector === true ? { clip: vectorExtension.clip === true } : undefined);
|
|
265
|
-
const contentOptions = vectorContent
|
|
266
|
-
? {
|
|
267
|
-
...options,
|
|
268
|
-
[this.loader.id]: {
|
|
269
|
-
...options[this.loader.id],
|
|
270
|
-
vectorContent
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
: options;
|
|
274
|
-
return this.loadContentResource(this.getTileUrl(contentUrl), contentHeader._resource, contentOptions);
|
|
275
|
-
}));
|
|
276
|
-
tile.contents = contents;
|
|
277
|
-
tile.content = contents[0] || null;
|
|
278
|
-
const nestedTilesets = contents.filter(content => content?.shape === 'tileset3d');
|
|
279
|
-
return {
|
|
280
|
-
loaded: true,
|
|
281
|
-
contents,
|
|
282
|
-
nestedTileset: nestedTilesets[0],
|
|
283
|
-
nestedTilesets
|
|
284
|
-
};
|
|
285
|
-
}
|
|
286
|
-
/** Transform a tile header and its eagerly declared descendants. */
|
|
287
|
-
transformTileHeader(header, parentTransform = new Matrix4()) {
|
|
288
|
-
if (!this.spatialTransformer) {
|
|
289
|
-
return header;
|
|
290
|
-
}
|
|
291
|
-
return this.transformTileHeaderWithTransformer(header, this.spatialTransformer, parentTransform);
|
|
292
|
-
}
|
|
293
|
-
/** Rebuilds one header subtree using an explicitly selected CRS transformer. */
|
|
294
|
-
transformTileHeaderWithTransformer(header, transformer, parentTransform, spatialReference) {
|
|
295
|
-
const localTransform = header.transform ? new Matrix4(header.transform) : new Matrix4();
|
|
296
|
-
const composedTransform = new Matrix4(parentTransform).multiplyRight(localTransform);
|
|
297
|
-
const content = Array.isArray(header.content)
|
|
298
|
-
? header.content.map((entry) => this.transformContentHeader(entry, composedTransform, transformer))
|
|
299
|
-
: header.content
|
|
300
|
-
? this.transformContentHeader(header.content, composedTransform, transformer)
|
|
301
|
-
: header.content;
|
|
302
|
-
return {
|
|
303
|
-
...header,
|
|
304
|
-
transform: undefined,
|
|
305
|
-
boundingVolume: header.boundingVolume
|
|
306
|
-
? transformer.transformBoundingVolume(header.boundingVolume, composedTransform)
|
|
307
|
-
: header.boundingVolume,
|
|
308
|
-
_spatialReference: spatialReference,
|
|
309
|
-
_spatialTransform: composedTransform.toArray(),
|
|
310
|
-
content,
|
|
311
|
-
children: Array.isArray(header.children)
|
|
312
|
-
? header.children.map((child) => this.transformTileHeaderWithTransformer(child, transformer, composedTransform, spatialReference))
|
|
313
|
-
: header.children
|
|
314
|
-
};
|
|
315
|
-
}
|
|
316
|
-
transformContentHeader(content, composedTransform, transformer) {
|
|
317
|
-
return {
|
|
318
|
-
...content,
|
|
319
|
-
boundingVolume: content.boundingVolume
|
|
320
|
-
? transformer.transformBoundingVolume(content.boundingVolume, composedTransform)
|
|
321
|
-
: content.boundingVolume
|
|
322
|
-
};
|
|
323
|
-
}
|
|
324
|
-
/**
|
|
325
|
-
* Loads, materializes, and installs exactly one implicit subtree.
|
|
326
|
-
*
|
|
327
|
-
* Final URLs pass through the same query inheritance and archive/custom resolver path as render
|
|
328
|
-
* content. Parsed resources are deduplicated by final URL, while the pure materializer creates
|
|
329
|
-
* lazy placeholders for every available child subtree instead of recursively fetching them.
|
|
330
|
-
*
|
|
331
|
-
* @param tile - Existing contentless subtree-root placeholder.
|
|
332
|
-
* @param frameState - View state that made this request eligible; priority is consumed earlier.
|
|
333
|
-
* @returns Counts describing the installed subtree.
|
|
334
|
-
*/
|
|
335
|
-
async loadTileChildren(tile, frameState) {
|
|
336
|
-
void frameState;
|
|
337
|
-
const reference = tile.header.implicitSubtree;
|
|
338
|
-
if (!reference) {
|
|
339
|
-
return { loaded: false, tileCount: 0, childSubtreeCount: 0 };
|
|
340
|
-
}
|
|
341
|
-
const subtreeUrl = this.getTileUrl(reference.subtreeUrl);
|
|
342
|
-
const subtree = await this.loadImplicitSubtreeResource(subtreeUrl, reference.resource);
|
|
343
|
-
if (this.destroyed || tile.isDestroyed()) {
|
|
344
|
-
return { loaded: false, tileCount: 0, childSubtreeCount: 0 };
|
|
345
|
-
}
|
|
346
|
-
const materializedSubtree = materializeImplicitSubtree(subtree, {
|
|
347
|
-
...reference,
|
|
348
|
-
subtreeUrl
|
|
349
|
-
});
|
|
350
|
-
const nestedSpatialReference = tile.header._spatialReference;
|
|
351
|
-
const subtreeTransformer = nestedSpatialReference
|
|
352
|
-
? new Tiles3DSpatialTransformer(nestedSpatialReference, tile.tileset.options.spatial)
|
|
353
|
-
: this.spatialTransformer;
|
|
354
|
-
const materializedRoot = subtreeTransformer
|
|
355
|
-
? this.transformTileHeaderWithTransformer(materializedSubtree.root, subtreeTransformer, new Matrix4(), nestedSpatialReference)
|
|
356
|
-
: materializedSubtree.root;
|
|
357
|
-
tile.applyImplicitSubtreeHeader(materializedRoot);
|
|
358
|
-
const materializedTileCount = this.initializeMaterializedChildren(tile.tileset, tile, materializedRoot.children);
|
|
359
|
-
this.implicitTilingStats.loadedSubtrees++;
|
|
360
|
-
this.implicitTilingStats.materializedTiles += materializedTileCount;
|
|
361
|
-
return {
|
|
362
|
-
loaded: true,
|
|
363
|
-
tileCount: materializedSubtree.tileCount,
|
|
364
|
-
childSubtreeCount: materializedSubtree.childSubtreeCount
|
|
365
|
-
};
|
|
366
|
-
}
|
|
367
|
-
/** Loads an implicit subtree for dataset traversal without camera state. */
|
|
368
|
-
async loadTileChildrenForTraversal(tile, signal) {
|
|
369
|
-
throwIfTraversalAborted(signal);
|
|
370
|
-
const result = await this.loadTileChildren(tile, {});
|
|
371
|
-
throwIfTraversalAborted(signal);
|
|
372
|
-
return result;
|
|
373
|
-
}
|
|
374
|
-
/**
|
|
375
|
-
* Returns a snapshot of implicit-subtree request, cache, and materialization counters.
|
|
376
|
-
*
|
|
377
|
-
* @returns Immutable-by-convention diagnostic values for runtime inspection.
|
|
378
|
-
*/
|
|
379
|
-
getImplicitTilingStats() {
|
|
380
|
-
return {
|
|
381
|
-
...this.implicitTilingStats,
|
|
382
|
-
cachedSubtrees: this.implicitSubtreeCache.size - this.implicitSubtreeCache.pendingSize,
|
|
383
|
-
pendingSubtrees: this.implicitSubtreeCache.pendingSize
|
|
384
|
-
};
|
|
385
|
-
}
|
|
386
|
-
/**
|
|
387
|
-
* Resolves a tile content URL with source-managed query parameters.
|
|
388
|
-
*
|
|
389
|
-
* Existing per-resource parameters take precedence over inherited root, version, and session
|
|
390
|
-
* values. Completed URLs are cached by the original tile path; {@link setQueryParameter}
|
|
391
|
-
* invalidates the cache before changed source state can be observed.
|
|
392
|
-
*
|
|
393
|
-
* @param tilePath - Unmodified absolute content URL or data URL from the tile header.
|
|
394
|
-
* @returns Content URL with any missing source parameters appended.
|
|
395
|
-
*/
|
|
396
|
-
getTileUrl(tilePath) {
|
|
397
|
-
if (tilePath.startsWith('data:')) {
|
|
398
|
-
return tilePath;
|
|
399
|
-
}
|
|
400
|
-
const cachedTileUrl = this.tileUrlCache.get(tilePath);
|
|
401
|
-
if (cachedTileUrl) {
|
|
402
|
-
return cachedTileUrl;
|
|
403
|
-
}
|
|
404
|
-
if (!Object.keys(this.queryParams).length) {
|
|
405
|
-
this.tileUrlCache.set(tilePath, tilePath);
|
|
406
|
-
return tilePath;
|
|
407
|
-
}
|
|
408
|
-
const [pathWithoutQuery, existingQuery = ''] = tilePath.split('?');
|
|
409
|
-
const mergedQueryParams = new URLSearchParams(existingQuery);
|
|
410
|
-
for (const [key, value] of Object.entries(this.queryParams)) {
|
|
411
|
-
if (!mergedQueryParams.has(key)) {
|
|
412
|
-
mergedQueryParams.set(key, value);
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
const queryParams = mergedQueryParams.toString();
|
|
416
|
-
const tileUrl = queryParams ? `${pathWithoutQuery}?${queryParams}` : pathWithoutQuery;
|
|
417
|
-
this.tileUrlCache.set(tilePath, tileUrl);
|
|
418
|
-
return tileUrl;
|
|
419
|
-
}
|
|
420
|
-
/**
|
|
421
|
-
* Updates an inherited source query parameter and invalidates derived request URLs.
|
|
422
|
-
*
|
|
423
|
-
* Root tokens and tileset versions normally settle during initialization. Some providers expose
|
|
424
|
-
* a session parameter on a child URL, so invalidation is required to prevent URLs cached earlier
|
|
425
|
-
* in header construction from retaining stale authentication state.
|
|
426
|
-
*
|
|
427
|
-
* @param parameterName - Query parameter name.
|
|
428
|
-
* @param parameterValue - Query parameter value.
|
|
429
|
-
*/
|
|
430
|
-
setQueryParameter(parameterName, parameterValue) {
|
|
431
|
-
if (this.queryParams[parameterName] === parameterValue) {
|
|
432
|
-
return;
|
|
433
|
-
}
|
|
434
|
-
this.queryParams[parameterName] = parameterValue;
|
|
435
|
-
this.tileUrlCache.clear();
|
|
436
|
-
}
|
|
437
|
-
/**
|
|
438
|
-
* Derives the default view state from the root bounding volume.
|
|
439
|
-
*/
|
|
440
|
-
getViewState(rootTile) {
|
|
441
|
-
if (!rootTile) {
|
|
442
|
-
return {
|
|
443
|
-
asset: this.asset,
|
|
444
|
-
properties: this.properties,
|
|
445
|
-
extras: this.extras,
|
|
446
|
-
credits: this.credits
|
|
447
|
-
};
|
|
448
|
-
}
|
|
449
|
-
const { center } = rootTile.boundingVolume;
|
|
450
|
-
let cartographicCenter;
|
|
451
|
-
if (center && (center[0] !== 0 || center[1] !== 0 || center[2] !== 0)) {
|
|
452
|
-
cartographicCenter = new Vector3();
|
|
453
|
-
Ellipsoid.WGS84.cartesianToCartographic(center, cartographicCenter);
|
|
454
|
-
}
|
|
455
|
-
else {
|
|
456
|
-
cartographicCenter = new Vector3(0, 0, -Ellipsoid.WGS84.radii[0]);
|
|
457
|
-
}
|
|
458
|
-
return {
|
|
459
|
-
asset: this.asset,
|
|
460
|
-
properties: this.properties,
|
|
461
|
-
extras: this.extras,
|
|
462
|
-
credits: this.credits,
|
|
463
|
-
boundingVolume: rootTile.boundingVolume,
|
|
464
|
-
cartographicCenter,
|
|
465
|
-
cartesianCenter: center,
|
|
466
|
-
zoom: getZoomFromBoundingVolume(rootTile.boundingVolume, cartographicCenter)
|
|
467
|
-
};
|
|
468
|
-
}
|
|
469
|
-
/**
|
|
470
|
-
* Checks whether the root tileset declares the given extension.
|
|
471
|
-
*/
|
|
472
|
-
hasExtension(extensionName) {
|
|
473
|
-
return this.extensionsUsed.includes(extensionName);
|
|
474
|
-
}
|
|
475
|
-
/**
|
|
476
|
-
* Updates content-format flags and installs nested tileset subtrees once per content slot.
|
|
477
|
-
* Reloading payloads retains attached roots and their descendants, including duplicate URLs
|
|
478
|
-
* declared in separate slots or parent placements. Detached roots are reinstalled in declaration order.
|
|
479
|
-
*/
|
|
480
|
-
onTileLoaded(tileset, tile, loadResult) {
|
|
481
|
-
const contents = tile.contents.length ? tile.contents : [tile.content];
|
|
482
|
-
const extensionsRemoved = contents.flatMap(content => content?.gltf?.extensionsRemoved || []);
|
|
483
|
-
if (extensionsRemoved.includes('KHR_draco_mesh_compression')) {
|
|
484
|
-
this.contentFormats.draco = true;
|
|
485
|
-
}
|
|
486
|
-
if (extensionsRemoved.includes('EXT_meshopt_compression')) {
|
|
487
|
-
this.contentFormats.meshopt = true;
|
|
488
|
-
}
|
|
489
|
-
if (extensionsRemoved.includes('KHR_texture_basisu')) {
|
|
490
|
-
this.contentFormats.ktx2 = true;
|
|
491
|
-
}
|
|
492
|
-
const nestedTilesets = loadResult.nestedTilesets || (loadResult.nestedTileset ? [loadResult.nestedTileset] : []);
|
|
493
|
-
const installedRoots = this.nestedTilesetRoots.get(tile) || [];
|
|
494
|
-
for (const [nestedIndex, nestedTileset] of nestedTilesets.entries()) {
|
|
495
|
-
const installedRoot = installedRoots[nestedIndex];
|
|
496
|
-
if (installedRoot && tile.children.includes(installedRoot)) {
|
|
497
|
-
continue;
|
|
498
|
-
}
|
|
499
|
-
const nextRoot = installedRoots
|
|
500
|
-
.slice(nestedIndex + 1)
|
|
501
|
-
.find(root => tile.children.includes(root));
|
|
502
|
-
const nestedRoot = tileset._initializeTileHeaders(this.prepareNestedTileset(tileset, nestedTileset), tile);
|
|
503
|
-
// Header installation appends roots; restore declaration order before any later retained slot.
|
|
504
|
-
if (nextRoot) {
|
|
505
|
-
tile.children.splice(tile.children.indexOf(nestedRoot), 1);
|
|
506
|
-
tile.children.splice(tile.children.indexOf(nextRoot), 0, nestedRoot);
|
|
507
|
-
}
|
|
508
|
-
installedRoots[nestedIndex] = nestedRoot;
|
|
509
|
-
this.nestedTilesetRoots.set(tile, installedRoots);
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
/**
|
|
513
|
-
* Resolves a nested tileset's CRS independently and adapts it to the owning tileset output frame.
|
|
514
|
-
*
|
|
515
|
-
* Nested resources may use a different source CRS from their parent. Their headers and glTF
|
|
516
|
-
* payloads must therefore use a transformer built from the nested descriptor, while the parent
|
|
517
|
-
* runtime continues to expose one requested output frame to traversal and rendering.
|
|
518
|
-
*/
|
|
519
|
-
prepareNestedTileset(tileset, nestedTileset) {
|
|
520
|
-
const nestedSpatialReference = nestedTileset.spatialMetadata;
|
|
521
|
-
const parentSpatialReference = tileset.spatialReference;
|
|
522
|
-
if (nestedSpatialReference?.status === 'unresolved' ||
|
|
523
|
-
nestedSpatialReference?.crs.state === 'unknown') {
|
|
524
|
-
throw new Error(nestedSpatialReference.warnings[0] ||
|
|
525
|
-
'Nested 3D Tiles CRS is explicitly unresolved and cannot be placed in the parent frame');
|
|
526
|
-
}
|
|
527
|
-
if (!nestedSpatialReference || !nestedSpatialReference.sourceCrs) {
|
|
528
|
-
if (this.spatialTransformer &&
|
|
529
|
-
(parentSpatialReference.status === 'transformable' ||
|
|
530
|
-
parentSpatialReference.status === 'transformed')) {
|
|
531
|
-
return {
|
|
532
|
-
...nestedTileset,
|
|
533
|
-
spatialMetadata: parentSpatialReference,
|
|
534
|
-
root: this.transformTileHeaderWithTransformer(nestedTileset.root, this.spatialTransformer, new Matrix4(), parentSpatialReference)
|
|
535
|
-
};
|
|
536
|
-
}
|
|
537
|
-
return addNestedSpatialReference(nestedTileset, parentSpatialReference);
|
|
538
|
-
}
|
|
539
|
-
const parentCoordinateEpoch = parentSpatialReference.coordinateEpoch;
|
|
540
|
-
const nestedCoordinateEpoch = nestedSpatialReference.coordinateEpoch;
|
|
541
|
-
if (parentCoordinateEpoch !== undefined &&
|
|
542
|
-
nestedCoordinateEpoch !== undefined &&
|
|
543
|
-
parentCoordinateEpoch !== nestedCoordinateEpoch) {
|
|
544
|
-
throw new Error(`Nested 3D Tiles coordinate epoch ${nestedCoordinateEpoch} differs from parent epoch ${parentCoordinateEpoch}; epoch-aware transformation is unavailable`);
|
|
545
|
-
}
|
|
546
|
-
const outputCrs = parentSpatialReference.targetCrs || parentSpatialReference.sourceCrs;
|
|
547
|
-
if (!outputCrs) {
|
|
548
|
-
return addNestedSpatialReference(nestedTileset, nestedSpatialReference);
|
|
549
|
-
}
|
|
550
|
-
const nestedOutputReference = applyTilesetSpatialOptions(nestedSpatialReference, {
|
|
551
|
-
...tileset.options.spatial,
|
|
552
|
-
outputCoordinates: 'target-crs',
|
|
553
|
-
targetCrs: outputCrs
|
|
554
|
-
});
|
|
555
|
-
if (nestedOutputReference.status === 'unresolved') {
|
|
556
|
-
throw new Error(nestedOutputReference.warnings[0] ||
|
|
557
|
-
'Nested 3D Tiles CRS cannot be resolved in the parent output frame');
|
|
558
|
-
}
|
|
559
|
-
if (nestedOutputReference.status === 'native') {
|
|
560
|
-
return addNestedSpatialReference(nestedTileset, nestedOutputReference);
|
|
561
|
-
}
|
|
562
|
-
const nestedTransformer = new Tiles3DSpatialTransformer(nestedOutputReference, tileset.options.spatial);
|
|
563
|
-
return {
|
|
564
|
-
...nestedTileset,
|
|
565
|
-
spatialMetadata: nestedOutputReference,
|
|
566
|
-
root: this.transformTileHeaderWithTransformer(nestedTileset.root, nestedTransformer, new Matrix4(), nestedOutputReference)
|
|
567
|
-
};
|
|
568
|
-
}
|
|
569
|
-
/**
|
|
570
|
-
* Loads data through injected core APIs so this module stays independent from `@loaders.gl/core`.
|
|
571
|
-
*/
|
|
572
|
-
async loadWithCoreApi(url, options, loader = this.loader) {
|
|
573
|
-
if (!this.coreApi) {
|
|
574
|
-
throw new Error('Tiles3DSource requires an injected coreApi to load tileset data');
|
|
575
|
-
}
|
|
576
|
-
return await this.coreApi.load(url, loader, options);
|
|
577
|
-
}
|
|
578
|
-
/**
|
|
579
|
-
* Loads data through an injected resolver when present, otherwise through the injected core API.
|
|
580
|
-
*/
|
|
581
|
-
async loadRootData(url, options) {
|
|
582
|
-
if (this.resolver) {
|
|
583
|
-
return await this.resolver.loadRoot(url, this.loader, options);
|
|
584
|
-
}
|
|
585
|
-
return await this.loadWithCoreApi(url, options);
|
|
586
|
-
}
|
|
587
|
-
/**
|
|
588
|
-
* Loads an arbitrary source resource through an injected resolver or core API.
|
|
589
|
-
*/
|
|
590
|
-
async loadResourceData(url, options, loader = this.loader) {
|
|
591
|
-
if (this.resolver) {
|
|
592
|
-
return await this.resolver.loadResource(url, loader, options);
|
|
593
|
-
}
|
|
594
|
-
return await this.loadWithCoreApi(url, options, loader);
|
|
595
|
-
}
|
|
596
|
-
/** Loads a URL content reference or parses a buffer-view file retained from a glTF package. */
|
|
597
|
-
async loadContentResource(url, packageResource, options) {
|
|
598
|
-
if (!packageResource) {
|
|
599
|
-
return await this.loadResourceData(url, options);
|
|
600
|
-
}
|
|
601
|
-
const file = packageResource.files[packageResource.fileIndex];
|
|
602
|
-
if (!file) {
|
|
603
|
-
throw new Error(`3D Tiles package references missing file ${packageResource.fileIndex}`);
|
|
604
|
-
}
|
|
605
|
-
if (file.uri) {
|
|
606
|
-
return await this.loadResourceData(this.getTileUrl(file.uri), options);
|
|
607
|
-
}
|
|
608
|
-
if (!this.coreApi) {
|
|
609
|
-
throw new Error('Tiles3DSource requires an injected coreApi to parse embedded package data');
|
|
610
|
-
}
|
|
611
|
-
const data = await this.getPackageFileData(file);
|
|
612
|
-
const packageNamespace = this.getPackageNamespace(packageResource.files);
|
|
613
|
-
const packageRootUrl = `gltf-package://${packageNamespace}/${packageResource.fileIndex}`;
|
|
614
|
-
const fileName = file.name || 'content';
|
|
615
|
-
const directorySeparatorIndex = fileName.lastIndexOf('/');
|
|
616
|
-
const packageBaseUrl = directorySeparatorIndex >= 0
|
|
617
|
-
? `${packageRootUrl}/${fileName.slice(0, directorySeparatorIndex)}`
|
|
618
|
-
: packageRootUrl;
|
|
619
|
-
return await this.coreApi.parse(data, this.loader, options, {
|
|
620
|
-
url: `${packageRootUrl}/${fileName}`,
|
|
621
|
-
filename: fileName,
|
|
622
|
-
baseUrl: packageBaseUrl,
|
|
623
|
-
loaders: [this.loader],
|
|
624
|
-
coreApi: this.coreApi,
|
|
625
|
-
_parse: this.coreApi.parse,
|
|
626
|
-
_tiles3dPackageFiles: packageResource.files,
|
|
627
|
-
fetch: async (resource, init) => {
|
|
628
|
-
const reference = resource.startsWith(`${packageRootUrl}/`)
|
|
629
|
-
? resource.slice(packageRootUrl.length + 1)
|
|
630
|
-
: resource;
|
|
631
|
-
const referencedFile = packageResource.files.find(packageFile => packageFile.name === reference || packageFile.originalUri === reference);
|
|
632
|
-
if (!referencedFile) {
|
|
633
|
-
throw new Error(`3D Tiles glTF package does not contain file ${reference}`);
|
|
634
|
-
}
|
|
635
|
-
if (referencedFile.uri) {
|
|
636
|
-
return await this.coreApi.fetchFile(this.getTileUrl(referencedFile.uri), init);
|
|
637
|
-
}
|
|
638
|
-
const referencedData = await this.getPackageFileData(referencedFile);
|
|
639
|
-
return new Response(referencedData, {
|
|
640
|
-
headers: { 'content-type': referencedFile.mimeType }
|
|
641
|
-
});
|
|
642
|
-
}
|
|
643
|
-
});
|
|
644
|
-
}
|
|
645
|
-
/** Returns a stable source-local namespace for one embedded glTF package file collection. */
|
|
646
|
-
getPackageNamespace(files) {
|
|
647
|
-
const existingNamespace = this.packageNamespaces.get(files);
|
|
648
|
-
if (existingNamespace !== undefined) {
|
|
649
|
-
return existingNamespace;
|
|
650
|
-
}
|
|
651
|
-
const packageNamespace = this.nextPackageNamespace++;
|
|
652
|
-
this.packageNamespaces.set(files, packageNamespace);
|
|
653
|
-
return packageNamespace;
|
|
654
|
-
}
|
|
655
|
-
/** Resolves a retained package-file byte range without eagerly copying other package files. */
|
|
656
|
-
async getPackageFileData(file) {
|
|
657
|
-
if (file.data) {
|
|
658
|
-
return sliceArrayBuffer(file.data, file.byteOffset, file.byteLength);
|
|
659
|
-
}
|
|
660
|
-
if (file.bufferUri && this.coreApi) {
|
|
661
|
-
const response = await this.coreApi.fetchFile(this.getTileUrl(file.bufferUri));
|
|
662
|
-
if (!response.ok) {
|
|
663
|
-
throw new Error(`Failed to fetch 3D Tiles package buffer: HTTP ${response.status}`);
|
|
664
|
-
}
|
|
665
|
-
const buffer = await response.arrayBuffer();
|
|
666
|
-
return sliceArrayBuffer(buffer, file.byteOffset, file.byteLength);
|
|
667
|
-
}
|
|
668
|
-
throw new Error('3D Tiles package file has no available byte source');
|
|
669
|
-
}
|
|
670
|
-
/**
|
|
671
|
-
* Returns a parsed subtree from the LRU cache or starts one source-managed request.
|
|
672
|
-
*
|
|
673
|
-
* @param subtreeUrl - Final subtree URL after query inheritance.
|
|
674
|
-
* @param packageResource - Optional glTF package file satisfying the subtree reference.
|
|
675
|
-
* @returns Parsed subtree availability data.
|
|
676
|
-
*/
|
|
677
|
-
async loadImplicitSubtreeResource(subtreeUrl, packageResource) {
|
|
678
|
-
const cachedSubtree = this.implicitSubtreeCache.get(subtreeUrl);
|
|
679
|
-
if (cachedSubtree) {
|
|
680
|
-
this.implicitTilingStats.cacheHits++;
|
|
681
|
-
return await cachedSubtree;
|
|
682
|
-
}
|
|
683
|
-
this.implicitTilingStats.requestedSubtrees++;
|
|
684
|
-
const loaderOptions = this.loadOptions[this.loader.id] || {};
|
|
685
|
-
return await this.implicitSubtreeCache.getOrLoad(subtreeUrl, async () => {
|
|
686
|
-
const options = {
|
|
687
|
-
...this.loadOptions,
|
|
688
|
-
[this.loader.id]: {
|
|
689
|
-
...loaderOptions,
|
|
690
|
-
isTileset: false,
|
|
691
|
-
isSubtree: true
|
|
692
|
-
}
|
|
693
|
-
};
|
|
694
|
-
return (await (packageResource
|
|
695
|
-
? this.loadContentResource(subtreeUrl, packageResource, options)
|
|
696
|
-
: this.loadResourceData(subtreeUrl, options)));
|
|
697
|
-
});
|
|
698
|
-
}
|
|
699
|
-
/**
|
|
700
|
-
* Instantiates every header represented by one materialized subtree.
|
|
701
|
-
*
|
|
702
|
-
* @param tileset - Owning runtime tileset.
|
|
703
|
-
* @param parentTile - Existing materialized parent.
|
|
704
|
-
* @param childHeaders - Headers to install below the parent.
|
|
705
|
-
* @returns Number of newly allocated runtime tile nodes.
|
|
706
|
-
*/
|
|
707
|
-
initializeMaterializedChildren(tileset, parentTile, childHeaders) {
|
|
708
|
-
let materializedTileCount = 0;
|
|
709
|
-
const stack = [
|
|
710
|
-
{ parentTile, childHeaders }
|
|
711
|
-
];
|
|
712
|
-
while (stack.length > 0) {
|
|
713
|
-
const entry = stack.pop();
|
|
714
|
-
for (const childHeader of entry.childHeaders) {
|
|
715
|
-
const childTile = new Tile3DNode(tileset, childHeader, entry.parentTile);
|
|
716
|
-
entry.parentTile.children.push(childTile);
|
|
717
|
-
childTile.depth = entry.parentTile.depth + 1;
|
|
718
|
-
tileset.stats.get('Tiles In Tileset(s)').incrementCount();
|
|
719
|
-
materializedTileCount++;
|
|
720
|
-
if (childHeader.children?.length) {
|
|
721
|
-
stack.push({ parentTile: childTile, childHeaders: childHeader.children });
|
|
722
|
-
}
|
|
723
|
-
}
|
|
724
|
-
}
|
|
725
|
-
return materializedTileCount;
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
/** Throws a cancellation reason before or after source-managed traversal work. */
|
|
729
|
-
function throwIfTraversalAborted(signal) {
|
|
730
|
-
if (signal?.aborted) {
|
|
731
|
-
throw signal.reason ?? new DOMException('The operation was aborted', 'AbortError');
|
|
732
|
-
}
|
|
733
|
-
}
|
|
734
|
-
function isTilesetRequest(input) {
|
|
735
|
-
return Boolean(input && typeof input === 'object' && 'url' in input && 'loader' in input && !('type' in input));
|
|
736
|
-
}
|
|
737
|
-
/**
|
|
738
|
-
* Normalizes constructor input into a URL request descriptor.
|
|
739
|
-
* @param input Constructor input for {@link Tiles3DSource}.
|
|
740
|
-
* @returns A normalized request with a resolved base path.
|
|
741
|
-
*/
|
|
742
|
-
function normalizeTiles3DRequest(input) {
|
|
743
|
-
if (isTilesetRequest(input)) {
|
|
744
|
-
return {
|
|
745
|
-
...input,
|
|
746
|
-
basePath: input.basePath || path.dirname(input.url)
|
|
747
|
-
};
|
|
748
|
-
}
|
|
749
|
-
return {
|
|
750
|
-
url: input.url,
|
|
751
|
-
loader: input.loader,
|
|
752
|
-
basePath: input.basePath || path.dirname(input.url),
|
|
753
|
-
resolver: input.resolver,
|
|
754
|
-
coreApi: input.coreApi
|
|
755
|
-
};
|
|
756
|
-
}
|
|
757
|
-
/** Adds a nested CRS descriptor to each header without changing its native placement. */
|
|
758
|
-
function addNestedSpatialReference(nestedTileset, spatialReference) {
|
|
759
|
-
const addToHeader = (header) => ({
|
|
760
|
-
...header,
|
|
761
|
-
_spatialReference: spatialReference,
|
|
762
|
-
children: Array.isArray(header.children) ? header.children.map(addToHeader) : header.children
|
|
763
|
-
});
|
|
764
|
-
return {
|
|
765
|
-
...nestedTileset,
|
|
766
|
-
spatialMetadata: spatialReference,
|
|
767
|
-
root: addToHeader(nestedTileset.root)
|
|
768
|
-
};
|
|
769
|
-
}
|
|
770
|
-
//# sourceMappingURL=tiles-3d-source.js.map
|