@deck.gl/carto 8.8.14 → 8.8.15

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.
Files changed (86) hide show
  1. package/dist/dist.dev.js +42646 -42530
  2. package/dist/es5/api/layer-map.js +24 -11
  3. package/dist/es5/api/layer-map.js.map +1 -1
  4. package/dist/es5/api/maps-v3-client.js +2 -0
  5. package/dist/es5/api/maps-v3-client.js.map +1 -1
  6. package/dist/es5/api/parseMap.js +57 -19
  7. package/dist/es5/api/parseMap.js.map +1 -1
  8. package/dist/es5/index.js +0 -20
  9. package/dist/es5/index.js.map +1 -1
  10. package/dist/es5/layers/carto-layer.js +19 -2
  11. package/dist/es5/layers/carto-layer.js.map +1 -1
  12. package/dist/es5/layers/h3-tile-layer.js +10 -1
  13. package/dist/es5/layers/h3-tile-layer.js.map +1 -1
  14. package/dist/es5/layers/quadbin-layer.js.map +1 -1
  15. package/dist/es5/layers/quadbin-tile-layer.js +10 -1
  16. package/dist/es5/layers/quadbin-tile-layer.js.map +1 -1
  17. package/dist/es5/layers/quadbin-tileset-2d.js +13 -11
  18. package/dist/es5/layers/quadbin-tileset-2d.js.map +1 -1
  19. package/dist/es5/layers/quadbin-utils.js +6 -82
  20. package/dist/es5/layers/quadbin-utils.js.map +1 -1
  21. package/dist/es5/layers/schema/carto-spatial-tile-loader.js +10 -2
  22. package/dist/es5/layers/schema/carto-spatial-tile-loader.js.map +1 -1
  23. package/dist/es5/layers/schema/spatialjson-utils.js +4 -3
  24. package/dist/es5/layers/schema/spatialjson-utils.js.map +1 -1
  25. package/dist/esm/api/layer-map.js +13 -2
  26. package/dist/esm/api/layer-map.js.map +1 -1
  27. package/dist/esm/api/maps-v3-client.js +2 -0
  28. package/dist/esm/api/maps-v3-client.js.map +1 -1
  29. package/dist/esm/api/parseMap.js +64 -20
  30. package/dist/esm/api/parseMap.js.map +1 -1
  31. package/dist/esm/index.js +0 -1
  32. package/dist/esm/index.js.map +1 -1
  33. package/dist/esm/layers/carto-layer.js +18 -0
  34. package/dist/esm/layers/carto-layer.js.map +1 -1
  35. package/dist/esm/layers/h3-tile-layer.js +6 -1
  36. package/dist/esm/layers/h3-tile-layer.js.map +1 -1
  37. package/dist/esm/layers/quadbin-layer.js.map +1 -1
  38. package/dist/esm/layers/quadbin-tile-layer.js +6 -1
  39. package/dist/esm/layers/quadbin-tile-layer.js.map +1 -1
  40. package/dist/esm/layers/quadbin-tileset-2d.js +12 -10
  41. package/dist/esm/layers/quadbin-tileset-2d.js.map +1 -1
  42. package/dist/esm/layers/quadbin-utils.js +2 -67
  43. package/dist/esm/layers/quadbin-utils.js.map +1 -1
  44. package/dist/esm/layers/schema/carto-spatial-tile-loader.js +10 -2
  45. package/dist/esm/layers/schema/carto-spatial-tile-loader.js.map +1 -1
  46. package/dist/esm/layers/schema/spatialjson-utils.js +4 -3
  47. package/dist/esm/layers/schema/spatialjson-utils.js.map +1 -1
  48. package/dist.min.js +4 -4
  49. package/package.json +9 -8
  50. package/src/api/layer-map.ts +14 -5
  51. package/src/api/maps-v3-client.ts +2 -0
  52. package/src/api/parseMap.ts +39 -22
  53. package/src/index.ts +0 -5
  54. package/src/layers/carto-layer.ts +9 -2
  55. package/src/layers/h3-tile-layer.ts +7 -1
  56. package/src/layers/quadbin-layer.ts +1 -1
  57. package/src/layers/quadbin-tile-layer.ts +7 -1
  58. package/src/layers/quadbin-tileset-2d.ts +14 -12
  59. package/src/layers/quadbin-utils.ts +4 -85
  60. package/src/layers/schema/carto-spatial-tile-loader.ts +9 -3
  61. package/src/layers/schema/spatialjson-utils.ts +4 -4
  62. package/typed/api/layer-map.d.ts +5 -1
  63. package/typed/api/layer-map.d.ts.map +1 -1
  64. package/typed/api/maps-v3-client.d.ts +1 -0
  65. package/typed/api/maps-v3-client.d.ts.map +1 -1
  66. package/typed/api/parseMap.d.ts +1 -0
  67. package/typed/api/parseMap.d.ts.map +1 -1
  68. package/typed/index.d.ts +0 -1
  69. package/typed/index.d.ts.map +1 -1
  70. package/typed/layers/carto-layer.d.ts.map +1 -1
  71. package/typed/layers/h3-tile-layer.d.ts.map +1 -1
  72. package/typed/layers/quadbin-layer.d.ts +1 -1
  73. package/typed/layers/quadbin-tile-layer.d.ts.map +1 -1
  74. package/typed/layers/quadbin-tileset-2d.d.ts +6 -5
  75. package/typed/layers/quadbin-tileset-2d.d.ts.map +1 -1
  76. package/typed/layers/quadbin-utils.d.ts +2 -12
  77. package/typed/layers/quadbin-utils.d.ts.map +1 -1
  78. package/typed/layers/quadkey-tile-layer.d.ts +21 -0
  79. package/typed/layers/quadkey-tile-layer.d.ts.map +1 -0
  80. package/typed/layers/quadkey-tileset-2d.d.ts +15 -0
  81. package/typed/layers/quadkey-tileset-2d.d.ts.map +1 -0
  82. package/typed/layers/schema/carto-spa-tile.d.ts +57 -0
  83. package/typed/layers/schema/carto-spa-tile.d.ts.map +1 -0
  84. package/typed/layers/schema/carto-spatial-tile-loader.d.ts.map +1 -1
  85. package/typed/layers/schema/spatialjson-utils.d.ts +1 -1
  86. package/typed/layers/schema/spatialjson-utils.d.ts.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/layers/schema/spatialjson-utils.ts"],"names":["bigIntToIndex","binaryToSpatialjson","binary","cells","count","indices","value","length","spatial","i","id","properties","key","Object","keys","numericProps","push"],"mappings":"AAAA,SAAQA,aAAR,QAA4B,kBAA5B;AAmBA,OAAO,SAASC,mBAAT,CAA6BC,MAA7B,EAAiE;AACtE,QAAM;AAACC,IAAAA;AAAD,MAAUD,MAAhB;AACA,QAAME,KAAK,GAAGD,KAAK,CAACE,OAAN,CAAcC,KAAd,CAAoBC,MAAlC;AACA,QAAMC,OAAc,GAAG,EAAvB;;AACA,OAAK,IAAIC,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGL,KAApB,EAA2BK,CAAC,EAA5B,EAAgC;AAC9B,UAAMC,EAAE,GAAGV,aAAa,CAACG,KAAK,CAACE,OAAN,CAAcC,KAAd,CAAoBG,CAApB,CAAD,CAAxB;AAEA,UAAME,UAAU,GAAG,EAAC,GAAGR,KAAK,CAACQ,UAAN,CAAiBF,CAAjB;AAAJ,KAAnB;;AACA,SAAK,MAAMG,GAAX,IAAkBC,MAAM,CAACC,IAAP,CAAYX,KAAK,CAACY,YAAlB,CAAlB,EAAmD;AACjDJ,MAAAA,UAAU,CAACC,GAAD,CAAV,GAAkBT,KAAK,CAACY,YAAN,CAAmBH,GAAnB,EAAwBN,KAAxB,CAA8BG,CAA9B,CAAlB;AACD;;AACDD,IAAAA,OAAO,CAACQ,IAAR,CAAa;AAACN,MAAAA,EAAD;AAAKC,MAAAA;AAAL,KAAb;AACD;;AAED,SAAOH,OAAP;AACD","sourcesContent":["import {bigIntToIndex} from '../quadbin-utils';\n\nexport type IndexScheme = 'h3' | 'quadbin';\ntype TypedArray = Float32Array | Float64Array;\n\nexport type Indices = {value: BigUint64Array};\nexport type NumericProps = Record<string, {value: number[] | TypedArray}>;\nexport type Properties = Record<string, string | number | boolean | null>;\nexport type Cells = {\n indices: Indices;\n numericProps: NumericProps;\n properties: Properties[];\n};\nexport type SpatialBinary = {scheme?: IndexScheme; cells: Cells};\nexport type SpatialJson = {\n id: string;\n properties: Properties;\n}[];\n\nexport function binaryToSpatialjson(binary: SpatialBinary): SpatialJson {\n const {cells} = binary;\n const count = cells.indices.value.length;\n const spatial: any[] = [];\n for (let i = 0; i < count; i++) {\n const id = bigIntToIndex(cells.indices.value[i]);\n\n const properties = {...cells.properties[i]};\n for (const key of Object.keys(cells.numericProps)) {\n properties[key] = cells.numericProps[key].value[i];\n }\n spatial.push({id, properties});\n }\n\n return spatial;\n}\n"],"file":"spatialjson-utils.js"}
