@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.
- package/dist/cartoRasterTile-worker.js +32 -24
- package/dist/cartoSpatialTile-worker.js +32 -24
- package/dist/cartoVectorTile-worker.js +69 -63
- package/dist/dist.dev.js +12061 -12560
- package/dist/es5/api/carto-api-error.js.map +1 -1
- package/dist/es5/api/common.js +25 -0
- package/dist/es5/api/common.js.map +1 -0
- package/dist/es5/api/endpoints.js +40 -0
- package/dist/es5/api/endpoints.js.map +1 -0
- package/dist/es5/api/fetch-map.js +568 -0
- package/dist/es5/api/fetch-map.js.map +1 -0
- package/dist/es5/api/index.js +5 -49
- package/dist/es5/api/index.js.map +1 -1
- package/dist/es5/api/layer-map.js +43 -45
- package/dist/es5/api/layer-map.js.map +1 -1
- package/dist/es5/api/{parseMap.js → parse-map.js} +5 -3
- package/dist/es5/api/parse-map.js.map +1 -0
- package/dist/es5/api/query.js +78 -0
- package/dist/es5/api/query.js.map +1 -0
- package/dist/es5/{sources/utils.js → api/request-with-parameters.js} +60 -46
- package/dist/es5/api/request-with-parameters.js.map +1 -0
- package/dist/es5/api/types.js +19 -0
- package/dist/es5/api/types.js.map +1 -1
- package/dist/es5/index.js +66 -80
- package/dist/es5/index.js.map +1 -1
- package/dist/es5/layers/h3-tile-layer.js +3 -5
- package/dist/es5/layers/h3-tile-layer.js.map +1 -1
- package/dist/es5/layers/point-label-layer.js.map +1 -1
- package/dist/es5/layers/quadbin-layer.js.map +1 -1
- package/dist/es5/layers/quadbin-tile-layer.js +1 -4
- package/dist/es5/layers/quadbin-tile-layer.js.map +1 -1
- package/dist/es5/layers/raster-layer.js +2 -0
- package/dist/es5/layers/raster-layer.js.map +1 -1
- package/dist/es5/layers/raster-tile-layer.js +1 -3
- package/dist/es5/layers/raster-tile-layer.js.map +1 -1
- package/dist/es5/layers/schema/carto-properties-tile-loader.js +60 -0
- package/dist/es5/layers/schema/carto-properties-tile-loader.js.map +1 -0
- package/dist/es5/layers/schema/carto-properties-tile.js +38 -0
- package/dist/es5/layers/schema/carto-properties-tile.js.map +1 -0
- package/dist/es5/layers/schema/carto-raster-tile-loader.js +1 -1
- package/dist/es5/layers/schema/carto-raster-tile-loader.js.map +1 -1
- package/dist/es5/layers/schema/carto-spatial-tile-loader.js +1 -1
- package/dist/es5/layers/schema/carto-spatial-tile-loader.js.map +1 -1
- package/dist/es5/layers/schema/carto-vector-tile-loader.js +1 -2
- package/dist/es5/layers/schema/carto-vector-tile-loader.js.map +1 -1
- package/dist/es5/layers/spatial-index-tile-layer.js +16 -26
- package/dist/es5/layers/spatial-index-tile-layer.js.map +1 -1
- package/dist/es5/layers/utils.js +102 -0
- package/dist/es5/layers/utils.js.map +1 -1
- package/dist/es5/layers/vector-tile-layer.js +112 -27
- package/dist/es5/layers/vector-tile-layer.js.map +1 -1
- package/dist/es5/sources/base-source.js +56 -28
- package/dist/es5/sources/base-source.js.map +1 -1
- package/dist/es5/sources/boundary-query-source.js +51 -0
- package/dist/es5/sources/boundary-query-source.js.map +1 -0
- package/dist/es5/sources/boundary-table-source.js +51 -0
- package/dist/es5/sources/boundary-table-source.js.map +1 -0
- package/dist/es5/sources/boundary-tileset-source.js +43 -0
- package/dist/es5/sources/boundary-tileset-source.js.map +1 -0
- package/dist/es5/sources/h3-query-source.js +9 -11
- package/dist/es5/sources/h3-query-source.js.map +1 -1
- package/dist/es5/sources/h3-table-source.js +10 -12
- package/dist/es5/sources/h3-table-source.js.map +1 -1
- package/dist/es5/sources/h3-tileset-source.js +5 -5
- package/dist/es5/sources/h3-tileset-source.js.map +1 -1
- package/dist/es5/sources/index.js +46 -22
- package/dist/es5/sources/index.js.map +1 -1
- package/dist/es5/sources/quadbin-query-source.js +10 -12
- package/dist/es5/sources/quadbin-query-source.js.map +1 -1
- package/dist/es5/sources/quadbin-table-source.js +10 -12
- package/dist/es5/sources/quadbin-table-source.js.map +1 -1
- package/dist/es5/sources/quadbin-tileset-source.js +5 -5
- package/dist/es5/sources/quadbin-tileset-source.js.map +1 -1
- package/dist/es5/sources/raster-source.js +5 -5
- package/dist/es5/sources/raster-source.js.map +1 -1
- package/dist/es5/sources/types.js +2 -0
- package/dist/es5/sources/types.js.map +1 -0
- package/dist/es5/sources/vector-query-source.js +11 -12
- package/dist/es5/sources/vector-query-source.js.map +1 -1
- package/dist/es5/sources/vector-table-source.js +12 -13
- package/dist/es5/sources/vector-table-source.js.map +1 -1
- package/dist/es5/sources/vector-tileset-source.js +5 -5
- package/dist/es5/sources/vector-tileset-source.js.map +1 -1
- package/dist/es5/style/color-bins-style.js +4 -2
- package/dist/es5/style/color-bins-style.js.map +1 -1
- package/dist/es5/style/color-categories-style.js +4 -2
- package/dist/es5/style/color-categories-style.js.map +1 -1
- package/dist/es5/style/color-continuous-style.js +4 -2
- package/dist/es5/style/color-continuous-style.js.map +1 -1
- package/dist/es5/style/palette.js +1 -1
- package/dist/es5/style/palette.js.map +1 -1
- package/dist/es5/style/utils.js +4 -11
- package/dist/es5/style/utils.js.map +1 -1
- package/dist/es5/utils.js +30 -1
- package/dist/es5/utils.js.map +1 -1
- package/dist/esm/api/carto-api-error.js.map +1 -1
- package/dist/esm/api/common.js +13 -0
- package/dist/esm/api/common.js.map +1 -0
- package/dist/esm/api/endpoints.js +28 -0
- package/dist/esm/api/endpoints.js.map +1 -0
- package/dist/esm/api/fetch-map.js +300 -0
- package/dist/esm/api/fetch-map.js.map +1 -0
- package/dist/esm/api/index.js +2 -3
- package/dist/esm/api/index.js.map +1 -1
- package/dist/esm/api/layer-map.js +43 -35
- package/dist/esm/api/layer-map.js.map +1 -1
- package/dist/esm/api/{parseMap.js → parse-map.js} +3 -2
- package/dist/esm/api/parse-map.js.map +1 -0
- package/dist/esm/api/query.js +38 -0
- package/dist/esm/api/query.js.map +1 -0
- package/dist/esm/{sources/utils.js → api/request-with-parameters.js} +25 -12
- package/dist/esm/api/request-with-parameters.js.map +1 -0
- package/dist/esm/api/types.js +13 -1
- package/dist/esm/api/types.js.map +1 -1
- package/dist/esm/index.js +31 -9
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/layers/h3-tile-layer.js +2 -6
- package/dist/esm/layers/h3-tile-layer.js.map +1 -1
- package/dist/esm/layers/point-label-layer.js.map +1 -1
- package/dist/esm/layers/quadbin-layer.js.map +1 -1
- package/dist/esm/layers/quadbin-tile-layer.js +1 -3
- package/dist/esm/layers/quadbin-tile-layer.js.map +1 -1
- package/dist/esm/layers/raster-layer.js +1 -0
- package/dist/esm/layers/raster-layer.js.map +1 -1
- package/dist/esm/layers/raster-tile-layer.js +1 -2
- package/dist/esm/layers/raster-tile-layer.js.map +1 -1
- package/dist/esm/layers/schema/carto-properties-tile-loader.js +23 -0
- package/dist/esm/layers/schema/carto-properties-tile-loader.js.map +1 -0
- package/dist/esm/layers/schema/carto-properties-tile.js +18 -0
- package/dist/esm/layers/schema/carto-properties-tile.js.map +1 -0
- package/dist/esm/layers/schema/carto-raster-tile-loader.js +1 -1
- package/dist/esm/layers/schema/carto-raster-tile-loader.js.map +1 -1
- package/dist/esm/layers/schema/carto-spatial-tile-loader.js +1 -1
- package/dist/esm/layers/schema/carto-spatial-tile-loader.js.map +1 -1
- package/dist/esm/layers/schema/carto-vector-tile-loader.js +1 -2
- package/dist/esm/layers/schema/carto-vector-tile-loader.js.map +1 -1
- package/dist/esm/layers/spatial-index-tile-layer.js +9 -24
- package/dist/esm/layers/spatial-index-tile-layer.js.map +1 -1
- package/dist/esm/layers/utils.js +71 -0
- package/dist/esm/layers/utils.js.map +1 -1
- package/dist/esm/layers/vector-tile-layer.js +40 -12
- package/dist/esm/layers/vector-tile-layer.js.map +1 -1
- package/dist/esm/sources/base-source.js +33 -10
- package/dist/esm/sources/base-source.js.map +1 -1
- package/dist/esm/sources/boundary-query-source.js +21 -0
- package/dist/esm/sources/boundary-query-source.js.map +1 -0
- package/dist/esm/sources/boundary-table-source.js +21 -0
- package/dist/esm/sources/boundary-table-source.js.map +1 -0
- package/dist/esm/sources/boundary-tileset-source.js +11 -0
- package/dist/esm/sources/boundary-tileset-source.js.map +1 -0
- package/dist/esm/sources/h3-query-source.js +6 -11
- package/dist/esm/sources/h3-query-source.js.map +1 -1
- package/dist/esm/sources/h3-table-source.js +7 -12
- package/dist/esm/sources/h3-table-source.js.map +1 -1
- package/dist/esm/sources/h3-tileset-source.js +3 -6
- package/dist/esm/sources/h3-tileset-source.js.map +1 -1
- package/dist/esm/sources/index.js +14 -11
- package/dist/esm/sources/index.js.map +1 -1
- package/dist/esm/sources/quadbin-query-source.js +7 -12
- package/dist/esm/sources/quadbin-query-source.js.map +1 -1
- package/dist/esm/sources/quadbin-table-source.js +7 -12
- package/dist/esm/sources/quadbin-table-source.js.map +1 -1
- package/dist/esm/sources/quadbin-tileset-source.js +3 -6
- package/dist/esm/sources/quadbin-tileset-source.js.map +1 -1
- package/dist/esm/sources/raster-source.js +3 -6
- package/dist/esm/sources/raster-source.js.map +1 -1
- package/dist/esm/sources/types.js +2 -0
- package/dist/esm/sources/types.js.map +1 -0
- package/dist/esm/sources/vector-query-source.js +6 -11
- package/dist/esm/sources/vector-query-source.js.map +1 -1
- package/dist/esm/sources/vector-table-source.js +7 -12
- package/dist/esm/sources/vector-table-source.js.map +1 -1
- package/dist/esm/sources/vector-tileset-source.js +3 -6
- package/dist/esm/sources/vector-tileset-source.js.map +1 -1
- package/dist/esm/style/color-bins-style.js +2 -1
- package/dist/esm/style/color-bins-style.js.map +1 -1
- package/dist/esm/style/color-categories-style.js +2 -1
- package/dist/esm/style/color-categories-style.js.map +1 -1
- package/dist/esm/style/color-continuous-style.js +2 -1
- package/dist/esm/style/color-continuous-style.js.map +1 -1
- package/dist/esm/style/palette.js +1 -1
- package/dist/esm/style/palette.js.map +1 -1
- package/dist/esm/style/utils.js +1 -5
- package/dist/esm/style/utils.js.map +1 -1
- package/dist/esm/utils.js +24 -1
- package/dist/esm/utils.js.map +1 -1
- package/dist.min.js +42 -41
- package/package.json +10 -9
- package/src/api/carto-api-error.ts +1 -9
- package/src/api/common.ts +14 -0
- package/src/api/endpoints.ts +38 -0
- package/src/api/fetch-map.ts +294 -0
- package/src/api/index.ts +5 -5
- package/src/api/layer-map.ts +40 -36
- package/src/api/{parseMap.ts → parse-map.ts} +2 -2
- package/src/api/query.ts +34 -0
- package/src/{sources/utils.ts → api/request-with-parameters.ts} +22 -17
- package/src/api/types.ts +49 -0
- package/src/index.ts +93 -41
- package/src/layers/h3-tile-layer.ts +13 -18
- package/src/layers/point-label-layer.ts +1 -1
- package/src/layers/quadbin-layer.ts +3 -2
- package/src/layers/quadbin-tile-layer.ts +10 -11
- package/src/layers/raster-layer.ts +2 -2
- package/src/layers/raster-tile-layer.ts +11 -9
- package/src/layers/schema/carto-properties-tile-loader.ts +25 -0
- package/src/layers/schema/carto-properties-tile.ts +21 -0
- package/src/layers/schema/carto-vector-tile-loader.ts +1 -1
- package/src/layers/spatial-index-tile-layer.ts +18 -26
- package/src/layers/utils.ts +73 -0
- package/src/layers/vector-tile-layer.ts +40 -21
- package/src/sources/base-source.ts +35 -18
- package/src/sources/boundary-query-source.ts +31 -0
- package/src/sources/boundary-table-source.ts +31 -0
- package/src/sources/boundary-tileset-source.ts +14 -0
- package/src/sources/h3-query-source.ts +22 -22
- package/src/sources/h3-table-source.ts +22 -22
- package/src/sources/h3-tileset-source.ts +7 -9
- package/src/sources/index.ts +31 -22
- package/src/sources/quadbin-query-source.ts +22 -22
- package/src/sources/quadbin-table-source.ts +23 -22
- package/src/sources/quadbin-tileset-source.ts +7 -9
- package/src/sources/raster-source.ts +5 -9
- package/src/sources/types.ts +98 -0
- package/src/sources/vector-query-source.ts +15 -15
- package/src/sources/vector-table-source.ts +15 -15
- package/src/sources/vector-tileset-source.ts +7 -9
- package/src/style/color-bins-style.ts +2 -1
- package/src/style/color-categories-style.ts +2 -1
- package/src/style/color-continuous-style.ts +2 -1
- package/src/style/palette.ts +1 -1
- package/src/style/utils.ts +1 -6
- package/src/utils.ts +25 -1
- package/typed/api/carto-api-error.d.ts +1 -8
- package/typed/api/carto-api-error.d.ts.map +1 -1
- package/typed/api/common.d.ts +13 -0
- package/typed/api/common.d.ts.map +1 -0
- package/typed/api/endpoints.d.ts +12 -0
- package/typed/api/endpoints.d.ts.map +1 -0
- package/typed/api/fetch-map.d.ts +22 -0
- package/typed/api/fetch-map.d.ts.map +1 -0
- package/typed/api/index.d.ts +5 -5
- package/typed/api/index.d.ts.map +1 -1
- package/typed/api/layer-map.d.ts +6 -9
- package/typed/api/layer-map.d.ts.map +1 -1
- package/typed/api/{parseMap.d.ts → parse-map.d.ts} +1 -1
- package/typed/api/parse-map.d.ts.map +1 -0
- package/typed/api/query.d.ts +4 -0
- package/typed/api/query.d.ts.map +1 -0
- package/typed/api/request-with-parameters.d.ts +9 -0
- package/typed/api/request-with-parameters.d.ts.map +1 -0
- package/typed/api/types.d.ts +40 -0
- package/typed/api/types.d.ts.map +1 -1
- package/typed/index.d.ts +33 -12
- package/typed/index.d.ts.map +1 -1
- package/typed/layers/h3-tile-layer.d.ts +12 -7
- package/typed/layers/h3-tile-layer.d.ts.map +1 -1
- package/typed/layers/point-label-layer.d.ts +2 -2
- package/typed/layers/point-label-layer.d.ts.map +1 -1
- package/typed/layers/quadbin-layer.d.ts +2 -2
- package/typed/layers/quadbin-layer.d.ts.map +1 -1
- package/typed/layers/quadbin-tile-layer.d.ts +6 -6
- package/typed/layers/quadbin-tile-layer.d.ts.map +1 -1
- package/typed/layers/raster-layer.d.ts +2 -2
- package/typed/layers/raster-layer.d.ts.map +1 -1
- package/typed/layers/raster-tile-layer.d.ts +6 -5
- package/typed/layers/raster-tile-layer.d.ts.map +1 -1
- package/typed/layers/schema/carto-properties-tile-loader.d.ts +4 -0
- package/typed/layers/schema/carto-properties-tile-loader.d.ts.map +1 -0
- package/typed/layers/schema/carto-properties-tile.d.ts +10 -0
- package/typed/layers/schema/carto-properties-tile.d.ts.map +1 -0
- package/typed/layers/spatial-index-tile-layer.d.ts +10 -9
- package/typed/layers/spatial-index-tile-layer.d.ts.map +1 -1
- package/typed/layers/utils.d.ts +11 -0
- package/typed/layers/utils.d.ts.map +1 -1
- package/typed/layers/vector-tile-layer.d.ts +6 -11
- package/typed/layers/vector-tile-layer.d.ts.map +1 -1
- package/typed/sources/base-source.d.ts +4 -3
- package/typed/sources/base-source.d.ts.map +1 -1
- package/typed/sources/boundary-query-source.d.ts +10 -0
- package/typed/sources/boundary-query-source.d.ts.map +1 -0
- package/typed/sources/boundary-table-source.d.ts +9 -0
- package/typed/sources/boundary-table-source.d.ts.map +1 -0
- package/typed/sources/boundary-tileset-source.d.ts +6 -0
- package/typed/sources/boundary-tileset-source.d.ts.map +1 -0
- package/typed/sources/h3-query-source.d.ts +3 -4
- package/typed/sources/h3-query-source.d.ts.map +1 -1
- package/typed/sources/h3-table-source.d.ts +3 -4
- package/typed/sources/h3-table-source.d.ts.map +1 -1
- package/typed/sources/h3-tileset-source.d.ts +3 -4
- package/typed/sources/h3-tileset-source.d.ts.map +1 -1
- package/typed/sources/index.d.ts +28 -22
- package/typed/sources/index.d.ts.map +1 -1
- package/typed/sources/quadbin-query-source.d.ts +3 -4
- package/typed/sources/quadbin-query-source.d.ts.map +1 -1
- package/typed/sources/quadbin-table-source.d.ts +3 -4
- package/typed/sources/quadbin-table-source.d.ts.map +1 -1
- package/typed/sources/quadbin-tileset-source.d.ts +3 -4
- package/typed/sources/quadbin-tileset-source.d.ts.map +1 -1
- package/typed/sources/raster-source.d.ts +3 -4
- package/typed/sources/raster-source.d.ts.map +1 -1
- package/typed/sources/{common.d.ts → types.d.ts} +26 -42
- package/typed/sources/types.d.ts.map +1 -0
- package/typed/sources/vector-query-source.d.ts +3 -4
- package/typed/sources/vector-query-source.d.ts.map +1 -1
- package/typed/sources/vector-table-source.d.ts +3 -4
- package/typed/sources/vector-table-source.d.ts.map +1 -1
- package/typed/sources/vector-tileset-source.d.ts +3 -4
- package/typed/sources/vector-tileset-source.d.ts.map +1 -1
- package/typed/style/color-bins-style.d.ts.map +1 -1
- package/typed/style/color-categories-style.d.ts.map +1 -1
- package/typed/style/color-continuous-style.d.ts.map +1 -1
- package/typed/style/utils.d.ts +0 -1
- package/typed/style/utils.d.ts.map +1 -1
- package/typed/utils.d.ts +8 -0
- package/typed/utils.d.ts.map +1 -1
- package/LICENSE +0 -19
- package/dist/es5/api/maps-api-common.js +0 -77
- package/dist/es5/api/maps-api-common.js.map +0 -1
- package/dist/es5/api/maps-client.js +0 -220
- package/dist/es5/api/maps-client.js.map +0 -1
- package/dist/es5/api/maps-v3-client.js +0 -959
- package/dist/es5/api/maps-v3-client.js.map +0 -1
- package/dist/es5/api/parseMap.js.map +0 -1
- package/dist/es5/config.js +0 -84
- package/dist/es5/config.js.map +0 -1
- package/dist/es5/layers/carto-layer.js +0 -329
- package/dist/es5/layers/carto-layer.js.map +0 -1
- package/dist/es5/sources/common.js +0 -48
- package/dist/es5/sources/common.js.map +0 -1
- package/dist/es5/sources/utils.js.map +0 -1
- package/dist/esm/api/maps-api-common.js +0 -54
- package/dist/esm/api/maps-api-common.js.map +0 -1
- package/dist/esm/api/maps-client.js +0 -148
- package/dist/esm/api/maps-client.js.map +0 -1
- package/dist/esm/api/maps-v3-client.js +0 -638
- package/dist/esm/api/maps-v3-client.js.map +0 -1
- package/dist/esm/api/parseMap.js.map +0 -1
- package/dist/esm/config.js +0 -60
- package/dist/esm/config.js.map +0 -1
- package/dist/esm/layers/carto-layer.js +0 -233
- package/dist/esm/layers/carto-layer.js.map +0 -1
- package/dist/esm/sources/common.js +0 -26
- package/dist/esm/sources/common.js.map +0 -1
- package/dist/esm/sources/utils.js.map +0 -1
- package/src/api/maps-api-common.ts +0 -95
- package/src/api/maps-client.ts +0 -196
- package/src/api/maps-v3-client.ts +0 -659
- package/src/config.ts +0 -70
- package/src/layers/carto-layer.ts +0 -340
- package/src/sources/common.ts +0 -132
- package/typed/api/maps-api-common.d.ts +0 -76
- package/typed/api/maps-api-common.d.ts.map +0 -1
- package/typed/api/maps-client.d.ts +0 -18
- package/typed/api/maps-client.d.ts.map +0 -1
- package/typed/api/maps-v3-client.d.ts +0 -49
- package/typed/api/maps-v3-client.d.ts.map +0 -1
- package/typed/api/parseMap.d.ts.map +0 -1
- package/typed/config.d.ts +0 -28
- package/typed/config.d.ts.map +0 -1
- package/typed/layers/carto-layer.d.ts +0 -126
- package/typed/layers/carto-layer.d.ts.map +0 -1
- package/typed/sources/common.d.ts.map +0 -1
- package/typed/sources/utils.d.ts +0 -15
- package/typed/sources/utils.d.ts.map +0 -1
package/typed/index.d.ts
CHANGED
|
@@ -1,17 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { default as H3TileLayer } from './layers/h3-tile-layer';
|
|
2
|
+
import { default as _PointLabelLayer } from './layers/point-label-layer';
|
|
3
|
+
import { default as QuadbinTileLayer } from './layers/quadbin-tile-layer';
|
|
4
|
+
import { default as RasterTileLayer } from './layers/raster-tile-layer';
|
|
5
|
+
import { default as VectorTileLayer } from './layers/vector-tile-layer';
|
|
6
|
+
declare const CARTO_LAYERS: {
|
|
7
|
+
H3TileLayer: typeof H3TileLayer;
|
|
8
|
+
_PointLabelLayer: typeof _PointLabelLayer;
|
|
9
|
+
QuadbinTileLayer: typeof QuadbinTileLayer;
|
|
10
|
+
RasterTileLayer: typeof RasterTileLayer;
|
|
11
|
+
VectorTileLayer: typeof VectorTileLayer;
|
|
12
|
+
};
|
|
13
|
+
export { CARTO_LAYERS, H3TileLayer, _PointLabelLayer, QuadbinTileLayer, RasterTileLayer, VectorTileLayer };
|
|
8
14
|
export { default as BASEMAP } from './basemap';
|
|
9
15
|
export { default as colorBins } from './style/color-bins-style';
|
|
10
16
|
export { default as colorCategories } from './style/color-categories-style';
|
|
11
17
|
export { default as colorContinuous } from './style/color-continuous-style';
|
|
12
|
-
export {
|
|
13
|
-
export type { APIErrorContext, QueryParameters } from './api';
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
18
|
+
export { CartoAPIError, fetchMap, query } from './api';
|
|
19
|
+
export type { APIErrorContext, FetchMapOptions, Format, MapType, RequestType, QueryParameters, QueryOptions } from './api';
|
|
20
|
+
import { boundaryQuerySource, boundaryTableSource, boundaryTilesetSource, h3QuerySource, h3TableSource, h3TilesetSource, rasterSource, quadbinQuerySource, quadbinTableSource, quadbinTilesetSource, vectorQuerySource, vectorTableSource, vectorTilesetSource, SOURCE_DEFAULTS } from './sources';
|
|
21
|
+
declare const CARTO_SOURCES: {
|
|
22
|
+
boundaryQuerySource: (options: import("./sources").BoundaryQuerySourceOptions) => Promise<import("./sources").TilejsonResult>;
|
|
23
|
+
boundaryTableSource: (options: import("./sources").BoundaryTableSourceOptions) => Promise<import("./sources").TilejsonResult>;
|
|
24
|
+
boundaryTilesetSource: (options: import("./sources").BoundaryTilesetSourceOptions) => Promise<import("./sources").TilejsonResult>;
|
|
25
|
+
h3QuerySource: (options: import("./sources").H3QuerySourceOptions) => Promise<import("./sources").TilejsonResult>;
|
|
26
|
+
h3TableSource: (options: import("./sources").H3TableSourceOptions) => Promise<import("./sources").TilejsonResult>;
|
|
27
|
+
h3TilesetSource: (options: import("./sources").H3TilesetSourceOptions) => Promise<import("./sources").TilejsonResult>;
|
|
28
|
+
rasterSource: (options: import("./sources").RasterSourceOptions) => Promise<import("./sources").TilejsonResult>;
|
|
29
|
+
quadbinQuerySource: (options: import("./sources").QuadbinQuerySourceOptions) => Promise<import("./sources").TilejsonResult>;
|
|
30
|
+
quadbinTableSource: (options: import("./sources").QuadbinTableSourceOptions) => Promise<import("./sources").TilejsonResult>;
|
|
31
|
+
quadbinTilesetSource: (options: import("./sources").QuadbinTilesetSourceOptions) => Promise<import("./sources").TilejsonResult>;
|
|
32
|
+
vectorQuerySource: (options: import("./sources").VectorQuerySourceOptions) => Promise<import("./sources").TilejsonResult>;
|
|
33
|
+
vectorTableSource: (options: import("./sources").VectorTableSourceOptions) => Promise<import("./sources").TilejsonResult>;
|
|
34
|
+
vectorTilesetSource: (options: import("./sources").VectorTilesetSourceOptions) => Promise<import("./sources").TilejsonResult>;
|
|
35
|
+
};
|
|
36
|
+
export { boundaryQuerySource, boundaryTableSource, boundaryTilesetSource, h3QuerySource, h3TableSource, h3TilesetSource, rasterSource, quadbinQuerySource, quadbinTableSource, quadbinTilesetSource, vectorQuerySource, vectorTableSource, vectorTilesetSource, CARTO_SOURCES, SOURCE_DEFAULTS };
|
|
37
|
+
export type { TilejsonResult, BoundaryQuerySourceOptions, BoundaryTableSourceOptions, BoundaryTilesetSourceOptions, H3QuerySourceOptions, H3TableSourceOptions, H3TilesetSourceOptions, RasterSourceOptions, QuadbinQuerySourceOptions, QuadbinTableSourceOptions, QuadbinTilesetSourceOptions, VectorQuerySourceOptions, VectorTableSourceOptions, VectorTilesetSourceOptions, GeojsonResult, JsonResult } from './sources';
|
|
17
38
|
//# sourceMappingURL=index.d.ts.map
|
package/typed/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAC,OAAO,IAAI,gBAAgB,EAAC,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAC,OAAO,IAAI,gBAAgB,EAAC,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,4BAA4B,CAAC;AACtE,QAAA,MAAM,YAAY;;;;;;CAMjB,CAAC;AACF,OAAO,EACL,YAAY,EACZ,WAAW,EAC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X,MAAM,WAAW,CAAC"}
|
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
import { CompositeLayer, CompositeLayerProps, Layer, LayersList, DefaultProps } from '@deck.gl/core/typed';
|
|
2
|
-
import {
|
|
2
|
+
import { H3HexagonLayer, H3HexagonLayerProps } from '@deck.gl/geo-layers/typed';
|
|
3
|
+
import { SpatialIndexTileLayerProps } from './spatial-index-tile-layer';
|
|
4
|
+
import type { TilejsonResult } from '../sources/types';
|
|
5
|
+
export declare const renderSubLayers: (props: any) => H3HexagonLayer<any, {
|
|
6
|
+
getHexagon: (d: any) => any;
|
|
7
|
+
centerHexagon: any;
|
|
8
|
+
highPrecision: true;
|
|
9
|
+
}> | null;
|
|
3
10
|
/** All properties supported by H3TileLayer. */
|
|
4
|
-
export declare type H3TileLayerProps<DataT =
|
|
5
|
-
declare type H3HexagonLayerProps<DataT = any> = Record<string, any>;
|
|
11
|
+
export declare type H3TileLayerProps<DataT = unknown> = _H3TileLayerProps<DataT> & CompositeLayerProps;
|
|
6
12
|
/** Properties added by H3TileLayer. */
|
|
7
|
-
declare type _H3TileLayerProps<DataT> = Omit<H3HexagonLayerProps<DataT>, 'data'> & {
|
|
8
|
-
data: null |
|
|
9
|
-
aggregationResLevel?: number;
|
|
13
|
+
declare type _H3TileLayerProps<DataT> = Omit<H3HexagonLayerProps<DataT>, 'data'> & Omit<SpatialIndexTileLayerProps<DataT>, 'data'> & {
|
|
14
|
+
data: null | TilejsonResult | Promise<TilejsonResult>;
|
|
10
15
|
};
|
|
11
16
|
export default class H3TileLayer<DataT = any, ExtraPropsT extends {} = {}> extends CompositeLayer<ExtraPropsT & Required<_H3TileLayerProps<DataT>>> {
|
|
12
17
|
static layerName: string;
|
|
13
|
-
static defaultProps: DefaultProps<
|
|
18
|
+
static defaultProps: DefaultProps<H3TileLayerProps<unknown>>;
|
|
14
19
|
initializeState(): void;
|
|
15
20
|
getLoadOptions(): any;
|
|
16
21
|
renderLayers(): Layer | null | LayersList;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"h3-tile-layer.d.ts","sourceRoot":"","sources":["../../src/layers/h3-tile-layer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAE,mBAAmB,EAAE,KAAK,EAAE,UAAU,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"h3-tile-layer.d.ts","sourceRoot":"","sources":["../../src/layers/h3-tile-layer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAE,mBAAmB,EAAE,KAAK,EAAE,UAAU,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AACnG,OAAO,EAAC,cAAc,EAAE,mBAAmB,EAAC,MAAM,qBAAqB,CAAC;AAExE,OAA8B,EAAC,0BAA0B,EAAC,MAAM,4BAA4B,CAAC;AAC7F,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAGrD,eAAO,MAAM,eAAe;;;;SAU3B,CAAC;AAMF,+CAA+C;AAC/C,oBAAY,gBAAgB,CAAC,KAAK,GAAG,OAAO,IAAI,iBAAiB,CAAC,KAAK,CAAC,GAAG,mBAAmB,CAAC;AAE/F,uCAAuC;AACvC,aAAK,iBAAiB,CAAC,KAAK,IAAI,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,GACtE,IAAI,CAAC,0BAA0B,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,GAAG;IAChD,IAAI,EAAE,IAAI,GAAG,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;CACvD,CAAC;AAEJ,MAAM,CAAC,OAAO,OAAO,WAAW,CAAC,KAAK,GAAG,GAAG,EAAE,WAAW,SAAS,EAAE,GAAG,EAAE,CAAE,SAAQ,cAAc,CAC/F,WAAW,GAAG,QAAQ,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,CACjD;IACC,MAAM,CAAC,SAAS,SAAiB;IACjC,MAAM,CAAC,YAAY,0CAAgB;IAEnC,eAAe,IAAI,IAAI;IAIvB,cAAc,IAAI,GAAG;IAQrB,YAAY,IAAI,KAAK,GAAG,IAAI,GAAG,UAAU;CAsC1C"}
|
|
@@ -8,7 +8,7 @@ declare class EnhancedTextLayer extends TextLayer {
|
|
|
8
8
|
}): any;
|
|
9
9
|
}
|
|
10
10
|
/** All properties supported by PointLabelLayer. */
|
|
11
|
-
export declare type PointLabelLayerProps<DataT =
|
|
11
|
+
export declare type PointLabelLayerProps<DataT = unknown> = _PointLabelLayerProps<DataT> & TextLayerProps & CompositeLayerProps;
|
|
12
12
|
/** Properties added by PointLabelLayer. */
|
|
13
13
|
declare type _PointLabelLayerProps<DataT> = TextLayerProps<DataT> & {
|
|
14
14
|
/**
|
|
@@ -43,7 +43,7 @@ declare type _PointLabelLayerProps<DataT> = TextLayerProps<DataT> & {
|
|
|
43
43
|
};
|
|
44
44
|
export default class PointLabelLayer<DataT = any, ExtraProps extends {} = {}> extends CompositeLayer<ExtraProps & Required<_PointLabelLayerProps<DataT>>> {
|
|
45
45
|
static layerName: string;
|
|
46
|
-
static defaultProps: DefaultProps<PointLabelLayerProps<
|
|
46
|
+
static defaultProps: DefaultProps<PointLabelLayerProps<unknown>>;
|
|
47
47
|
calculatePixelOffset(secondary: any): number[] | ((d: any, info: any) => number[]);
|
|
48
48
|
calculateBackgroundPadding(): number[];
|
|
49
49
|
renderTextLayer(id: any, { updateTriggers: updateTriggersOverride, ...props }: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"point-label-layer.d.ts","sourceRoot":"","sources":["../../src/layers/point-label-layer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,KAAK,EACL,cAAc,EACd,mBAAmB,EACnB,YAAY,EACZ,KAAK,EACL,UAAU,EACX,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,SAAS,EACT,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAyBzB,cAAM,iBAAkB,SAAQ,SAA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,GAAG,EACX,UAAU,SAAS,EAAE,GAAG,EAAE,CAC1B,SAAQ,cAAc,CAAC,UAAU,GAAG,QAAQ,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC,CAAC;IAC3E,MAAM,CAAC,SAAS,SAAqB;IACrC,MAAM,CAAC,YAAY,8CAAgB;IAEnC,oBAAoB,CAAC,SAAS,KAAA;IA0C9B,0BAA0B;IA2B1B,eAAe,CAAC,EAAE,KAAA,EAAE,EAAC,cAAc,EAAE,sBAA2B,EAAE,GAAG,KAAK,EAAC;;;KAAA,GAAG,iBAAiB;IA2D/F,YAAY,IAAI,KAAK,GAAG,IAAI,GAAG,UAAU;CAmC1C"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AccessorFunction, DefaultProps } from '@deck.gl/core/typed';
|
|
2
2
|
import { _GeoCellLayer as GeoCellLayer, _GeoCellLayerProps as GeoCellLayerProps } from '@deck.gl/geo-layers/typed';
|
|
3
3
|
/** All properties supported by QuadbinLayer. */
|
|
4
|
-
export declare type QuadbinLayerProps<DataT =
|
|
4
|
+
export declare type QuadbinLayerProps<DataT = unknown> = _QuadbinLayerProps<DataT> & GeoCellLayerProps<DataT>;
|
|
5
5
|
/** Properties added by QuadbinLayer. */
|
|
6
6
|
declare type _QuadbinLayerProps<DataT> = {
|
|
7
7
|
/**
|
|
@@ -13,7 +13,7 @@ declare type _QuadbinLayerProps<DataT> = {
|
|
|
13
13
|
};
|
|
14
14
|
export default class QuadbinLayer<DataT = any, ExtraProps extends {} = {}> extends GeoCellLayer<DataT, Required<_QuadbinLayerProps<DataT>> & ExtraProps> {
|
|
15
15
|
static layerName: string;
|
|
16
|
-
static defaultProps: DefaultProps<QuadbinLayerProps<
|
|
16
|
+
static defaultProps: DefaultProps<QuadbinLayerProps<unknown>>;
|
|
17
17
|
indexToBounds(): Partial<GeoCellLayer['props']> | null;
|
|
18
18
|
}
|
|
19
19
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quadbin-layer.d.ts","sourceRoot":"","sources":["../../src/layers/quadbin-layer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AAC7D,OAAO,EACL,aAAa,IAAI,YAAY,EAC7B,kBAAkB,IAAI,iBAAiB,EACxC,MAAM,qBAAqB,CAAC;AAO7B,gDAAgD;AAChD,oBAAY,iBAAiB,CAAC,KAAK,GAAG,
|
|
1
|
+
{"version":3,"file":"quadbin-layer.d.ts","sourceRoot":"","sources":["../../src/layers/quadbin-layer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AAC7D,OAAO,EACL,aAAa,IAAI,YAAY,EAC7B,kBAAkB,IAAI,iBAAiB,EACxC,MAAM,qBAAqB,CAAC;AAO7B,gDAAgD;AAChD,oBAAY,iBAAiB,CAAC,KAAK,GAAG,OAAO,IAAI,kBAAkB,CAAC,KAAK,CAAC,GACxE,iBAAiB,CAAC,KAAK,CAAC,CAAC;AAE3B,wCAAwC;AACxC,aAAK,kBAAkB,CAAC,KAAK,IAAI;IAC/B;;;;OAIG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;CAC9C,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,YAAY,CAAC,KAAK,GAAG,GAAG,EAAE,UAAU,SAAS,EAAE,GAAG,EAAE,CAAE,SAAQ,YAAY,CAC7F,KAAK,EACL,QAAQ,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,GAAG,UAAU,CACjD;IACC,MAAM,CAAC,SAAS,SAAkB;IAClC,MAAM,CAAC,YAAY,2CAAgB;IAEnC,aAAa,IAAI,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,GAAG,IAAI;CAcvD"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { CompositeLayer, CompositeLayerProps, Layer, LayersList, DefaultProps } from '@deck.gl/core/typed';
|
|
2
2
|
import QuadbinLayer, { QuadbinLayerProps } from './quadbin-layer';
|
|
3
|
-
import {
|
|
3
|
+
import { SpatialIndexTileLayerProps } from './spatial-index-tile-layer';
|
|
4
|
+
import type { TilejsonResult } from '../sources/types';
|
|
4
5
|
export declare const renderSubLayers: (props: any) => QuadbinLayer<any, {
|
|
5
6
|
getQuadbin: (d: any) => any;
|
|
6
7
|
}> | null;
|
|
7
8
|
/** All properties supported by QuadbinTileLayer. */
|
|
8
|
-
export declare type QuadbinTileLayerProps<DataT =
|
|
9
|
+
export declare type QuadbinTileLayerProps<DataT = unknown> = _QuadbinTileLayerProps<DataT> & CompositeLayerProps;
|
|
9
10
|
/** Properties added by QuadbinTileLayer. */
|
|
10
|
-
declare type _QuadbinTileLayerProps<DataT> = Omit<QuadbinLayerProps<DataT>, 'data'> & {
|
|
11
|
-
data: null |
|
|
12
|
-
aggregationResLevel?: number;
|
|
11
|
+
declare type _QuadbinTileLayerProps<DataT> = Omit<QuadbinLayerProps<DataT>, 'data'> & Omit<SpatialIndexTileLayerProps<DataT>, 'data'> & {
|
|
12
|
+
data: null | TilejsonResult | Promise<TilejsonResult>;
|
|
13
13
|
};
|
|
14
14
|
export default class QuadbinTileLayer<DataT = any, ExtraProps extends {} = {}> extends CompositeLayer<ExtraProps & Required<_QuadbinTileLayerProps<DataT>>> {
|
|
15
15
|
static layerName: string;
|
|
16
|
-
static defaultProps: DefaultProps<QuadbinTileLayerProps<
|
|
16
|
+
static defaultProps: DefaultProps<QuadbinTileLayerProps<unknown>>;
|
|
17
17
|
getLoadOptions(): any;
|
|
18
18
|
renderLayers(): Layer | null | LayersList;
|
|
19
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quadbin-tile-layer.d.ts","sourceRoot":"","sources":["../../src/layers/quadbin-tile-layer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAE,mBAAmB,EAAE,KAAK,EAAE,U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B1C"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Accessor, CompositeLayer, CompositeLayerProps, Layer, LayersList, DefaultProps } from '@deck.gl/core/typed';
|
|
2
2
|
import { ColumnLayerProps } from '@deck.gl/layers/typed';
|
|
3
3
|
/** All properties supported by RasterLayer. */
|
|
4
|
-
export declare type RasterLayerProps<DataT =
|
|
4
|
+
export declare type RasterLayerProps<DataT = unknown> = _RasterLayerProps & ColumnLayerProps<DataT> & CompositeLayerProps;
|
|
5
5
|
/** Properties added by RasterLayer. */
|
|
6
6
|
declare type _RasterLayerProps = {
|
|
7
7
|
/**
|
|
@@ -11,7 +11,7 @@ declare type _RasterLayerProps = {
|
|
|
11
11
|
};
|
|
12
12
|
export default class RasterLayer<DataT = any, ExtraProps = {}> extends CompositeLayer<Required<RasterLayerProps<DataT>> & ExtraProps> {
|
|
13
13
|
static layerName: string;
|
|
14
|
-
static defaultProps: DefaultProps<RasterLayerProps<
|
|
14
|
+
static defaultProps: DefaultProps<RasterLayerProps<unknown>>;
|
|
15
15
|
renderLayers(): Layer | null | LayersList;
|
|
16
16
|
protected getSubLayerAccessor<In, Out>(accessor: Accessor<In, Out>): Accessor<In, Out>;
|
|
17
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"raster-layer.d.ts","sourceRoot":"","sources":["../../src/layers/raster-layer.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EACR,cAAc,EACd,mBAAmB,EACnB,KAAK,EACL,UAAU,EACV,YAAY,EACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAc,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AAyD9D,+CAA+C;AAC/C,oBAAY,gBAAgB,CAAC,KAAK,GAAG,
|
|
1
|
+
{"version":3,"file":"raster-layer.d.ts","sourceRoot":"","sources":["../../src/layers/raster-layer.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EACR,cAAc,EACd,mBAAmB,EACnB,KAAK,EACL,UAAU,EACV,YAAY,EACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAc,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AAyD9D,+CAA+C;AAC/C,oBAAY,gBAAgB,CAAC,KAAK,GAAG,OAAO,IAAI,iBAAiB,GAC/D,gBAAgB,CAAC,KAAK,CAAC,GACvB,mBAAmB,CAAC;AAEtB,uCAAuC;AACvC,aAAK,iBAAiB,GAAG;IACvB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAGF,MAAM,CAAC,OAAO,OAAO,WAAW,CAAC,KAAK,GAAG,GAAG,EAAE,UAAU,GAAG,EAAE,CAAE,SAAQ,cAAc,CACnF,QAAQ,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,GAAG,UAAU,CAC/C;IACC,MAAM,CAAC,SAAS,SAAiB;IACjC,MAAM,CAAC,YAAY,0CAAgB;IAEnC,YAAY,IAAI,KAAK,GAAG,IAAI,GAAG,UAAU;IA6CzC,SAAS,CAAC,mBAAmB,CAAC,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAAE,EAAE,GAAG,CAAC,GAAG,QAAQ,CAAC,EAAE,EAAE,GAAG,CAAC;CAcvF"}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { CompositeLayer, CompositeLayerProps, DefaultProps, Layer, LayersList } from '@deck.gl/core/typed';
|
|
2
2
|
import RasterLayer, { RasterLayerProps } from './raster-layer';
|
|
3
|
-
import {
|
|
3
|
+
import { SpatialIndexTileLayerProps } from './spatial-index-tile-layer';
|
|
4
|
+
import type { TilejsonResult } from '../sources/types';
|
|
4
5
|
export declare const renderSubLayers: (props: any) => RasterLayer<any, {
|
|
5
6
|
tileIndex: any;
|
|
6
7
|
}> | null;
|
|
7
8
|
/** All properties supported by RasterTileLayer. */
|
|
8
|
-
export declare type RasterTileLayerProps<DataT =
|
|
9
|
+
export declare type RasterTileLayerProps<DataT = unknown> = _RasterTileLayerProps<DataT> & CompositeLayerProps;
|
|
9
10
|
/** Properties added by RasterTileLayer. */
|
|
10
|
-
declare type _RasterTileLayerProps<DataT> = Omit<RasterLayerProps<DataT>, 'data'> & {
|
|
11
|
-
data: null |
|
|
11
|
+
declare type _RasterTileLayerProps<DataT> = Omit<RasterLayerProps<DataT>, 'data'> & Omit<SpatialIndexTileLayerProps<DataT>, 'data'> & {
|
|
12
|
+
data: null | TilejsonResult | Promise<TilejsonResult>;
|
|
12
13
|
};
|
|
13
14
|
export default class RasterTileLayer<DataT = any, ExtraProps extends {} = {}> extends CompositeLayer<ExtraProps & Required<_RasterTileLayerProps<DataT>>> {
|
|
14
15
|
static layerName: string;
|
|
15
|
-
static defaultProps: DefaultProps<RasterTileLayerProps<
|
|
16
|
+
static defaultProps: DefaultProps<RasterTileLayerProps<unknown>>;
|
|
16
17
|
getLoadOptions(): any;
|
|
17
18
|
renderLayers(): Layer | null | LayersList;
|
|
18
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"raster-tile-layer.d.ts","sourceRoot":"","sources":["../../src/layers/raster-tile-layer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAE,mBAAmB,EAAE,YAAY,EAAE,KAAK,EAAE,UAAU,EAAC,MAAM,eAAe,CAAC;AACnG,OAAO,WAAW,EAAE,EAAC,gBAAgB,EAAC,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"raster-tile-layer.d.ts","sourceRoot":"","sources":["../../src/layers/raster-tile-layer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAE,mBAAmB,EAAE,YAAY,EAAE,KAAK,EAAE,UAAU,EAAC,MAAM,eAAe,CAAC;AACnG,OAAO,WAAW,EAAE,EAAC,gBAAgB,EAAC,MAAM,gBAAgB,CAAC;AAE7D,OAA8B,EAAC,0BAA0B,EAAC,MAAM,4BAA4B,CAAC;AAC7F,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAGrD,eAAO,MAAM,eAAe;;SAI3B,CAAC;AAMF,mDAAmD;AACnD,oBAAY,oBAAoB,CAAC,KAAK,GAAG,OAAO,IAAI,qBAAqB,CAAC,KAAK,CAAC,GAC9E,mBAAmB,CAAC;AAEtB,2CAA2C;AAC3C,aAAK,qBAAqB,CAAC,KAAK,IAAI,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,GACvE,IAAI,CAAC,0BAA0B,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,GAAG;IAChD,IAAI,EAAE,IAAI,GAAG,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;CACvD,CAAC;AAEJ,MAAM,CAAC,OAAO,OAAO,eAAe,CAClC,KAAK,GAAG,GAAG,EACX,UAAU,SAAS,EAAE,GAAG,EAAE,CAC1B,SAAQ,cAAc,CAAC,UAAU,GAAG,QAAQ,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC,CAAC;IAC3E,MAAM,CAAC,SAAS,SAAqB;IACrC,MAAM,CAAC,YAAY,8CAAgB;IAEnC,cAAc,IAAI,GAAG;IAOrB,YAAY,IAAI,KAAK,GAAG,IAAI,GAAG,UAAU;CAmB1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"carto-properties-tile-loader.d.ts","sourceRoot":"","sources":["../../../src/layers/schema/carto-properties-tile-loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAKzE,QAAA,MAAM,yBAAyB,EAAE,gBAYhC,CAAC;AAOF,eAAe,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NumericProp } from './carto-tile';
|
|
2
|
+
export interface Tile {
|
|
3
|
+
properties: Record<string, string>[];
|
|
4
|
+
numericProps: Record<string, NumericProp>;
|
|
5
|
+
}
|
|
6
|
+
export declare class TileReader {
|
|
7
|
+
static read(pbf: any, end?: number): Tile;
|
|
8
|
+
static _readField(this: void, tag: number, obj: Tile, pbf: any): void;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=carto-properties-tile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"carto-properties-tile.d.ts","sourceRoot":"","sources":["../../../src/layers/schema/carto-properties-tile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAA8C,MAAM,cAAc,CAAC;AAItF,MAAM,WAAW,IAAI;IACnB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;IACrC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;CAC3C;AAED,qBAAa,UAAU;IACrB,MAAM,CAAC,IAAI,CAAC,GAAG,KAAA,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI;IAGpC,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAA;CAO1D"}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { DefaultProps
|
|
1
|
+
import { DefaultProps } from '@deck.gl/core/typed';
|
|
2
2
|
import { PickingInfo } from '@deck.gl/core/typed';
|
|
3
|
-
import { TileLayer, _Tile2DHeader as Tile2DHeader } from '@deck.gl/geo-layers/typed';
|
|
3
|
+
import { TileLayer, _Tile2DHeader as Tile2DHeader, TileLayerProps } from '@deck.gl/geo-layers/typed';
|
|
4
4
|
/** All properties supported by SpatialIndexTileLayer. */
|
|
5
|
-
export declare type SpatialIndexTileLayerProps<DataT =
|
|
5
|
+
export declare type SpatialIndexTileLayerProps<DataT = unknown> = _SpatialIndexTileLayerProps & TileLayerProps<DataT>;
|
|
6
6
|
/** Properties added by SpatialIndexTileLayer. */
|
|
7
|
-
declare type _SpatialIndexTileLayerProps = {
|
|
8
|
-
aggregationResLevel?: number;
|
|
9
|
-
};
|
|
7
|
+
declare type _SpatialIndexTileLayerProps = {};
|
|
10
8
|
export default class SpatialIndexTileLayer<DataT = any, ExtraProps extends {} = {}> extends TileLayer<DataT, ExtraProps & Required<_SpatialIndexTileLayerProps>> {
|
|
11
9
|
static layerName: string;
|
|
12
|
-
static defaultProps: DefaultProps<SpatialIndexTileLayerProps<
|
|
13
|
-
|
|
10
|
+
static defaultProps: DefaultProps<SpatialIndexTileLayerProps<unknown>>;
|
|
11
|
+
state: TileLayer<DataT>['state'] & {
|
|
12
|
+
hoveredFeatureId: number | null;
|
|
13
|
+
highlightColor: number[];
|
|
14
|
+
};
|
|
14
15
|
protected _updateAutoHighlight(info: PickingInfo): void;
|
|
15
16
|
getSubLayerPropsByTile(tile: Tile2DHeader): {
|
|
16
17
|
highlightedObjectIndex: number;
|
|
17
|
-
highlightColor:
|
|
18
|
+
highlightColor: number[];
|
|
18
19
|
};
|
|
19
20
|
getHighlightedObjectIndex(tile: Tile2DHeader): number;
|
|
20
21
|
_featureInTile(tile: Tile2DHeader, featureId: BigInt | number): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spatial-index-tile-layer.d.ts","sourceRoot":"","sources":["../../src/layers/spatial-index-tile-layer.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"spatial-index-tile-layer.d.ts","sourceRoot":"","sources":["../../src/layers/spatial-index-tile-layer.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAK3C,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAC,SAAS,EAAE,aAAa,IAAI,YAAY,EAAE,cAAc,EAAC,MAAM,qBAAqB,CAAC;AAQ7F,yDAAyD;AACzD,oBAAY,0BAA0B,CAAC,KAAK,GAAG,OAAO,IAAI,2BAA2B,GACnF,cAAc,CAAC,KAAK,CAAC,CAAC;AAExB,iDAAiD;AACjD,aAAK,2BAA2B,GAAG,EAAE,CAAC;AAEtC,MAAM,CAAC,OAAO,OAAO,qBAAqB,CACxC,KAAK,GAAG,GAAG,EACX,UAAU,SAAS,EAAE,GAAG,EAAE,CAC1B,SAAQ,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,QAAQ,CAAC,2BAA2B,CAAC,CAAC;IAC5E,MAAM,CAAC,SAAS,SAA2B;IAC3C,MAAM,CAAC,YAAY,oDAAgB;IAEnC,KAAK,EAAG,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,GAAG;QAClC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;QAChC,cAAc,EAAE,MAAM,EAAE,CAAC;KAC1B,CAAC;IAEF,SAAS,CAAC,oBAAoB,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI;IAsBvD,sBAAsB,CAAC,IAAI,EAAE,YAAY;;;;IAOzC,yBAAyB,CAAC,IAAI,EAAE,YAAY;IAiB5C,cAAc,CAAC,IAAI,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM;CAe9D"}
|
package/typed/layers/utils.d.ts
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
|
+
import { Tile as PropertiesTile } from './schema/carto-properties-tile';
|
|
2
|
+
import { Tile as VectorTile } from './schema/carto-tile';
|
|
3
|
+
import type { TilejsonResult } from '../sources/types';
|
|
1
4
|
/**
|
|
2
5
|
* Adds access token to Authorization header in loadOptions
|
|
3
6
|
*/
|
|
4
7
|
export declare function injectAccessToken(loadOptions: any, accessToken: string): void;
|
|
8
|
+
export declare function mergeBoundaryData(geometry: VectorTile, properties: PropertiesTile): VectorTile;
|
|
9
|
+
export declare const TilejsonPropType: {
|
|
10
|
+
type: "object";
|
|
11
|
+
value: TilejsonResult | null;
|
|
12
|
+
validate: (value: TilejsonResult, propType: any) => any;
|
|
13
|
+
equal: (value1: any, value2: any) => boolean;
|
|
14
|
+
async: boolean;
|
|
15
|
+
};
|
|
5
16
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/layers/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/layers/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,IAAI,cAAc,EAAC,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAC,IAAI,IAAI,UAAU,EAAC,MAAM,qBAAqB,CAAC;AAEvD,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAErD;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,GAAG,IAAI,CAO7E;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,GAAG,UAAU,CAmD9F;AAED,eAAO,MAAM,gBAAgB;;;sBAGT,cAAc;;;CASjC,CAAC"}
|
|
@@ -1,28 +1,23 @@
|
|
|
1
1
|
import { DefaultProps } from '@deck.gl/core/typed';
|
|
2
2
|
import { MVTLayer, MVTLayerProps, TileLayer, _Tile2DHeader, _TileLoadProps as TileLoadProps } from '@deck.gl/geo-layers/typed';
|
|
3
3
|
import { GeoJsonLayer } from '@deck.gl/layers/typed';
|
|
4
|
-
import {
|
|
5
|
-
import { CartoTilejsonResult } from '../sources/common';
|
|
4
|
+
import type { TilejsonResult } from '../sources/types';
|
|
6
5
|
/** All properties supported by VectorTileLayer. */
|
|
7
6
|
export declare type VectorTileLayerProps = _VectorTileLayerProps & Omit<MVTLayerProps, 'data'>;
|
|
8
7
|
/** Properties added by VectorTileLayer. */
|
|
9
8
|
declare type _VectorTileLayerProps = {
|
|
10
|
-
data: null |
|
|
11
|
-
/** Use to override the default tile data format.
|
|
12
|
-
*
|
|
13
|
-
* Possible values are: `TILE_FORMATS.BINARY`, `TILE_FORMATS.GEOJSON` and `TILE_FORMATS.MVT`.
|
|
14
|
-
*
|
|
15
|
-
* Only supported when `apiVersion` is `API_VERSIONS.V3` and `format` is `FORMATS.TILEJSON`.
|
|
16
|
-
*/
|
|
17
|
-
formatTiles?: TileFormat;
|
|
9
|
+
data: null | TilejsonResult | Promise<TilejsonResult>;
|
|
18
10
|
};
|
|
19
11
|
export default class VectorTileLayer<ExtraProps extends {} = {}> extends MVTLayer<Required<_VectorTileLayerProps> & ExtraProps> {
|
|
20
12
|
static layerName: string;
|
|
21
13
|
static defaultProps: DefaultProps<VectorTileLayerProps>;
|
|
14
|
+
state: MVTLayer['state'] & {
|
|
15
|
+
mvt: boolean;
|
|
16
|
+
};
|
|
22
17
|
initializeState(): void;
|
|
23
18
|
updateState(parameters: any): void;
|
|
24
19
|
getLoadOptions(): any;
|
|
25
|
-
getTileData(tile: TileLoadProps): any
|
|
20
|
+
getTileData(tile: TileLoadProps): Promise<any>;
|
|
26
21
|
renderSubLayers(props: TileLayer['props'] & {
|
|
27
22
|
id: string;
|
|
28
23
|
data: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vector-tile-layer.d.ts","sourceRoot":"","sources":["../../src/layers/vector-tile-layer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vector-tile-layer.d.ts","sourceRoot":"","sources":["../../src/layers/vector-tile-layer.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAE3C,OAAO,EACL,QAAQ,EACR,aAAa,EACb,SAAS,EAET,aAAa,EACb,cAAc,IAAI,aAAa,EAChC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAK7C,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AASrD,mDAAmD;AACnD,oBAAY,oBAAoB,GAAG,qBAAqB,GAAG,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;AAEvF,2CAA2C;AAC3C,aAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,IAAI,GAAG,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;CACvD,CAAC;AAIF,MAAM,CAAC,OAAO,OAAO,eAAe,CAAC,UAAU,SAAS,EAAE,GAAG,EAAE,CAAE,SAAQ,QAAQ,CAC/E,QAAQ,CAAC,qBAAqB,CAAC,GAAG,UAAU,CAC7C;IACC,MAAM,CAAC,SAAS,SAAqB;IACrC,MAAM,CAAC,YAAY,qCAAgB;IAEnC,KAAK,EAAG,QAAQ,CAAC,OAAO,CAAC,GAAG;QAC1B,GAAG,EAAE,OAAO,CAAC;KACd,CAAC;IAEF,eAAe,IAAI,IAAI;IAKvB,WAAW,CAAC,UAAU,KAAA;IAWtB,cAAc,IAAI,GAAG;IAQf,WAAW,CAAC,IAAI,EAAE,aAAa;IAoCrC,eAAe,CACb,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC,GAAG;QAC1B,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,GAAG,CAAC;QACV,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,EAAE,aAAa,CAAC;KACrB,GACA,YAAY,GAAG,IAAI;IAuBtB,cAAc,CAAC,MAAM,KAAA;CAYtB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { MapType } from '../api/
|
|
2
|
-
import {
|
|
3
|
-
export declare
|
|
1
|
+
import type { MapType } from '../api/types';
|
|
2
|
+
import type { GeojsonResult, JsonResult, SourceOptionalOptions, SourceRequiredOptions, TilejsonResult } from './types';
|
|
3
|
+
export declare const SOURCE_DEFAULTS: SourceOptionalOptions;
|
|
4
|
+
export declare function baseSource<UrlParameters extends Record<string, string>>(endpoint: MapType, options: Partial<SourceOptionalOptions> & SourceRequiredOptions, urlParameters: UrlParameters): Promise<TilejsonResult | GeojsonResult | JsonResult>;
|
|
4
5
|
//# sourceMappingURL=base-source.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-source.d.ts","sourceRoot":"","sources":["../../src/sources/base-source.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base-source.d.ts","sourceRoot":"","sources":["../../src/sources/base-source.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAkB,OAAO,EAAC,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,EACV,aAAa,EACb,UAAU,EACV,qBAAqB,EACrB,qBAAqB,EAGrB,cAAc,EACf,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,eAAe,EAAE,qBAK7B,CAAC;AAEF,wBAAsB,UAAU,CAAC,aAAa,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC3E,QAAQ,EAAE,OAAO,EACjB,OAAO,EAAE,OAAO,CAAC,qBAAqB,CAAC,GAAG,qBAAqB,EAC/D,aAAa,EAAE,aAAa,GAC3B,OAAO,CAAC,cAAc,GAAG,aAAa,GAAG,UAAU,CAAC,CA6CtD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { QueryParameters } from '../api';
|
|
2
|
+
import type { SourceOptions, TilejsonResult } from './types';
|
|
3
|
+
export declare type BoundaryQuerySourceOptions = SourceOptions & {
|
|
4
|
+
boundaryId: string;
|
|
5
|
+
matchingColumn?: string;
|
|
6
|
+
sqlQuery: string;
|
|
7
|
+
queryParameters?: QueryParameters;
|
|
8
|
+
};
|
|
9
|
+
export declare const boundaryQuerySource: (options: BoundaryQuerySourceOptions) => Promise<TilejsonResult>;
|
|
10
|
+
//# sourceMappingURL=boundary-query-source.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boundary-query-source.d.ts","sourceRoot":"","sources":["../../src/sources/boundary-query-source.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,QAAQ,CAAC;AAEvC,OAAO,KAAK,EAAC,aAAa,EAAE,cAAc,EAAC,MAAM,SAAS,CAAC;AAE3D,oBAAY,0BAA0B,GAAG,aAAa,GAAG;IACvD,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC,CAAC;AAQF,eAAO,MAAM,mBAAmB,YACrB,0BAA0B,KAClC,QAAQ,cAAc,CAWxB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SourceOptions, TilejsonResult } from './types';
|
|
2
|
+
export declare type BoundaryTableSourceOptions = SourceOptions & {
|
|
3
|
+
boundaryId: string;
|
|
4
|
+
columns?: string[];
|
|
5
|
+
matchingColumn?: string;
|
|
6
|
+
tableName: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const boundaryTableSource: (options: BoundaryTableSourceOptions) => Promise<TilejsonResult>;
|
|
9
|
+
//# sourceMappingURL=boundary-table-source.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boundary-table-source.d.ts","sourceRoot":"","sources":["../../src/sources/boundary-table-source.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,aAAa,EAAE,cAAc,EAAC,MAAM,SAAS,CAAC;AAE3D,oBAAY,0BAA0B,GAAG,aAAa,GAAG;IACvD,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAQF,eAAO,MAAM,mBAAmB,YACrB,0BAA0B,KAClC,QAAQ,cAAc,CAYxB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { SourceOptions, TilejsonResult } from './types';
|
|
2
|
+
export declare type BoundaryTilesetSourceOptions = SourceOptions & {
|
|
3
|
+
boundaryId: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const boundaryTilesetSource: (options: BoundaryTilesetSourceOptions) => Promise<TilejsonResult>;
|
|
6
|
+
//# sourceMappingURL=boundary-tileset-source.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boundary-tileset-source.d.ts","sourceRoot":"","sources":["../../src/sources/boundary-tileset-source.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,aAAa,EAAE,cAAc,EAAC,MAAM,SAAS,CAAC;AAE3D,oBAAY,4BAA4B,GAAG,aAAa,GAAG;IAAC,UAAU,EAAE,MAAM,CAAA;CAAC,CAAC;AAGhF,eAAO,MAAM,qBAAqB,YACvB,4BAA4B,KACpC,QAAQ,cAAc,CAKxB,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare type
|
|
3
|
-
declare const
|
|
4
|
-
export { cartoH3QuerySource };
|
|
1
|
+
import type { AggregationOptions, QuerySourceOptions, SourceOptions, TilejsonResult } from './types';
|
|
2
|
+
export declare type H3QuerySourceOptions = SourceOptions & QuerySourceOptions & AggregationOptions;
|
|
3
|
+
export declare const h3QuerySource: (options: H3QuerySourceOptions) => Promise<TilejsonResult>;
|
|
5
4
|
//# sourceMappingURL=h3-query-source.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"h3-query-source.d.ts","sourceRoot":"","sources":["../../src/sources/h3-query-source.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"h3-query-source.d.ts","sourceRoot":"","sources":["../../src/sources/h3-query-source.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EAEb,cAAc,EACf,MAAM,SAAS,CAAC;AAEjB,oBAAY,oBAAoB,GAAG,aAAa,GAAG,kBAAkB,GAAG,kBAAkB,CAAC;AAU3F,eAAO,MAAM,aAAa,YACf,oBAAoB,KAC5B,QAAQ,cAAc,CAsBxB,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare type
|
|
3
|
-
declare const
|
|
4
|
-
export { cartoH3TableSource };
|
|
1
|
+
import type { AggregationOptions, SourceOptions, TableSourceOptions, TilejsonResult } from './types';
|
|
2
|
+
export declare type H3TableSourceOptions = SourceOptions & TableSourceOptions & AggregationOptions;
|
|
3
|
+
export declare const h3TableSource: (options: H3TableSourceOptions) => Promise<TilejsonResult>;
|
|
5
4
|
//# sourceMappingURL=h3-table-source.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"h3-table-source.d.ts","sourceRoot":"","sources":["../../src/sources/h3-table-source.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"h3-table-source.d.ts","sourceRoot":"","sources":["../../src/sources/h3-table-source.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,kBAAkB,EAClB,aAAa,EAEb,kBAAkB,EAClB,cAAc,EACf,MAAM,SAAS,CAAC;AAEjB,oBAAY,oBAAoB,GAAG,aAAa,GAAG,kBAAkB,GAAG,kBAAkB,CAAC;AAW3F,eAAO,MAAM,aAAa,YACf,oBAAoB,KAC5B,QAAQ,cAAc,CAsBxB,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare type
|
|
3
|
-
declare const
|
|
4
|
-
export { cartoH3TilesetSource };
|
|
1
|
+
import type { SourceOptions, TilejsonResult, TilesetSourceOptions } from './types';
|
|
2
|
+
export declare type H3TilesetSourceOptions = SourceOptions & TilesetSourceOptions;
|
|
3
|
+
export declare const h3TilesetSource: (options: H3TilesetSourceOptions) => Promise<TilejsonResult>;
|
|
5
4
|
//# sourceMappingURL=h3-tileset-source.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"h3-tileset-source.d.ts","sourceRoot":"","sources":["../../src/sources/h3-tileset-source.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"h3-tileset-source.d.ts","sourceRoot":"","sources":["../../src/sources/h3-tileset-source.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,aAAa,EAAE,cAAc,EAAE,oBAAoB,EAAC,MAAM,SAAS,CAAC;AAEjF,oBAAY,sBAAsB,GAAG,aAAa,GAAG,oBAAoB,CAAC;AAG1E,eAAO,MAAM,eAAe,YACjB,sBAAsB,KAC9B,QAAQ,cAAc,CAKxB,CAAC"}
|
package/typed/sources/index.d.ts
CHANGED
|
@@ -1,23 +1,29 @@
|
|
|
1
|
-
export { SOURCE_DEFAULTS } from './
|
|
2
|
-
export type {
|
|
3
|
-
export {
|
|
4
|
-
export type {
|
|
5
|
-
export {
|
|
6
|
-
export type {
|
|
7
|
-
export {
|
|
8
|
-
export type {
|
|
9
|
-
export {
|
|
10
|
-
export type {
|
|
11
|
-
export {
|
|
12
|
-
export type {
|
|
13
|
-
export {
|
|
14
|
-
export type {
|
|
15
|
-
export {
|
|
16
|
-
export type {
|
|
17
|
-
export {
|
|
18
|
-
export type {
|
|
19
|
-
export {
|
|
20
|
-
export type {
|
|
21
|
-
export {
|
|
22
|
-
export type {
|
|
1
|
+
export { SOURCE_DEFAULTS } from './base-source';
|
|
2
|
+
export type { TilejsonResult, GeojsonResult, JsonResult } from './types';
|
|
3
|
+
export { boundaryQuerySource } from './boundary-query-source';
|
|
4
|
+
export type { BoundaryQuerySourceOptions } from './boundary-query-source';
|
|
5
|
+
export { boundaryTableSource } from './boundary-table-source';
|
|
6
|
+
export type { BoundaryTableSourceOptions } from './boundary-table-source';
|
|
7
|
+
export { boundaryTilesetSource } from './boundary-tileset-source';
|
|
8
|
+
export type { BoundaryTilesetSourceOptions } from './boundary-tileset-source';
|
|
9
|
+
export { h3QuerySource } from './h3-query-source';
|
|
10
|
+
export type { H3QuerySourceOptions } from './h3-query-source';
|
|
11
|
+
export { h3TableSource } from './h3-table-source';
|
|
12
|
+
export type { H3TableSourceOptions } from './h3-table-source';
|
|
13
|
+
export { h3TilesetSource } from './h3-tileset-source';
|
|
14
|
+
export type { H3TilesetSourceOptions } from './h3-tileset-source';
|
|
15
|
+
export { rasterSource } from './raster-source';
|
|
16
|
+
export type { RasterSourceOptions } from './raster-source';
|
|
17
|
+
export { quadbinQuerySource } from './quadbin-query-source';
|
|
18
|
+
export type { QuadbinQuerySourceOptions } from './quadbin-query-source';
|
|
19
|
+
export { quadbinTableSource } from './quadbin-table-source';
|
|
20
|
+
export type { QuadbinTableSourceOptions } from './quadbin-table-source';
|
|
21
|
+
export { quadbinTilesetSource } from './quadbin-tileset-source';
|
|
22
|
+
export type { QuadbinTilesetSourceOptions } from './quadbin-tileset-source';
|
|
23
|
+
export { vectorQuerySource } from './vector-query-source';
|
|
24
|
+
export type { VectorQuerySourceOptions } from './vector-query-source';
|
|
25
|
+
export { vectorTableSource } from './vector-table-source';
|
|
26
|
+
export type { VectorTableSourceOptions } from './vector-table-source';
|
|
27
|
+
export { vectorTilesetSource } from './vector-tileset-source';
|
|
28
|
+
export type { VectorTilesetSourceOptions } from './vector-tileset-source';
|
|
23
29
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,eAAe,CAAC;AAC9C,YAAY,EAAC,cAAc,EAAE,aAAa,EAAE,UAAU,EAAC,MAAM,SAAS,CAAC;AAEvE,OAAO,EAAC,mBAAmB,EAAC,MAAM,yBAAyB,CAAC;AAC5D,YAAY,EAAC,0BAA0B,EAAC,MAAM,yBAAyB,CAAC;AAExE,OAAO,EAAC,mBAAmB,EAAC,MAAM,yBAAyB,CAAC;AAC5D,YAAY,EAAC,0BAA0B,EAAC,MAAM,yBAAyB,CAAC;AAExE,OAAO,EAAC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