@deck.gl/carto 8.10.0-alpha.7 → 9.0.0-alpha.4

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 (365) hide show
  1. package/dist/cartoRasterTile-worker.js +32 -24
  2. package/dist/cartoSpatialTile-worker.js +32 -24
  3. package/dist/cartoVectorTile-worker.js +69 -63
  4. package/dist/dist.dev.js +12061 -12560
  5. package/dist/es5/api/carto-api-error.js.map +1 -1
  6. package/dist/es5/api/common.js +25 -0
  7. package/dist/es5/api/common.js.map +1 -0
  8. package/dist/es5/api/endpoints.js +40 -0
  9. package/dist/es5/api/endpoints.js.map +1 -0
  10. package/dist/es5/api/fetch-map.js +568 -0
  11. package/dist/es5/api/fetch-map.js.map +1 -0
  12. package/dist/es5/api/index.js +5 -49
  13. package/dist/es5/api/index.js.map +1 -1
  14. package/dist/es5/api/layer-map.js +43 -45
  15. package/dist/es5/api/layer-map.js.map +1 -1
  16. package/dist/es5/api/{parseMap.js → parse-map.js} +5 -3
  17. package/dist/es5/api/parse-map.js.map +1 -0
  18. package/dist/es5/api/query.js +78 -0
  19. package/dist/es5/api/query.js.map +1 -0
  20. package/dist/es5/{sources/utils.js → api/request-with-parameters.js} +60 -46
  21. package/dist/es5/api/request-with-parameters.js.map +1 -0
  22. package/dist/es5/api/types.js +19 -0
  23. package/dist/es5/api/types.js.map +1 -1
  24. package/dist/es5/index.js +66 -80
  25. package/dist/es5/index.js.map +1 -1
  26. package/dist/es5/layers/h3-tile-layer.js +3 -5
  27. package/dist/es5/layers/h3-tile-layer.js.map +1 -1
  28. package/dist/es5/layers/point-label-layer.js.map +1 -1
  29. package/dist/es5/layers/quadbin-layer.js.map +1 -1
  30. package/dist/es5/layers/quadbin-tile-layer.js +1 -4
  31. package/dist/es5/layers/quadbin-tile-layer.js.map +1 -1
  32. package/dist/es5/layers/raster-layer.js +2 -0
  33. package/dist/es5/layers/raster-layer.js.map +1 -1
  34. package/dist/es5/layers/raster-tile-layer.js +1 -3
  35. package/dist/es5/layers/raster-tile-layer.js.map +1 -1
  36. package/dist/es5/layers/schema/carto-properties-tile-loader.js +60 -0
  37. package/dist/es5/layers/schema/carto-properties-tile-loader.js.map +1 -0
  38. package/dist/es5/layers/schema/carto-properties-tile.js +38 -0
  39. package/dist/es5/layers/schema/carto-properties-tile.js.map +1 -0
  40. package/dist/es5/layers/schema/carto-raster-tile-loader.js +1 -1
  41. package/dist/es5/layers/schema/carto-raster-tile-loader.js.map +1 -1
  42. package/dist/es5/layers/schema/carto-spatial-tile-loader.js +1 -1
  43. package/dist/es5/layers/schema/carto-spatial-tile-loader.js.map +1 -1
  44. package/dist/es5/layers/schema/carto-vector-tile-loader.js +1 -2
  45. package/dist/es5/layers/schema/carto-vector-tile-loader.js.map +1 -1
  46. package/dist/es5/layers/spatial-index-tile-layer.js +16 -26
  47. package/dist/es5/layers/spatial-index-tile-layer.js.map +1 -1
  48. package/dist/es5/layers/utils.js +102 -0
  49. package/dist/es5/layers/utils.js.map +1 -1
  50. package/dist/es5/layers/vector-tile-layer.js +112 -27
  51. package/dist/es5/layers/vector-tile-layer.js.map +1 -1
  52. package/dist/es5/sources/base-source.js +56 -28
  53. package/dist/es5/sources/base-source.js.map +1 -1
  54. package/dist/es5/sources/boundary-query-source.js +51 -0
  55. package/dist/es5/sources/boundary-query-source.js.map +1 -0
  56. package/dist/es5/sources/boundary-table-source.js +51 -0
  57. package/dist/es5/sources/boundary-table-source.js.map +1 -0
  58. package/dist/es5/sources/boundary-tileset-source.js +43 -0
  59. package/dist/es5/sources/boundary-tileset-source.js.map +1 -0
  60. package/dist/es5/sources/h3-query-source.js +9 -11
  61. package/dist/es5/sources/h3-query-source.js.map +1 -1
  62. package/dist/es5/sources/h3-table-source.js +10 -12
  63. package/dist/es5/sources/h3-table-source.js.map +1 -1
  64. package/dist/es5/sources/h3-tileset-source.js +5 -5
  65. package/dist/es5/sources/h3-tileset-source.js.map +1 -1
  66. package/dist/es5/sources/index.js +46 -22
  67. package/dist/es5/sources/index.js.map +1 -1
  68. package/dist/es5/sources/quadbin-query-source.js +10 -12
  69. package/dist/es5/sources/quadbin-query-source.js.map +1 -1
  70. package/dist/es5/sources/quadbin-table-source.js +10 -12
  71. package/dist/es5/sources/quadbin-table-source.js.map +1 -1
  72. package/dist/es5/sources/quadbin-tileset-source.js +5 -5
  73. package/dist/es5/sources/quadbin-tileset-source.js.map +1 -1
  74. package/dist/es5/sources/raster-source.js +5 -5
  75. package/dist/es5/sources/raster-source.js.map +1 -1
  76. package/dist/es5/sources/types.js +2 -0
  77. package/dist/es5/sources/types.js.map +1 -0
  78. package/dist/es5/sources/vector-query-source.js +11 -12
  79. package/dist/es5/sources/vector-query-source.js.map +1 -1
  80. package/dist/es5/sources/vector-table-source.js +12 -13
  81. package/dist/es5/sources/vector-table-source.js.map +1 -1
  82. package/dist/es5/sources/vector-tileset-source.js +5 -5
  83. package/dist/es5/sources/vector-tileset-source.js.map +1 -1
  84. package/dist/es5/style/color-bins-style.js +4 -2
  85. package/dist/es5/style/color-bins-style.js.map +1 -1
  86. package/dist/es5/style/color-categories-style.js +4 -2
  87. package/dist/es5/style/color-categories-style.js.map +1 -1
  88. package/dist/es5/style/color-continuous-style.js +4 -2
  89. package/dist/es5/style/color-continuous-style.js.map +1 -1
  90. package/dist/es5/style/palette.js +1 -1
  91. package/dist/es5/style/palette.js.map +1 -1
  92. package/dist/es5/style/utils.js +4 -11
  93. package/dist/es5/style/utils.js.map +1 -1
  94. package/dist/es5/utils.js +30 -1
  95. package/dist/es5/utils.js.map +1 -1
  96. package/dist/esm/api/carto-api-error.js.map +1 -1
  97. package/dist/esm/api/common.js +13 -0
  98. package/dist/esm/api/common.js.map +1 -0
  99. package/dist/esm/api/endpoints.js +28 -0
  100. package/dist/esm/api/endpoints.js.map +1 -0
  101. package/dist/esm/api/fetch-map.js +300 -0
  102. package/dist/esm/api/fetch-map.js.map +1 -0
  103. package/dist/esm/api/index.js +2 -3
  104. package/dist/esm/api/index.js.map +1 -1
  105. package/dist/esm/api/layer-map.js +43 -35
  106. package/dist/esm/api/layer-map.js.map +1 -1
  107. package/dist/esm/api/{parseMap.js → parse-map.js} +3 -2
  108. package/dist/esm/api/parse-map.js.map +1 -0
  109. package/dist/esm/api/query.js +38 -0
  110. package/dist/esm/api/query.js.map +1 -0
  111. package/dist/esm/{sources/utils.js → api/request-with-parameters.js} +25 -12
  112. package/dist/esm/api/request-with-parameters.js.map +1 -0
  113. package/dist/esm/api/types.js +13 -1
  114. package/dist/esm/api/types.js.map +1 -1
  115. package/dist/esm/index.js +31 -9
  116. package/dist/esm/index.js.map +1 -1
  117. package/dist/esm/layers/h3-tile-layer.js +2 -6
  118. package/dist/esm/layers/h3-tile-layer.js.map +1 -1
  119. package/dist/esm/layers/point-label-layer.js.map +1 -1
  120. package/dist/esm/layers/quadbin-layer.js.map +1 -1
  121. package/dist/esm/layers/quadbin-tile-layer.js +1 -3
  122. package/dist/esm/layers/quadbin-tile-layer.js.map +1 -1
  123. package/dist/esm/layers/raster-layer.js +1 -0
  124. package/dist/esm/layers/raster-layer.js.map +1 -1
  125. package/dist/esm/layers/raster-tile-layer.js +1 -2
  126. package/dist/esm/layers/raster-tile-layer.js.map +1 -1
  127. package/dist/esm/layers/schema/carto-properties-tile-loader.js +23 -0
  128. package/dist/esm/layers/schema/carto-properties-tile-loader.js.map +1 -0
  129. package/dist/esm/layers/schema/carto-properties-tile.js +18 -0
  130. package/dist/esm/layers/schema/carto-properties-tile.js.map +1 -0
  131. package/dist/esm/layers/schema/carto-raster-tile-loader.js +1 -1
  132. package/dist/esm/layers/schema/carto-raster-tile-loader.js.map +1 -1
  133. package/dist/esm/layers/schema/carto-spatial-tile-loader.js +1 -1
  134. package/dist/esm/layers/schema/carto-spatial-tile-loader.js.map +1 -1
  135. package/dist/esm/layers/schema/carto-vector-tile-loader.js +1 -2
  136. package/dist/esm/layers/schema/carto-vector-tile-loader.js.map +1 -1
  137. package/dist/esm/layers/spatial-index-tile-layer.js +9 -24
  138. package/dist/esm/layers/spatial-index-tile-layer.js.map +1 -1
  139. package/dist/esm/layers/utils.js +71 -0
  140. package/dist/esm/layers/utils.js.map +1 -1
  141. package/dist/esm/layers/vector-tile-layer.js +40 -12
  142. package/dist/esm/layers/vector-tile-layer.js.map +1 -1
  143. package/dist/esm/sources/base-source.js +33 -10
  144. package/dist/esm/sources/base-source.js.map +1 -1
  145. package/dist/esm/sources/boundary-query-source.js +21 -0
  146. package/dist/esm/sources/boundary-query-source.js.map +1 -0
  147. package/dist/esm/sources/boundary-table-source.js +21 -0
  148. package/dist/esm/sources/boundary-table-source.js.map +1 -0
  149. package/dist/esm/sources/boundary-tileset-source.js +11 -0
  150. package/dist/esm/sources/boundary-tileset-source.js.map +1 -0
  151. package/dist/esm/sources/h3-query-source.js +6 -11
  152. package/dist/esm/sources/h3-query-source.js.map +1 -1
  153. package/dist/esm/sources/h3-table-source.js +7 -12
  154. package/dist/esm/sources/h3-table-source.js.map +1 -1
  155. package/dist/esm/sources/h3-tileset-source.js +3 -6
  156. package/dist/esm/sources/h3-tileset-source.js.map +1 -1
  157. package/dist/esm/sources/index.js +14 -11
  158. package/dist/esm/sources/index.js.map +1 -1
  159. package/dist/esm/sources/quadbin-query-source.js +7 -12
  160. package/dist/esm/sources/quadbin-query-source.js.map +1 -1
  161. package/dist/esm/sources/quadbin-table-source.js +7 -12
  162. package/dist/esm/sources/quadbin-table-source.js.map +1 -1
  163. package/dist/esm/sources/quadbin-tileset-source.js +3 -6
  164. package/dist/esm/sources/quadbin-tileset-source.js.map +1 -1
  165. package/dist/esm/sources/raster-source.js +3 -6
  166. package/dist/esm/sources/raster-source.js.map +1 -1
  167. package/dist/esm/sources/types.js +2 -0
  168. package/dist/esm/sources/types.js.map +1 -0
  169. package/dist/esm/sources/vector-query-source.js +6 -11
  170. package/dist/esm/sources/vector-query-source.js.map +1 -1
  171. package/dist/esm/sources/vector-table-source.js +7 -12
  172. package/dist/esm/sources/vector-table-source.js.map +1 -1
  173. package/dist/esm/sources/vector-tileset-source.js +3 -6
  174. package/dist/esm/sources/vector-tileset-source.js.map +1 -1
  175. package/dist/esm/style/color-bins-style.js +2 -1
  176. package/dist/esm/style/color-bins-style.js.map +1 -1
  177. package/dist/esm/style/color-categories-style.js +2 -1
  178. package/dist/esm/style/color-categories-style.js.map +1 -1
  179. package/dist/esm/style/color-continuous-style.js +2 -1
  180. package/dist/esm/style/color-continuous-style.js.map +1 -1
  181. package/dist/esm/style/palette.js +1 -1
  182. package/dist/esm/style/palette.js.map +1 -1
  183. package/dist/esm/style/utils.js +1 -5
  184. package/dist/esm/style/utils.js.map +1 -1
  185. package/dist/esm/utils.js +24 -1
  186. package/dist/esm/utils.js.map +1 -1
  187. package/dist.min.js +42 -41
  188. package/package.json +10 -9
  189. package/src/api/carto-api-error.ts +1 -9
  190. package/src/api/common.ts +14 -0
  191. package/src/api/endpoints.ts +38 -0
  192. package/src/api/fetch-map.ts +294 -0
  193. package/src/api/index.ts +5 -5
  194. package/src/api/layer-map.ts +40 -36
  195. package/src/api/{parseMap.ts → parse-map.ts} +2 -2
  196. package/src/api/query.ts +34 -0
  197. package/src/{sources/utils.ts → api/request-with-parameters.ts} +22 -17
  198. package/src/api/types.ts +49 -0
  199. package/src/index.ts +93 -41
  200. package/src/layers/h3-tile-layer.ts +13 -18
  201. package/src/layers/point-label-layer.ts +1 -1
  202. package/src/layers/quadbin-layer.ts +3 -2
  203. package/src/layers/quadbin-tile-layer.ts +10 -11
  204. package/src/layers/raster-layer.ts +2 -2
  205. package/src/layers/raster-tile-layer.ts +11 -9
  206. package/src/layers/schema/carto-properties-tile-loader.ts +25 -0
  207. package/src/layers/schema/carto-properties-tile.ts +21 -0
  208. package/src/layers/schema/carto-vector-tile-loader.ts +1 -1
  209. package/src/layers/spatial-index-tile-layer.ts +18 -26
  210. package/src/layers/utils.ts +73 -0
  211. package/src/layers/vector-tile-layer.ts +40 -21
  212. package/src/sources/base-source.ts +35 -18
  213. package/src/sources/boundary-query-source.ts +31 -0
  214. package/src/sources/boundary-table-source.ts +31 -0
  215. package/src/sources/boundary-tileset-source.ts +14 -0
  216. package/src/sources/h3-query-source.ts +22 -22
  217. package/src/sources/h3-table-source.ts +22 -22
  218. package/src/sources/h3-tileset-source.ts +7 -9
  219. package/src/sources/index.ts +31 -22
  220. package/src/sources/quadbin-query-source.ts +22 -22
  221. package/src/sources/quadbin-table-source.ts +23 -22
  222. package/src/sources/quadbin-tileset-source.ts +7 -9
  223. package/src/sources/raster-source.ts +5 -9
  224. package/src/sources/types.ts +98 -0
  225. package/src/sources/vector-query-source.ts +15 -15
  226. package/src/sources/vector-table-source.ts +15 -15
  227. package/src/sources/vector-tileset-source.ts +7 -9
  228. package/src/style/color-bins-style.ts +2 -1
  229. package/src/style/color-categories-style.ts +2 -1
  230. package/src/style/color-continuous-style.ts +2 -1
  231. package/src/style/palette.ts +1 -1
  232. package/src/style/utils.ts +1 -6
  233. package/src/utils.ts +25 -1
  234. package/typed/api/carto-api-error.d.ts +1 -8
  235. package/typed/api/carto-api-error.d.ts.map +1 -1
  236. package/typed/api/common.d.ts +13 -0
  237. package/typed/api/common.d.ts.map +1 -0
  238. package/typed/api/endpoints.d.ts +12 -0
  239. package/typed/api/endpoints.d.ts.map +1 -0
  240. package/typed/api/fetch-map.d.ts +22 -0
  241. package/typed/api/fetch-map.d.ts.map +1 -0
  242. package/typed/api/index.d.ts +5 -5
  243. package/typed/api/index.d.ts.map +1 -1
  244. package/typed/api/layer-map.d.ts +6 -9
  245. package/typed/api/layer-map.d.ts.map +1 -1
  246. package/typed/api/{parseMap.d.ts → parse-map.d.ts} +1 -1
  247. package/typed/api/parse-map.d.ts.map +1 -0
  248. package/typed/api/query.d.ts +4 -0
  249. package/typed/api/query.d.ts.map +1 -0
  250. package/typed/api/request-with-parameters.d.ts +9 -0
  251. package/typed/api/request-with-parameters.d.ts.map +1 -0
  252. package/typed/api/types.d.ts +40 -0
  253. package/typed/api/types.d.ts.map +1 -1
  254. package/typed/index.d.ts +33 -12
  255. package/typed/index.d.ts.map +1 -1
  256. package/typed/layers/h3-tile-layer.d.ts +12 -7
  257. package/typed/layers/h3-tile-layer.d.ts.map +1 -1
  258. package/typed/layers/point-label-layer.d.ts +2 -2
  259. package/typed/layers/point-label-layer.d.ts.map +1 -1
  260. package/typed/layers/quadbin-layer.d.ts +2 -2
  261. package/typed/layers/quadbin-layer.d.ts.map +1 -1
  262. package/typed/layers/quadbin-tile-layer.d.ts +6 -6
  263. package/typed/layers/quadbin-tile-layer.d.ts.map +1 -1
  264. package/typed/layers/raster-layer.d.ts +2 -2
  265. package/typed/layers/raster-layer.d.ts.map +1 -1
  266. package/typed/layers/raster-tile-layer.d.ts +6 -5
  267. package/typed/layers/raster-tile-layer.d.ts.map +1 -1
  268. package/typed/layers/schema/carto-properties-tile-loader.d.ts +4 -0
  269. package/typed/layers/schema/carto-properties-tile-loader.d.ts.map +1 -0
  270. package/typed/layers/schema/carto-properties-tile.d.ts +10 -0
  271. package/typed/layers/schema/carto-properties-tile.d.ts.map +1 -0
  272. package/typed/layers/spatial-index-tile-layer.d.ts +10 -9
  273. package/typed/layers/spatial-index-tile-layer.d.ts.map +1 -1
  274. package/typed/layers/utils.d.ts +11 -0
  275. package/typed/layers/utils.d.ts.map +1 -1
  276. package/typed/layers/vector-tile-layer.d.ts +6 -11
  277. package/typed/layers/vector-tile-layer.d.ts.map +1 -1
  278. package/typed/sources/base-source.d.ts +4 -3
  279. package/typed/sources/base-source.d.ts.map +1 -1
  280. package/typed/sources/boundary-query-source.d.ts +10 -0
  281. package/typed/sources/boundary-query-source.d.ts.map +1 -0
  282. package/typed/sources/boundary-table-source.d.ts +9 -0
  283. package/typed/sources/boundary-table-source.d.ts.map +1 -0
  284. package/typed/sources/boundary-tileset-source.d.ts +6 -0
  285. package/typed/sources/boundary-tileset-source.d.ts.map +1 -0
  286. package/typed/sources/h3-query-source.d.ts +3 -4
  287. package/typed/sources/h3-query-source.d.ts.map +1 -1
  288. package/typed/sources/h3-table-source.d.ts +3 -4
  289. package/typed/sources/h3-table-source.d.ts.map +1 -1
  290. package/typed/sources/h3-tileset-source.d.ts +3 -4
  291. package/typed/sources/h3-tileset-source.d.ts.map +1 -1
  292. package/typed/sources/index.d.ts +28 -22
  293. package/typed/sources/index.d.ts.map +1 -1
  294. package/typed/sources/quadbin-query-source.d.ts +3 -4
  295. package/typed/sources/quadbin-query-source.d.ts.map +1 -1
  296. package/typed/sources/quadbin-table-source.d.ts +3 -4
  297. package/typed/sources/quadbin-table-source.d.ts.map +1 -1
  298. package/typed/sources/quadbin-tileset-source.d.ts +3 -4
  299. package/typed/sources/quadbin-tileset-source.d.ts.map +1 -1
  300. package/typed/sources/raster-source.d.ts +3 -4
  301. package/typed/sources/raster-source.d.ts.map +1 -1
  302. package/typed/sources/{common.d.ts → types.d.ts} +26 -42
  303. package/typed/sources/types.d.ts.map +1 -0
  304. package/typed/sources/vector-query-source.d.ts +3 -4
  305. package/typed/sources/vector-query-source.d.ts.map +1 -1
  306. package/typed/sources/vector-table-source.d.ts +3 -4
  307. package/typed/sources/vector-table-source.d.ts.map +1 -1
  308. package/typed/sources/vector-tileset-source.d.ts +3 -4
  309. package/typed/sources/vector-tileset-source.d.ts.map +1 -1
  310. package/typed/style/color-bins-style.d.ts.map +1 -1
  311. package/typed/style/color-categories-style.d.ts.map +1 -1
  312. package/typed/style/color-continuous-style.d.ts.map +1 -1
  313. package/typed/style/utils.d.ts +0 -1
  314. package/typed/style/utils.d.ts.map +1 -1
  315. package/typed/utils.d.ts +8 -0
  316. package/typed/utils.d.ts.map +1 -1
  317. package/LICENSE +0 -19
  318. package/dist/es5/api/maps-api-common.js +0 -77
  319. package/dist/es5/api/maps-api-common.js.map +0 -1
  320. package/dist/es5/api/maps-client.js +0 -220
  321. package/dist/es5/api/maps-client.js.map +0 -1
  322. package/dist/es5/api/maps-v3-client.js +0 -959
  323. package/dist/es5/api/maps-v3-client.js.map +0 -1
  324. package/dist/es5/api/parseMap.js.map +0 -1
  325. package/dist/es5/config.js +0 -84
  326. package/dist/es5/config.js.map +0 -1
  327. package/dist/es5/layers/carto-layer.js +0 -329
  328. package/dist/es5/layers/carto-layer.js.map +0 -1
  329. package/dist/es5/sources/common.js +0 -48
  330. package/dist/es5/sources/common.js.map +0 -1
  331. package/dist/es5/sources/utils.js.map +0 -1
  332. package/dist/esm/api/maps-api-common.js +0 -54
  333. package/dist/esm/api/maps-api-common.js.map +0 -1
  334. package/dist/esm/api/maps-client.js +0 -148
  335. package/dist/esm/api/maps-client.js.map +0 -1
  336. package/dist/esm/api/maps-v3-client.js +0 -638
  337. package/dist/esm/api/maps-v3-client.js.map +0 -1
  338. package/dist/esm/api/parseMap.js.map +0 -1
  339. package/dist/esm/config.js +0 -60
  340. package/dist/esm/config.js.map +0 -1
  341. package/dist/esm/layers/carto-layer.js +0 -233
  342. package/dist/esm/layers/carto-layer.js.map +0 -1
  343. package/dist/esm/sources/common.js +0 -26
  344. package/dist/esm/sources/common.js.map +0 -1
  345. package/dist/esm/sources/utils.js.map +0 -1
  346. package/src/api/maps-api-common.ts +0 -95
  347. package/src/api/maps-client.ts +0 -196
  348. package/src/api/maps-v3-client.ts +0 -659
  349. package/src/config.ts +0 -70
  350. package/src/layers/carto-layer.ts +0 -340
  351. package/src/sources/common.ts +0 -132
  352. package/typed/api/maps-api-common.d.ts +0 -76
  353. package/typed/api/maps-api-common.d.ts.map +0 -1
  354. package/typed/api/maps-client.d.ts +0 -18
  355. package/typed/api/maps-client.d.ts.map +0 -1
  356. package/typed/api/maps-v3-client.d.ts +0 -49
  357. package/typed/api/maps-v3-client.d.ts.map +0 -1
  358. package/typed/api/parseMap.d.ts.map +0 -1
  359. package/typed/config.d.ts +0 -28
  360. package/typed/config.d.ts.map +0 -1
  361. package/typed/layers/carto-layer.d.ts +0 -126
  362. package/typed/layers/carto-layer.d.ts.map +0 -1
  363. package/typed/sources/common.d.ts.map +0 -1
  364. package/typed/sources/utils.d.ts +0 -15
  365. package/typed/sources/utils.d.ts.map +0 -1