1
+ {"version":3,"sources":["../../../../src/layers/schema/spatialjson-utils.ts"],"names":["bigIntToHex","binaryToSpatialjson","binary","cells","scheme","count","indices","value","length","spatial","i","id","properties","key","Object","keys","numericProps","push"],"mappings":"AAAA,SAAQA,WAAR,QAA0B,SAA1B;AAmBA,OAAO,SAASC,mBAAT,CAA6BC,MAA7B,EAAiE;AACtE,QAAM;AAACC,IAAAA,KAAD;AAAQC,IAAAA;AAAR,MAAkBF,MAAxB;AACA,QAAMG,KAAK,GAAGF,KAAK,CAACG,OAAN,CAAcC,KAAd,CAAoBC,MAAlC;AACA,QAAMC,OAAc,GAAG,EAAvB;;AACA,OAAK,IAAIC,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGL,KAApB,EAA2BK,CAAC,EAA5B,EAAgC;AAC9B,UAAMC,EAAE,GAAGP,MAAM,KAAK,IAAX,GAAkBJ,WAAW,CAACG,KAAK,CAACG,OAAN,CAAcC,KAAd,CAAoBG,CAApB,CAAD,CAA7B,GAAwDP,KAAK,CAACG,OAAN,CAAcC,KAAd,CAAoBG,CAApB,CAAnE;AAEA,UAAME,UAAU,GAAG,EAAC,GAAGT,KAAK,CAACS,UAAN,CAAiBF,CAAjB;AAAJ,KAAnB;;AACA,SAAK,MAAMG,GAAX,IAAkBC,MAAM,CAACC,IAAP,CAAYZ,KAAK,CAACa,YAAlB,CAAlB,EAAmD;AACjDJ,MAAAA,UAAU,CAACC,GAAD,CAAV,GAAkBV,KAAK,CAACa,YAAN,CAAmBH,GAAnB,EAAwBN,KAAxB,CAA8BG,CAA9B,CAAlB;AACD;;AACDD,IAAAA,OAAO,CAACQ,IAAR,CAAa;AAACN,MAAAA,EAAD;AAAKC,MAAAA;AAAL,KAAb;AACD;;AAED,SAAOH,OAAP;AACD","sourcesContent":["import {bigIntToHex} from 'quadbin';\n\nexport type IndexScheme = 'h3' | 'quadbin';\ntype TypedArray = Float32Array | Float64Array;\n\nexport type Indices = {value: BigUint64Array};\nexport type NumericProps = Record<string, {value: number[] | TypedArray}>;\nexport type Properties = Record<string, string | number | boolean | null>;\nexport type Cells = {\n indices: Indices;\n numericProps: NumericProps;\n properties: Properties[];\n};\nexport type SpatialBinary = {scheme?: IndexScheme; cells: Cells};\nexport type SpatialJson = {\n id: string | bigint;\n properties: Properties;\n}[];\n\nexport function binaryToSpatialjson(binary: SpatialBinary): SpatialJson {\n const {cells, scheme} = binary;\n const count = cells.indices.value.length;\n const spatial: any[] = [];\n for (let i = 0; i < count; i++) {\n const id = scheme === 'h3' ? bigIntToHex(cells.indices.value[i]) : cells.indices.value[i];\n\n const properties = {...cells.properties[i]};\n for (const key of Object.keys(cells.numericProps)) {\n properties[key] = cells.numericProps[key].value[i];\n }\n spatial.push({id, properties});\n }\n\n return spatial;\n}\n"],"file":"spatialjson-utils.js"}