@@ -1,16 +1,14 @@
1
- import {cartoBaseSource} from './base-source';
2
- import {CartoSourceOptions, CartoTilesetSourceOptions, TilejsonSource} from './common';
1
+ import {baseSource} from './base-source';
2
+ import type {SourceOptions, TilejsonResult, TilesetSourceOptions} from './types';
3
3
 
4
- export type CartoQuadbinTilesetSourceOptions = CartoSourceOptions & CartoTilesetSourceOptions;
4
+ export type QuadbinTilesetSourceOptions = SourceOptions & TilesetSourceOptions;
5
5
  type UrlParameters = {name: string};
6
6
 
7
- const cartoQuadbinTilesetSource: TilejsonSource<CartoQuadbinTilesetSourceOptions> = async function (
8
- options: CartoQuadbinTilesetSourceOptions
9
- ): Promise<any> {
7
+ export const quadbinTilesetSource = async function (
8
+ options: QuadbinTilesetSourceOptions
9
+ ): Promise<TilejsonResult> {
10
10
  const {tableName} = options;
11
11
  const urlParameters: UrlParameters = {name: tableName};
12
12
 
13
- return cartoBaseSource<UrlParameters>('tileset', options, urlParameters);
13
+ return baseSource<UrlParameters>('tileset', options, urlParameters) as Promise<TilejsonResult>;
14
14
  };
15
-
16
- export {cartoQuadbinTilesetSource};
@@ -1,16 +1,12 @@
1
- import {cartoBaseSource} from './base-source';
2
- import {CartoSourceOptions, CartoTilesetSourceOptions, TypedSource} from './common';
1
+ import {baseSource} from './base-source';
2
+ import type {SourceOptions, TilejsonResult, TilesetSourceOptions} from './types';
3
3
 
4
- export type CartoRasterSourceOptions = CartoSourceOptions & CartoTilesetSourceOptions;
4
+ export type RasterSourceOptions = SourceOptions & TilesetSourceOptions;
5
5
  type UrlParameters = {name: string};
6
6
 
7
- const cartoRasterSource: TypedSource<CartoRasterSourceOptions> = async function (
8
- options: CartoRasterSourceOptions
9
- ): Promise<any> {
7
+ export const rasterSource = async function (options: RasterSourceOptions): Promise<TilejsonResult> {
10
8
  const {tableName} = options;
11
9
  const urlParameters: UrlParameters = {name: tableName};
12
10
 
13
- return cartoBaseSource<UrlParameters>('raster', options, urlParameters);
11
+ return baseSource<UrlParameters>('raster', options, urlParameters) as Promise<TilejsonResult>;
14
12
  };
15
-
16
- export {cartoRasterSource};
@@ -0,0 +1,98 @@
1
+ import type {Feature} from 'geojson';
2
+ import type {Format, MapInstantiation, QueryParameters} from '../api/types';
3
+
4
+ export type SourceRequiredOptions = {
5
+ accessToken: string;
6
+ connectionName: string;
7
+ };
8
+
9
+ export type SourceOptionalOptions = {
10
+ apiBaseUrl: string;
11
+ cache?: {value?: number};
12
+ clientId: string;
13
+ /** @deprecated use `query` instead **/
14
+ format: Format;
15
+ headers: Record<string, string>;
16
+ mapsUrl?: string;
17
+ };
18
+
19
+ export type SourceOptions = SourceRequiredOptions & Partial<SourceOptionalOptions>;
20
+
21
+ export type AggregationOptions = {
22
+ aggregationExp: string;
23
+ aggregationResLevel?: number;
24
+ };
25
+
26
+ export type QuerySourceOptions = {
27
+ spatialDataColumn?: string;
28
+ sqlQuery: string;
29
+ queryParameters?: QueryParameters;
30
+ };
31
+
32
+ export type TableSourceOptions = {
33
+ columns?: string[];
34
+ spatialDataColumn?: string;
35
+ tableName: string;
36
+ };
37
+
38
+ export type TilesetSourceOptions = {
39
+ tableName: string;
40
+ };
41
+
42
+ export type SpatialDataType = 'geo' | 'h3' | 'quadbin';
43
+
44
+ export type TilejsonMapInstantiation = MapInstantiation & {
45
+ tilejson: {url: string[]};
46
+ };
47
+
48
+ export interface Tilejson {
49
+ tilejson: string;
50
+ name: string;
51
+ description: string;
52
+ version: string;
53
+ attribution: string;
54
+ scheme: string;
55
+ tiles: string[];
56
+ properties_tiles: string[];
57
+ minresolution: number;
58
+ maxresolution: number;
59
+ minzoom: number;
60
+ maxzoom: number;
61
+ bounds: [number, number, number, number];
62
+ center: [number, number, number];
63
+ vector_layers: VectorLayer[];
64
+ tilestats: Tilestats;
65
+ }
66
+
67
+ export interface Tilestats {
68
+ layerCount: number;
69
+ layers: Layer[];
70
+ }
71
+
72
+ export interface Layer {
73
+ layer: string;
74
+ count: number;
75
+ attributeCount: number;
76
+ attributes: Attribute[];
77
+ }
78
+
79
+ export interface Attribute {
80
+ attribute: string;
81
+ type: string;
82
+ }
83
+
84
+ export interface VectorLayer {
85
+ id: string;
86
+ minzoom: number;
87
+ maxzoom: number;
88
+ fields: Record<string, string>;
89
+ }
90
+
91
+ export type TilejsonResult = Tilejson & {accessToken: string};
92
+ export type GeojsonResult = {type: 'FeatureCollection'; features: Feature[]};
93
+ export type JsonResult = any[];
94
+ export type QueryResult = {
95
+ meta: {cacheHit: boolean; location: string; totalBytesProcessed: string};
96
+ rows: Record<string, any>[];
97
+ schema: {name: string; type: string}[];
98
+ };
@@ -1,23 +1,23 @@
1
1
  /* eslint-disable camelcase */
2
- import {cartoBaseSource} from './base-source';
3
- import {CartoSourceOptions, CartoQuerySourceOptions, TypedSource} from './common';
2
+ import {baseSource} from './base-source';
3
+ import type {SourceOptions, QuerySourceOptions, SpatialDataType, TilejsonResult} from './types';
4
4
 
5
- export type CartoVectorQuerySourceOptions = CartoSourceOptions & CartoQuerySourceOptions;
6
- type UrlParameters = {geo_column?: string; q: string; queryParameters?: string};
5
+ export type VectorQuerySourceOptions = SourceOptions & QuerySourceOptions;
6
+ type UrlParameters = {
7
+ spatialDataType: SpatialDataType;
8
+ spatialDataColumn?: string;
9
+ q: string;
10
+ queryParameters?: string;
11
+ };
7
12
 
8
- const cartoVectorQuerySource: TypedSource<CartoVectorQuerySourceOptions> = async function (
9
- options: CartoVectorQuerySourceOptions
10
- ): Promise<any> {
11
- const {spatialDataColumn, sqlQuery, queryParameters} = options;
12
- const urlParameters: UrlParameters = {q: sqlQuery};
13
+ export const vectorQuerySource = async function (
14
+ options: VectorQuerySourceOptions
15
+ ): Promise<TilejsonResult> {
16
+ const {spatialDataColumn = 'geom', sqlQuery, queryParameters} = options;
17
+ const urlParameters: UrlParameters = {spatialDataColumn, spatialDataType: 'geo', q: sqlQuery};
13
18
 
14
- if (spatialDataColumn) {
15
- urlParameters.geo_column = spatialDataColumn;
16
- }
17
19
  if (queryParameters) {
18
20
  urlParameters.queryParameters = JSON.stringify(queryParameters);
19
21
  }
20
- return cartoBaseSource<UrlParameters>('query', options, urlParameters);
22
+ return baseSource<UrlParameters>('query', options, urlParameters) as Promise<TilejsonResult>;
21
23
  };
22
-
23
- export {cartoVectorQuerySource};
@@ -1,23 +1,23 @@
1
1
  /* eslint-disable camelcase */
2
- import {cartoBaseSource} from './base-source';
3
- import {CartoSourceOptions, CartoTableSourceOptions, TypedSource} from './common';
2
+ import {baseSource} from './base-source';
3
+ import type {SourceOptions, SpatialDataType, TableSourceOptions, TilejsonResult} from './types';
4
4
 
5
- export type CartoVectorTableSourceOptions = CartoSourceOptions & CartoTableSourceOptions;
6
- type UrlParameters = {columns?: string; geo_column?: string; name: string};
5
+ export type VectorTableSourceOptions = SourceOptions & TableSourceOptions;
6
+ type UrlParameters = {
7
+ columns?: string;
8
+ spatialDataType: SpatialDataType;
9
+ spatialDataColumn?: string;
10
+ name: string;
11
+ };
7
12
 
8
- const cartoVectorTableSource: TypedSource<CartoVectorTableSourceOptions> = async function (
9
- options: CartoVectorTableSourceOptions
10
- ): Promise<any> {
11
- const {columns, spatialDataColumn, tableName} = options;
12
- const urlParameters: UrlParameters = {name: tableName};
13
+ export const vectorTableSource = async function (
14
+ options: VectorTableSourceOptions
15
+ ): Promise<TilejsonResult> {
16
+ const {columns, spatialDataColumn = 'geom', tableName} = options;
17
+ const urlParameters: UrlParameters = {name: tableName, spatialDataColumn, spatialDataType: 'geo'};
13
18
 
14
19
  if (columns) {
15
20
  urlParameters.columns = columns.join(',');
16
21
  }
17
- if (spatialDataColumn) {
18
- urlParameters.geo_column = spatialDataColumn;
19
- }
20
- return cartoBaseSource<UrlParameters>('table', options, urlParameters);
22
+ return baseSource<UrlParameters>('table', options, urlParameters) as Promise<TilejsonResult>;
21
23
  };
22
-
23
- export {cartoVectorTableSource};
@@ -1,16 +1,14 @@
1
- import {cartoBaseSource} from './base-source';
2
- import {CartoSourceOptions, CartoTilesetSourceOptions, TilejsonSource} from './common';
1
+ import {baseSource} from './base-source';
2
+ import type {SourceOptions, TilesetSourceOptions, TilejsonResult} from './types';
3
3
 
4
- export type CartoVectorTilesetSourceOptions = CartoSourceOptions & CartoTilesetSourceOptions;
4
+ export type VectorTilesetSourceOptions = SourceOptions & TilesetSourceOptions;
5
5
  type UrlParameters = {name: string};
6
6
 
7
- const cartoVectorTilesetSource: TilejsonSource<CartoVectorTilesetSourceOptions> = async function (
8
- options: CartoVectorTilesetSourceOptions
9
- ): Promise<any> {
7
+ export const vectorTilesetSource = async function (
8
+ options: VectorTilesetSourceOptions
9
+ ): Promise<TilejsonResult> {
10
10
  const {tableName} = options;
11
11
  const urlParameters: UrlParameters = {name: tableName};
12
12
 
13
- return cartoBaseSource<UrlParameters>('tileset', options, urlParameters);
13
+ return baseSource<UrlParameters>('tileset', options, urlParameters) as Promise<TilejsonResult>;
14
14
  };
15
-
16
- export {cartoVectorTilesetSource};
@@ -2,7 +2,8 @@ import {scaleThreshold} from 'd3-scale';
2
2
  import {AccessorFunction} from '@deck.gl/core';
3
3
  import {Feature} from 'geojson';
4
4
  import getPalette, {Color, DEFAULT_PALETTE, NULL_COLOR} from './palette';
5
- import {assert, AttributeSelector, getAttrValue} from './utils';
5
+ import {assert} from '../utils';
6
+ import {AttributeSelector, getAttrValue} from './utils';
6
7
 
7
8
  /**
8
9
  * Helper function for quickly creating a color bins style based on `d3` `scaleThreshold`.
@@ -1,7 +1,8 @@
1
1
  import {AccessorFunction} from '@deck.gl/core';
2
2
  import {Feature} from 'geojson';
3
3
  import getPalette, {Color, DEFAULT_PALETTE, NULL_COLOR, OTHERS_COLOR} from './palette';
4
- import {assert, AttributeSelector, getAttrValue} from './utils';
4
+ import {assert} from '../utils';
5
+ import {AttributeSelector, getAttrValue} from './utils';
5
6
 
6
7
  /**
7
8
  * Helper function for quickly creating a color category style.
@@ -2,7 +2,8 @@ import {AccessorFunction} from '@deck.gl/core';
2
2
  import {scaleLinear} from 'd3-scale';
3
3
  import {Feature} from 'geojson';
4
4
  import getPalette, {Color, DEFAULT_PALETTE, NULL_COLOR} from './palette';
5
- import {assert, AttributeSelector, getAttrValue} from './utils';
5
+ import {assert} from '../utils';
6
+ import {AttributeSelector, getAttrValue} from './utils';
6
7
 
7
8
  /**
8
9
  * Helper function for quickly creating a color continuous style.
@@ -1,5 +1,5 @@
1
1
  import * as cartoColors from 'cartocolor';
2
- import {assert} from './utils';
2
+ import {assert} from '../utils';
3
3
 
4
4
  export type Color = [r: number, b: number, g: number, a?: number];
5
5
 
@@ -1,4 +1,5 @@
1
1
  import {Feature} from 'geojson';
2
+ import {assert} from '../utils';
2
3
 
3
4
  const ALLOWED_ATTR_TYPES = Object.freeze(['function', 'string']);
4
5
 
@@ -17,9 +18,3 @@ export function getAttrValue<DataT = Feature, OutT = any>(
17
18
  }
18
19
  return (d as unknown as Feature)?.properties?.[attr] as OutT;
19
20
  }
20
-
21
- export function assert(condition, message = ''): asserts condition {
22
- if (!condition) {
23
- throw new Error(`CARTO style error: ${message}`);
24
- }
25
- }
package/src/utils.ts CHANGED
@@ -13,7 +13,7 @@ export function createBinaryProxy(
13
13
  ) {
14
14
  const {properties, numericProps} = data;
15
15
  return new Proxy(properties[index] || {}, {
16
- get(target, property, receiver) {
16
+ get(target, property) {
17
17
  if (property in numericProps) {
18
18
  return numericProps[property as string].value[index];
19
19
  }
@@ -31,3 +31,27 @@ export function getWorkerUrl(id: string, version: string) {
31
31
  // return `http://localhost:8081/dist/${id}-worker.js`;
32
32
  return `https://unpkg.com/@deck.gl/carto@${version}/dist/${id}-worker.js`;
33
33
  }
34
+
35
+ export function scaleIdentity() {
36
+ let unknown;
37
+
38
+ function scale(x) {
39
+ return x === null ? unknown : x;
40
+ }
41
+
42
+ scale.invert = scale;
43
+
44
+ scale.domain = scale.range = d => d;
45
+
46
+ scale.unknown = u => {
47
+ if (u) {
48
+ unknown = u;
49
+ }
50
+
51
+ return unknown;
52
+ };
53
+
54
+ scale.copy = () => scaleIdentity().unknown(unknown);
55
+
56
+ return scale;
57
+ }
@@ -1,11 +1,4 @@
1
- import { MapType, RequestType } from './maps-api-common';
2
- export declare type APIErrorContext = {
3
- requestType: RequestType;
4
- mapId?: string;
5
- connection?: string;
6
- source?: string;
7
- type?: MapType;
8
- };
1
+ import type { APIErrorContext } from './types';
9
2
  /**
10
3
  *
11
4
  * Custom error for reported errors in CARTO Maps API.
@@ -1 +1 @@
1
- {"version":3,"file":"carto-api-error.d.ts","sourceRoot":"","sources":["../../src/api/carto-api-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAEvD,oBAAY,eAAe,GAAG;IAC5B,WAAW,EAAE,WAAW,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF;;;;;GAKG;AACH,qBAAa,aAAc,SAAQ,KAAK;IACtC,+BAA+B;IAC/B,KAAK,EAAE,KAAK,CAAC;IAEb,6DAA6D;IAC7D,YAAY,EAAE,eAAe,CAAC;IAE9B,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,QAAQ,CAAC;gBAER,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,QAAQ,CAAC,EAAE,QAAQ;CAiC7E"}
1
+ {"version":3,"file":"carto-api-error.d.ts","sourceRoot":"","sources":["../../src/api/carto-api-error.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC;AAE7C;;;;;GAKG;AACH,qBAAa,aAAc,SAAQ,KAAK;IACtC,+BAA+B;IAC/B,KAAK,EAAE,KAAK,CAAC;IAEb,6DAA6D;IAC7D,YAAY,EAAE,eAAe,CAAC;IAE9B,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,QAAQ,CAAC;gBAER,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,QAAQ,CAAC,EAAE,QAAQ;CAiC7E"}
@@ -0,0 +1,13 @@
1
+ export declare const DEFAULT_API_BASE_URL = "https://gcp-us-east1.api.carto.com";
2
+ export declare const DEFAULT_CLIENT = "deck-gl-carto";
3
+ export declare const V3_MINOR_VERSION = "3.3";
4
+ export declare const MAX_GET_LENGTH = 8192;
5
+ export declare const DEFAULT_PARAMETERS: {
6
+ client: string;
7
+ v: string;
8
+ };
9
+ export declare const DEFAULT_HEADERS: {
10
+ Accept: string;
11
+ 'Content-Type': string;
12
+ };
13
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/api/common.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,uCAAuC,CAAC;AACzE,eAAO,MAAM,cAAc,kBAAkB,CAAC;AAC9C,eAAO,MAAM,gBAAgB,QAAQ,CAAC;AACtC,eAAO,MAAM,cAAc,OAAO,CAAC;AAEnC,eAAO,MAAM,kBAAkB;;;CAG9B,CAAC;AAEF,eAAO,MAAM,eAAe;;;CAG3B,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { MapType } from './types';
2
+ export declare type V3Endpoint = 'maps' | 'stats' | 'sql';
3
+ export declare function buildMapsUrlFromBase(apiBaseUrl: string): string;
4
+ export declare function buildStatsUrlFromBase(apiBaseUrl: string): string;
5
+ export declare function buildQueryUrlFromBase(apiBaseUrl: string): string;
6
+ export declare function buildSourceUrl({ apiBaseUrl, connectionName, endpoint, mapsUrl }: {
7
+ apiBaseUrl: string;
8
+ connectionName: string;
9
+ endpoint: MapType;
10
+ mapsUrl?: string;
11
+ }): string;
12
+ //# sourceMappingURL=endpoints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../src/api/endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,SAAS,CAAC;AAEhC,oBAAY,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;AAWlD,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAE/D;AAED,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAEhE;AAED,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAEhE;AAED,wBAAgB,cAAc,CAAC,EAC7B,UAAU,EACV,cAAc,EACd,QAAQ,EACR,OAAO,EACR,EAAE;IACD,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,GAAG,MAAM,CAET"}
@@ -0,0 +1,22 @@
1
+ export declare type FetchMapOptions = {
2
+ apiBaseUrl?: string;
3
+ cartoMapId: string;
4
+ clientId?: string;
5
+ headers?: Record<string, string>;
6
+ mapsUrl?: string;
7
+ autoRefresh?: number;
8
+ onNewData?: (map: any) => void;
9
+ };
10
+ export declare function fetchMap({ apiBaseUrl, cartoMapId, clientId, headers, mapsUrl, autoRefresh, onNewData }: FetchMapOptions): Promise<{
11
+ stopAutoRefresh: (() => void) | undefined;
12
+ id: any;
13
+ title: any;
14
+ description: any;
15
+ createdAt: any;
16
+ updatedAt: any;
17
+ initialViewState: any;
18
+ mapStyle: any;
19
+ token: any;
20
+ layers: any;
21
+ }>;
22
+ //# sourceMappingURL=fetch-map.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-map.d.ts","sourceRoot":"","sources":["../../src/api/fetch-map.ts"],"names":[],"mappings":"AAwMA,oBAAY,eAAe,GAAG;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;CAChC,CAAC;AAGF,wBAAsB,QAAQ,CAAC,EAC7B,UAAiC,EACjC,UAAU,EACV,QAAyB,EACzB,OAAY,EACZ,OAAO,EACP,WAAW,EACX,SAAS,EACV,EAAE,eAAe;4BAmBY,IAAI;;;;;;;;;;GAuDjC"}
@@ -1,7 +1,7 @@
1
1
  export { CartoAPIError } from './carto-api-error';
2
- export type { APIErrorContext } from './carto-api-error';
3
- export { FORMATS, TILE_FORMATS, MAP_TYPES, API_VERSIONS } from './maps-api-common';
4
- export type { QueryParameters } from './maps-api-common';
5
- export { getDataV2, CONNECTIONS } from './maps-client';
6
- export { fetchLayerData, fetchMap, mapInstantiation } from './maps-v3-client';
2
+ export { fetchMap } from './fetch-map';
3
+ export type { FetchMapOptions } from './fetch-map';
4
+ export type { APIErrorContext, Format, MapType, RequestType, QueryParameters } from './types';
5
+ export { query } from './query';
6
+ export type { QueryOptions } from './query';
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAChD,YAAY,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAC,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAC,MAAM,mBAAmB,CAAC;AACjF,YAAY,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAC,SAAS,EAAE,WAAW,EAAC,MAAM,eAAe,CAAC;AACrD,OAAO,EAAC,cAAc,EAAE,QAAQ,EAAE,gBAAgB,EAAC,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAC;AACrC,YAAY,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AACjD,YAAY,EAAC,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AAC5F,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAC9B,YAAY,EAAC,YAAY,EAAC,MAAM,SAAS,CAAC"}
@@ -3,7 +3,8 @@ import { Accessor, Layer, _ConstructorOf as ConstructorOf } from '@deck.gl/core/
3
3
  import H3TileLayer from '../layers/h3-tile-layer';
4
4
  import QuadbinTileLayer from '../layers/quadbin-tile-layer';
5
5
  import VectorTileLayer from '../layers/vector-tile-layer';
6
- import { MapType, TileFormat } from './maps-api-common';
6
+ import { MapType } from './types';
7
+ import { scaleIdentity } from '../utils';
7
8
  import { CustomMarkersRange, MapDataset, MapTextSubLayerConfig, VisConfig, VisualChannelField, VisualChannels } from './types';
8
9
  declare const SCALE_FUNCS: {
9
10
  linear: typeof scaleLinear;
@@ -14,6 +15,7 @@ declare const SCALE_FUNCS: {
14
15
  quantize: typeof scaleQuantize;
15
16
  sqrt: typeof scaleSqrt;
16
17
  custom: typeof scaleThreshold;
18
+ identity: typeof scaleIdentity;
17
19
  };
18
20
  export declare type SCALE_TYPE = keyof typeof SCALE_FUNCS;
19
21
  export declare const AGGREGATION: {
@@ -32,20 +34,15 @@ export declare function getLayer(type: string, config: MapTextSubLayerConfig, da
32
34
  propMap: any;
33
35
  defaultProps: any;
34
36
  };
35
- export declare function layerFromTileDataset(formatTiles: TileFormat | null | undefined, scheme: string, type?: MapType): typeof VectorTileLayer | typeof H3TileLayer | typeof QuadbinTileLayer;
37
+ export declare function layerFromTileDataset(scheme: string, type?: MapType): typeof VectorTileLayer | typeof H3TileLayer | typeof QuadbinTileLayer;
36
38
  declare function domainFromValues(values: any, scaleType: SCALE_TYPE): any;
37
39
  export declare function opacityToAlpha(opacity?: number): number;
38
40
  export declare function getColorValueAccessor({ name }: {
39
41
  name: any;
40
42
  }, colorAggregation: any, data: any): any;
41
- export declare function getColorAccessor({ name }: {
42
- name: any;
43
- }, scaleType: SCALE_TYPE, { aggregation, range: { colors, colorMap } }: {
43
+ export declare function getColorAccessor({ name, colorColumn }: VisualChannelField, scaleType: SCALE_TYPE, { aggregation, range }: {
44
44
  aggregation: any;
45
- range: {
46
- colors: any;
47
- colorMap: any;
48
- };
45
+ range: any;
49
46
  }, opacity: number | undefined, data: any): any;
50
47
  export declare function getIconUrlAccessor(field: VisualChannelField | null | undefined, range: CustomMarkersRange | null | undefined, { fallbackUrl, maxIconSize, useMaskedIcons }: {
51
48
  fallbackUrl: any;
@@ -1 +1 @@
1
- {"version":3,"file":"layer-map.d.ts","sourceRoot":"","sources":["../../src/api/layer-map.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,aAAa,EACb,aAAa,EACb,SAAS,EACT,cAAc,EACf,MAAM,UAAU,CAAC;AAIlB,OAAO,EAAC,QAAQ,EAAE,KAAK,EAAE,cAAc,IAAI,aAAa,EAAC,MAAM,eAAe,CAAC;AAK/E,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAClD,OAAO,gBAAgB,MAAM,8BAA8B,CAAC;AAE5D,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAC,OAAO,EAAgB,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAEpE,OAAO,EACL,kBAAkB,EAClB,UAAU,EACV,qBAAqB,EACrB,SAAS,EACT,kBAAkB,EAClB,cAAc,EACf,MAAM,SAAS,CAAC;AAEjB,QAAA,MAAM,WAAW;;;;;;;;;CAShB,CAAC;AACF,oBAAY,UAAU,GAAG,M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AAQ,EAAE,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC,CAEpF;AAED,wBAAgB,eAAe,CAC7B,EAAC,IAAI,EAAC;;CAAA,EACN,SAAS,EAAE,UAAU,GAAG,SAAS,EACjC,WAAW,KAAA,EACX,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,GAAG,SAAS,EAClC,IAAI,EAAE,GAAG,OAmBV;AAUD,wBAAgB,eAAe,CAAC,EAAC,IAAI,EAAE,IAAI,EAAC,EAAE,kBAAkB,EAAE,IAAI,KAAA,OAMrE;AAED,OAAO,EAAC,gBAAgB,IAAI,iBAAiB,EAAC,CAAC"}
@@ -9,4 +9,4 @@ export declare function parseMap(json: any): {
9
9
  token: any;
10
10
  layers: any;
11
11
  };
12
- //# sourceMappingURL=parseMap.d.ts.map
12
+ //# sourceMappingURL=parse-map.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-map.d.ts","sourceRoot":"","sources":["../../src/api/parse-map.ts"],"names":[],"mappings":"AAsBA,wBAAgB,QAAQ,CAAC,IAAI,KAAA;;;;;;;;;;EAwC5B"}
@@ -0,0 +1,4 @@
1
+ import type { SourceOptions, QuerySourceOptions, QueryResult } from '../sources/types';
2
+ export declare type QueryOptions = SourceOptions & Omit<QuerySourceOptions, 'spatialDataColumn'>;
3
+ export declare const query: (options: QueryOptions) => Promise<QueryResult>;
4
+ //# sourceMappingURL=query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../src/api/query.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,aAAa,EAAE,kBAAkB,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAKrF,oBAAY,YAAY,GAAG,aAAa,GAAG,IAAI,CAAC,kBAAkB,EAAE,mBAAmB,CAAC,CAAC;AAGzF,eAAO,MAAM,KAAK,YAA4B,YAAY,KAAG,QAAQ,WAAW,CAwB/E,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { APIErrorContext } from './types';
2
+ export declare function requestWithParameters<T = any>({ accessToken, baseUrl, parameters, headers: customHeaders, errorContext }: {
3
+ accessToken?: string;
4
+ baseUrl: string;
5
+ parameters?: Record<string, string>;
6
+ headers: Record<string, string>;
7
+ errorContext: APIErrorContext;
8
+ }): Promise<T>;
9
+ //# sourceMappingURL=request-with-parameters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request-with-parameters.d.ts","sourceRoot":"","sources":["../../src/api/request-with-parameters.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC;AAU7C,wBAAsB,qBAAqB,CAAC,CAAC,GAAG,GAAG,EAAE,EACnD,WAAW,EACX,OAAO,EACP,UAAU,EACV,OAAO,EAAE,aAAa,EACtB,YAAY,EACb,EAAE;IACD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,YAAY,EAAE,eAAe,CAAC;CAC/B,GAAG,OAAO,CAAC,CAAC,CAAC,CA2Cb"}
@@ -1,7 +1,46 @@
1
1
  import { SCALE_TYPE } from './layer-map';
2
+ export declare type Format = 'json' | 'geojson' | 'tilejson';
3
+ export declare type MapType = 'boundary' | 'query' | 'table' | 'tileset' | 'raster';
4
+ export declare type RequestType = 'Map data' | 'Map instantiation' | 'Public map' | 'Tile stats' | 'SQL';
5
+ export declare type APIErrorContext = {
6
+ requestType: RequestType;
7
+ mapId?: string;
8
+ connection?: string;
9
+ source?: string;
10
+ type?: MapType;
11
+ };
12
+ export declare enum SchemaFieldType {
13
+ Number = "number",
14
+ Bigint = "bigint",
15
+ String = "string",
16
+ Geometry = "geometry",
17
+ Timestamp = "timestamp",
18
+ Object = "object",
19
+ Boolean = "boolean",
20
+ Variant = "variant",
21
+ Unknown = "unknown"
22
+ }
23
+ export interface SchemaField {
24
+ name: string;
25
+ type: SchemaFieldType;
26
+ }
27
+ export interface MapInstantiation extends MapInstantiationFormats {
28
+ nrows: number;
29
+ size?: number;
30
+ schema: SchemaField[];
31
+ }
32
+ declare type MapInstantiationFormats = Record<Format, {
33
+ url: string[];
34
+ error?: any;
35
+ }>;
36
+ export declare type QueryParameterValue = string | number | boolean | Array<QueryParameterValue> | object;
37
+ export declare type NamedQueryParameter = Record<string, QueryParameterValue>;
38
+ export declare type PositionalQueryParameter = QueryParameterValue[];
39
+ export declare type QueryParameters = NamedQueryParameter | PositionalQueryParameter;
2
40
  export declare type VisualChannelField = {
3
41
  name: string;
4
42
  type: string;
43
+ colorColumn?: string;
5
44
  };
6
45
  export declare type VisualChannels = {
7
46
  colorField?: VisualChannelField;
@@ -85,4 +124,5 @@ export declare type MapDataset = {
85
124
  aggregationResLevel: number | null;
86
125
  geoColumn: string;
87
126
  };
127
+ export {};
88
128
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/api/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,aAAa,CAAC;AAEvC,oBAAY,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,oBAAY,cAAc,GAAG;IAC3B,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,kBAAkB,CAAC,EAAE,UAAU,CAAC;IAEhC,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,WAAW,CAAC,EAAE,UAAU,CAAC;IAEzB,aAAa,CAAC,EAAE,UAAU,CAAC;IAC3B,aAAa,CAAC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