@deck.gl/carto 9.0.0-beta.3 → 9.0.0-beta.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/api/carto-api-error.d.ts +1 -1
- package/dist/api/carto-api-error.d.ts.map +1 -1
- package/dist/api/endpoints.d.ts +1 -1
- package/dist/api/endpoints.d.ts.map +1 -1
- package/dist/api/index.d.ts +6 -6
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/layer-map.d.ts +6 -6
- package/dist/api/layer-map.d.ts.map +1 -1
- package/dist/api/query.d.ts +1 -1
- package/dist/api/query.d.ts.map +1 -1
- package/dist/api/request-with-parameters.d.ts +1 -1
- package/dist/api/request-with-parameters.d.ts.map +1 -1
- package/dist/api/types.d.ts +18 -1
- package/dist/api/types.d.ts.map +1 -1
- package/dist/api/types.js +8 -0
- package/dist/cartoRasterTile-worker.js +1 -1
- package/dist/cartoSpatialTile-worker.js +1 -1
- package/dist/cartoVectorTile-worker.js +1 -1
- package/dist/dist.dev.js +37 -7
- package/dist/index.cjs +33 -10
- package/dist/index.cjs.map +2 -2
- package/dist/index.d.ts +13 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/layers/h3-tile-layer.d.ts +2 -2
- package/dist/layers/h3-tile-layer.d.ts.map +1 -1
- package/dist/layers/quadbin-tile-layer.d.ts +3 -3
- package/dist/layers/quadbin-tile-layer.d.ts.map +1 -1
- package/dist/layers/raster-layer-vertex.glsl.d.ts +1 -1
- package/dist/layers/raster-layer-vertex.glsl.js +2 -2
- package/dist/layers/raster-layer.d.ts.map +1 -1
- package/dist/layers/raster-layer.js +3 -1
- package/dist/layers/raster-tile-layer.d.ts +3 -3
- package/dist/layers/raster-tile-layer.d.ts.map +1 -1
- package/dist/layers/schema/carto-properties-tile.d.ts +1 -1
- package/dist/layers/schema/carto-properties-tile.d.ts.map +1 -1
- package/dist/layers/schema/carto-raster-tile-loader.d.ts +1 -1
- package/dist/layers/schema/carto-raster-tile-loader.d.ts.map +1 -1
- package/dist/layers/schema/carto-raster-tile-loader.js +1 -1
- package/dist/layers/schema/carto-spatial-tile-loader.js +1 -1
- package/dist/layers/schema/carto-spatial-tile.d.ts +2 -2
- package/dist/layers/schema/carto-spatial-tile.d.ts.map +1 -1
- package/dist/layers/schema/carto-vector-tile-loader.js +1 -1
- package/dist/layers/utils.d.ts +3 -3
- package/dist/layers/utils.d.ts.map +1 -1
- package/dist/layers/vector-tile-layer.d.ts +2 -1
- package/dist/layers/vector-tile-layer.d.ts.map +1 -1
- package/dist/layers/vector-tile-layer.js +5 -1
- package/dist/sources/base-source.d.ts +2 -2
- package/dist/sources/base-source.d.ts.map +1 -1
- package/dist/sources/boundary-query-source.d.ts +4 -3
- package/dist/sources/boundary-query-source.d.ts.map +1 -1
- package/dist/sources/boundary-query-source.js +7 -1
- package/dist/sources/boundary-table-source.d.ts +2 -2
- package/dist/sources/boundary-table-source.d.ts.map +1 -1
- package/dist/sources/boundary-table-source.js +4 -1
- package/dist/sources/h3-query-source.d.ts +1 -1
- package/dist/sources/h3-query-source.d.ts.map +1 -1
- package/dist/sources/h3-table-source.d.ts +1 -1
- package/dist/sources/h3-table-source.d.ts.map +1 -1
- package/dist/sources/h3-tileset-source.d.ts +1 -1
- package/dist/sources/h3-tileset-source.d.ts.map +1 -1
- package/dist/sources/index.d.ts +26 -26
- package/dist/sources/index.d.ts.map +1 -1
- package/dist/sources/quadbin-query-source.d.ts +1 -1
- package/dist/sources/quadbin-query-source.d.ts.map +1 -1
- package/dist/sources/quadbin-table-source.d.ts +1 -1
- package/dist/sources/quadbin-table-source.d.ts.map +1 -1
- package/dist/sources/quadbin-tileset-source.d.ts +1 -1
- package/dist/sources/quadbin-tileset-source.d.ts.map +1 -1
- package/dist/sources/raster-source.d.ts +1 -1
- package/dist/sources/raster-source.d.ts.map +1 -1
- package/dist/sources/types.d.ts +7 -1
- package/dist/sources/types.d.ts.map +1 -1
- package/dist/sources/vector-query-source.d.ts +4 -2
- package/dist/sources/vector-query-source.d.ts.map +1 -1
- package/dist/sources/vector-query-source.js +7 -1
- package/dist/sources/vector-table-source.d.ts +2 -2
- package/dist/sources/vector-table-source.d.ts.map +1 -1
- package/dist/sources/vector-table-source.js +4 -1
- package/dist/sources/vector-tileset-source.d.ts +1 -1
- package/dist/sources/vector-tileset-source.d.ts.map +1 -1
- package/dist/style/color-bins-style.d.ts +2 -2
- package/dist/style/color-bins-style.d.ts.map +1 -1
- package/dist/style/color-categories-style.d.ts +2 -2
- package/dist/style/color-categories-style.d.ts.map +1 -1
- package/dist/style/color-continuous-style.d.ts +2 -2
- package/dist/style/color-continuous-style.d.ts.map +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist.min.js +5 -5
- package/package.json +2 -2
- package/src/api/types.ts +20 -0
- package/src/layers/raster-layer-vertex.glsl.ts +2 -2
- package/src/layers/raster-layer.ts +3 -1
- package/src/layers/vector-tile-layer.ts +6 -1
- package/src/sources/boundary-query-source.ts +26 -8
- package/src/sources/boundary-table-source.ts +13 -8
- package/src/sources/types.ts +8 -1
- package/src/sources/vector-query-source.ts +21 -3
- package/src/sources/vector-table-source.ts +13 -3
- package/src/.DS_Store +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { default as H3TileLayer } from
|
|
2
|
-
import { default as _PointLabelLayer } from
|
|
3
|
-
import { default as QuadbinTileLayer } from
|
|
4
|
-
import { default as RasterTileLayer } from
|
|
5
|
-
import { default as VectorTileLayer } from
|
|
1
|
+
import { default as H3TileLayer } from "./layers/h3-tile-layer.js";
|
|
2
|
+
import { default as _PointLabelLayer } from "./layers/point-label-layer.js";
|
|
3
|
+
import { default as QuadbinTileLayer } from "./layers/quadbin-tile-layer.js";
|
|
4
|
+
import { default as RasterTileLayer } from "./layers/raster-tile-layer.js";
|
|
5
|
+
import { default as VectorTileLayer } from "./layers/vector-tile-layer.js";
|
|
6
6
|
declare const CARTO_LAYERS: {
|
|
7
7
|
H3TileLayer: typeof H3TileLayer;
|
|
8
8
|
_PointLabelLayer: typeof _PointLabelLayer;
|
|
@@ -11,13 +11,13 @@ declare const CARTO_LAYERS: {
|
|
|
11
11
|
VectorTileLayer: typeof VectorTileLayer;
|
|
12
12
|
};
|
|
13
13
|
export { CARTO_LAYERS, H3TileLayer, _PointLabelLayer, QuadbinTileLayer, RasterTileLayer, VectorTileLayer };
|
|
14
|
-
export { default as BASEMAP } from
|
|
15
|
-
export { default as colorBins } from
|
|
16
|
-
export { default as colorCategories } from
|
|
17
|
-
export { default as colorContinuous } from
|
|
18
|
-
export { CartoAPIError, fetchMap, query } from
|
|
19
|
-
export type { APIErrorContext, FetchMapOptions, Format, MapType, RequestType, QueryParameters, QueryOptions } from
|
|
20
|
-
import { boundaryQuerySource, boundaryTableSource, h3QuerySource, h3TableSource, h3TilesetSource, rasterSource, quadbinQuerySource, quadbinTableSource, quadbinTilesetSource, vectorQuerySource, vectorTableSource, vectorTilesetSource, SOURCE_DEFAULTS } from
|
|
14
|
+
export { default as BASEMAP } from "./basemap.js";
|
|
15
|
+
export { default as colorBins } from "./style/color-bins-style.js";
|
|
16
|
+
export { default as colorCategories } from "./style/color-categories-style.js";
|
|
17
|
+
export { default as colorContinuous } from "./style/color-continuous-style.js";
|
|
18
|
+
export { CartoAPIError, fetchMap, query } from "./api/index.js";
|
|
19
|
+
export type { APIErrorContext, FetchMapOptions, Format, MapType, RequestType, QueryParameters, QueryOptions } from "./api/index.js";
|
|
20
|
+
import { boundaryQuerySource, boundaryTableSource, h3QuerySource, h3TableSource, h3TilesetSource, rasterSource, quadbinQuerySource, quadbinTableSource, quadbinTilesetSource, vectorQuerySource, vectorTableSource, vectorTilesetSource, SOURCE_DEFAULTS } from "./sources/index.js";
|
|
21
21
|
declare const CARTO_SOURCES: {
|
|
22
22
|
boundaryQuerySource: (options: import("./sources/boundary-query-source").BoundaryQuerySourceOptions) => Promise<import("./sources/types").TilejsonResult>;
|
|
23
23
|
boundaryTableSource: (options: import("./sources/boundary-table-source").BoundaryTableSourceOptions) => Promise<import("./sources/types").TilejsonResult>;
|
|
@@ -33,5 +33,5 @@ declare const CARTO_SOURCES: {
|
|
|
33
33
|
vectorTilesetSource: (options: import("./sources/vector-tileset-source").VectorTilesetSourceOptions) => Promise<import("./sources/types").TilejsonResult>;
|
|
34
34
|
};
|
|
35
35
|
export { boundaryQuerySource, boundaryTableSource, h3QuerySource, h3TableSource, h3TilesetSource, rasterSource, quadbinQuerySource, quadbinTableSource, quadbinTilesetSource, vectorQuerySource, vectorTableSource, vectorTilesetSource, CARTO_SOURCES, SOURCE_DEFAULTS };
|
|
36
|
-
export type { TilejsonResult, BoundaryQuerySourceOptions, BoundaryTableSourceOptions, H3QuerySourceOptions, H3TableSourceOptions, H3TilesetSourceOptions, RasterSourceOptions, QuadbinQuerySourceOptions, QuadbinTableSourceOptions, QuadbinTilesetSourceOptions, VectorQuerySourceOptions, VectorTableSourceOptions, VectorTilesetSourceOptions, GeojsonResult, JsonResult } from
|
|
36
|
+
export type { TilejsonResult, BoundaryQuerySourceOptions, BoundaryTableSourceOptions, H3QuerySourceOptions, H3TableSourceOptions, H3TilesetSourceOptions, RasterSourceOptions, QuadbinQuerySourceOptions, QuadbinTableSourceOptions, QuadbinTilesetSourceOptions, VectorQuerySourceOptions, VectorTableSourceOptions, VectorTilesetSourceOptions, GeojsonResult, JsonResult } from "./sources/index.js";
|
|
37
37
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,kCAA+B;AAC9D,OAAO,EAAC,OAAO,IAAI,gBAAgB,EAAC,sCAAmC;AACvE,OAAO,EAAC,OAAO,IAAI,gBAAgB,EAAC,uCAAoC;AACxE,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,sCAAmC;AACtE,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,sCAAmC;AACtE,QAAA,MAAM,YAAY;;;;;;CAMjB,CAAC;AACF,OAAO,EACL,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,eAAe,EAChB,CAAC;AAEF,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,qBAAkB;AAC7C,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,oCAAiC;AAC9D,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,0CAAuC;AAC1E,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,0CAAuC;AAC1E,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAC,uBAAoB;AAC3D,YAAY,EACV,eAAe,EACf,eAAe,EACf,MAAM,EACN,OAAO,EACP,WAAW,EACX,eAAe,EACf,YAAY,EACb,uBAAoB;AAErB,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,aAAa,EACb,aAAa,EACb,eAAe,EACf,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EAChB,2BAAwB;AAEzB,QAAA,MAAM,aAAa;;;;;;;;;;;;;CAalB,CAAC;AAEF,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,aAAa,EACb,aAAa,EACb,eAAe,EACf,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACb,eAAe,EAChB,CAAC;AAEF,YAAY,EACV,cAAc,EACd,0BAA0B,EAC1B,0BAA0B,EAC1B,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,yBAAyB,EACzB,yBAAyB,EACzB,2BAA2B,EAC3B,wBAAwB,EACxB,wBAAwB,EACxB,0BAA0B,EAC1B,aAAa,EACb,UAAU,EACX,2BAAwB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CompositeLayer, CompositeLayerProps, Layer, LayersList, DefaultProps } from '@deck.gl/core';
|
|
2
2
|
import { H3HexagonLayer, H3HexagonLayerProps } from '@deck.gl/geo-layers';
|
|
3
|
-
import { SpatialIndexTileLayerProps } from
|
|
4
|
-
import type { TilejsonResult } from
|
|
3
|
+
import { SpatialIndexTileLayerProps } from "./spatial-index-tile-layer.js";
|
|
4
|
+
import type { TilejsonResult } from "../sources/types.js";
|
|
5
5
|
export declare const renderSubLayers: (props: any) => H3HexagonLayer<any, {
|
|
6
6
|
getHexagon: (d: any) => any;
|
|
7
7
|
centerHexagon: any;
|
|
@@ -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;AACnG,OAAO,EAAC,cAAc,EAAE,mBAAmB,EAAC,MAAM,qBAAqB,CAAC;AAExE,OAA8B,EAAC,0BAA0B,EAAC,
|
|
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,sCAAmC;AAC7F,OAAO,KAAK,EAAC,cAAc,EAAC,4BAAyB;AAGrD,eAAO,MAAM,eAAe;;;;SAU3B,CAAC;AAMF,+CAA+C;AAC/C,MAAM,MAAM,gBAAgB,CAAC,KAAK,GAAG,OAAO,IAAI,iBAAiB,CAAC,KAAK,CAAC,GAAG,mBAAmB,CAAC;AAE/F,uCAAuC;AACvC,KAAK,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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CompositeLayer, CompositeLayerProps, Layer, LayersList, DefaultProps } from '@deck.gl/core';
|
|
2
|
-
import QuadbinLayer, { QuadbinLayerProps } from
|
|
3
|
-
import { SpatialIndexTileLayerProps } from
|
|
4
|
-
import type { TilejsonResult } from
|
|
2
|
+
import QuadbinLayer, { QuadbinLayerProps } from "./quadbin-layer.js";
|
|
3
|
+
import { SpatialIndexTileLayerProps } from "./spatial-index-tile-layer.js";
|
|
4
|
+
import type { TilejsonResult } from "../sources/types.js";
|
|
5
5
|
export declare const renderSubLayers: (props: any) => QuadbinLayer<any, {
|
|
6
6
|
getQuadbin: (d: any) => any;
|
|
7
7
|
}> | null;
|
|
@@ -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,UAAU,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AACnG,OAAO,YAAY,EAAE,EAAC,iBAAiB,EAAC,
|
|
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,UAAU,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AACnG,OAAO,YAAY,EAAE,EAAC,iBAAiB,EAAC,2BAAwB;AAEhE,OAA8B,EAAC,0BAA0B,EAAC,sCAAmC;AAE7F,OAAO,KAAK,EAAC,cAAc,EAAC,4BAAyB;AAGrD,eAAO,MAAM,eAAe;;SAO3B,CAAC;AAMF,oDAAoD;AACpD,MAAM,MAAM,qBAAqB,CAAC,KAAK,GAAG,OAAO,IAAI,sBAAsB,CAAC,KAAK,CAAC,GAChF,mBAAmB,CAAC;AAEtB,4CAA4C;AAC5C,KAAK,sBAAsB,CAAC,KAAK,IAAI,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,GACzE,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,gBAAgB,CACnC,KAAK,GAAG,GAAG,EACX,UAAU,SAAS,EAAE,GAAG,EAAE,CAC1B,SAAQ,cAAc,CAAC,UAAU,GAAG,QAAQ,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC,CAAC;IAC5E,MAAM,CAAC,SAAS,SAAsB;IACtC,MAAM,CAAC,YAAY,+CAAgB;IAEnC,cAAc,IAAI,GAAG;IAQrB,YAAY,IAAI,KAAK,GAAG,IAAI,GAAG,UAAU;CAkB1C"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const _default: "#version 300 es\n#define SHADER_NAME raster-layer-vertex-shader\n\nin vec3 positions;\nin vec3 normals;\n\nin float instanceElevations;\nin vec4 instanceFillColors;\nin vec4 instanceLineColors;\n\nin vec3 instancePickingColors;\n\n// Custom uniforms\nuniform float opacity;\nuniform bool extruded;\nuniform bool stroked;\nuniform bool isStroke;\nuniform float coverage;\nuniform float elevationScale;\nuniform float widthScale;\nuniform vec3 offset;\n\n// Result\nout vec4 vColor;\n#ifdef FLAT_SHADING\nout vec4 position_commonspace;\n#endif\n\nvoid main(void) {\n // Rather than positioning using attribute, layout pixel grid using gl_InstanceID\n vec2 common_position = offset.xy;\n float scale = offset.z;\n\n int yIndex = - (gl_InstanceID /
|
|
1
|
+
declare const _default: "#version 300 es\n#define SHADER_NAME raster-layer-vertex-shader\n\nin vec3 positions;\nin vec3 normals;\n\nin float instanceElevations;\nin vec4 instanceFillColors;\nin vec4 instanceLineColors;\n\nin vec3 instancePickingColors;\n\n// Custom uniforms\nuniform float opacity;\nuniform bool extruded;\nuniform bool stroked;\nuniform bool isStroke;\nuniform float coverage;\nuniform float elevationScale;\nuniform float widthScale;\nuniform vec3 offset;\n\n// Result\nout vec4 vColor;\n#ifdef FLAT_SHADING\nout vec4 position_commonspace;\n#endif\n\nvoid main(void) {\n // Rather than positioning using attribute, layout pixel grid using gl_InstanceID\n vec2 common_position = offset.xy;\n float scale = offset.z;\n\n int yIndex = - (gl_InstanceID / BLOCK_WIDTH);\n int xIndex = gl_InstanceID + (yIndex * BLOCK_WIDTH);\n common_position += scale * vec2(float(xIndex), float(yIndex));\n\n vec4 color = isStroke ? instanceLineColors : instanceFillColors;\n\n // if alpha == 0.0 or z < 0.0, do not render element\n float shouldRender = float(color.a > 0.0 && instanceElevations >= 0.0);\n float cellWidth = coverage * scale;\n\n // Get position directly from quadbin, rather than projecting\n // Important to set geometry.position before using project_ methods below\n // as geometry.worldPosition is not set (we don't know our lat/long)\n geometry.position = vec4(common_position, 0.0, 1.0);\n if (project_uProjectionMode == PROJECTION_MODE_WEB_MERCATOR_AUTO_OFFSET) {\n geometry.position.xyz -= project_uCommonOrigin;\n }\n\n // calculate elevation, if 3d not enabled set to 0\n // cylindar geometry height are between -1.0 to 1.0, transform it to between 0, 1\n float elevation = 0.0;\n // calculate stroke offset\n float strokeOffsetRatio = 1.0;\n\n if (extruded) {\n elevation = instanceElevations * (positions.z + 1.0) / 2.0 * elevationScale;\n } else if (stroked) {\n float halfOffset = project_pixel_size(widthScale) / cellWidth;\n if (isStroke) {\n strokeOffsetRatio -= sign(positions.z) * halfOffset;\n } else {\n strokeOffsetRatio -= halfOffset;\n }\n }\n\n geometry.pickingColor = instancePickingColors;\n\n // project center of column\n vec2 offset = (vec2(0.5) + positions.xy * strokeOffsetRatio) * cellWidth * shouldRender;\n vec3 pos = vec3(offset, project_size(elevation));\n DECKGL_FILTER_SIZE(pos, geometry);\n\n geometry.position.xyz += pos;\n gl_Position = project_common_position_to_clipspace(geometry.position);\n\n geometry.normal = project_normal(normals);\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n // Light calculations\n if (extruded && !isStroke) {\n#ifdef FLAT_SHADING\n position_commonspace = geometry.position;\n vColor = vec4(color.rgb, color.a * opacity);\n#else\n vec3 lightColor = lighting_getLightColor(color.rgb, project_uCameraPosition, geometry.position.xyz, geometry.normal);\n vColor = vec4(lightColor, color.a * opacity);\n#endif\n } else {\n vColor = vec4(color.rgb, color.a * opacity);\n }\n\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n";
|
|
2
2
|
export default _default;
|
|
3
3
|
//# sourceMappingURL=raster-layer-vertex.glsl.d.ts.map
|
|
@@ -32,8 +32,8 @@ void main(void) {
|
|
|
32
32
|
vec2 common_position = offset.xy;
|
|
33
33
|
float scale = offset.z;
|
|
34
34
|
|
|
35
|
-
int yIndex = - (gl_InstanceID /
|
|
36
|
-
int xIndex = gl_InstanceID + (yIndex *
|
|
35
|
+
int yIndex = - (gl_InstanceID / BLOCK_WIDTH);
|
|
36
|
+
int xIndex = gl_InstanceID + (yIndex * BLOCK_WIDTH);
|
|
37
37
|
common_position += scale * vec2(float(xIndex), float(yIndex));
|
|
38
38
|
|
|
39
39
|
vec4 color = isStroke ? instanceLineColors : instanceFillColors;
|
|
@@ -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;
|
|
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;AA2D9D,+CAA+C;AAC/C,MAAM,MAAM,gBAAgB,CAAC,KAAK,GAAG,OAAO,IAAI,iBAAiB,GAC/D,gBAAgB,CAAC,KAAK,CAAC,GACvB,mBAAmB,CAAC;AAEtB,uCAAuC;AACvC,KAAK,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"}
|
|
@@ -20,7 +20,9 @@ class RasterColumnLayer extends ColumnLayer {
|
|
|
20
20
|
static { this.layerName = 'RasterColumnLayer'; }
|
|
21
21
|
getShaders() {
|
|
22
22
|
const shaders = super.getShaders();
|
|
23
|
-
|
|
23
|
+
const data = this.props.data;
|
|
24
|
+
const BLOCK_WIDTH = data.blockWidth || Math.sqrt(data.length);
|
|
25
|
+
return { ...shaders, defines: { ...shaders.defines, BLOCK_WIDTH }, vs };
|
|
24
26
|
}
|
|
25
27
|
initializeState() {
|
|
26
28
|
// Only add attributes needed by shader
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CompositeLayer, CompositeLayerProps, DefaultProps, Layer, LayersList } from '@deck.gl/core';
|
|
2
|
-
import RasterLayer, { RasterLayerProps } from
|
|
3
|
-
import { SpatialIndexTileLayerProps } from
|
|
4
|
-
import type { TilejsonResult } from
|
|
2
|
+
import RasterLayer, { RasterLayerProps } from "./raster-layer.js";
|
|
3
|
+
import { SpatialIndexTileLayerProps } from "./spatial-index-tile-layer.js";
|
|
4
|
+
import type { TilejsonResult } from "../sources/types.js";
|
|
5
5
|
export declare const renderSubLayers: (props: any) => RasterLayer<any, {
|
|
6
6
|
tileIndex: any;
|
|
7
7
|
}> | null;
|
|
@@ -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,
|
|
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,0BAAuB;AAE7D,OAA8B,EAAC,0BAA0B,EAAC,sCAAmC;AAC7F,OAAO,KAAK,EAAC,cAAc,EAAC,4BAAyB;AAGrD,eAAO,MAAM,eAAe;;SAI3B,CAAC;AAMF,mDAAmD;AACnD,MAAM,MAAM,oBAAoB,CAAC,KAAK,GAAG,OAAO,IAAI,qBAAqB,CAAC,KAAK,CAAC,GAC9E,mBAAmB,CAAC;AAEtB,2CAA2C;AAC3C,KAAK,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"}
|
|
@@ -1 +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,
|
|
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,wBAAqB;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,5 +1,5 @@
|
|
|
1
1
|
import { LoaderWithParser } from '@loaders.gl/loader-utils';
|
|
2
|
-
import { NumericProps, Properties } from
|
|
2
|
+
import { NumericProps, Properties } from "./spatialjson-utils.js";
|
|
3
3
|
declare const CartoRasterTileLoader: LoaderWithParser;
|
|
4
4
|
export type Raster = {
|
|
5
5
|
blockWidth: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carto-raster-tile-loader.d.ts","sourceRoot":"","sources":["../../../src/layers/schema/carto-raster-tile-loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAKzE,OAAO,EAAC,YAAY,EAAE,UAAU,EAAC
|
|
1
|
+
{"version":3,"file":"carto-raster-tile-loader.d.ts","sourceRoot":"","sources":["../../../src/layers/schema/carto-raster-tile-loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAKzE,OAAO,EAAC,YAAY,EAAE,UAAU,EAAC,+BAA4B;AAiB7D,QAAA,MAAM,qBAAqB,EAAE,gBAa5B,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE;QACL,YAAY,EAAE,YAAY,CAAC;QAC3B,UAAU,EAAE,UAAU,EAAE,CAAC;KAC1B,CAAC;CACH,CAAC;AAiBF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TileReader } from "./carto-raster-tile.js";
|
|
2
2
|
import { parsePbf } from "./tile-loader-utils.js";
|
|
3
3
|
import { getWorkerUrl } from "../../utils.js";
|
|
4
|
-
const VERSION = typeof "9.0.0-beta.
|
|
4
|
+
const VERSION = typeof "9.0.0-beta.3" !== 'undefined' ? "9.0.0-beta.3" : 'latest';
|
|
5
5
|
const id = 'cartoRasterTile';
|
|
6
6
|
const DEFAULT_OPTIONS = {
|
|
7
7
|
cartoRasterTile: {
|
|
@@ -2,7 +2,7 @@ import { TileReader } from "./carto-spatial-tile.js";
|
|
|
2
2
|
import { parsePbf } from "./tile-loader-utils.js";
|
|
3
3
|
import { getWorkerUrl } from "../../utils.js";
|
|
4
4
|
import { binaryToSpatialjson } from "./spatialjson-utils.js";
|
|
5
|
-
const VERSION = typeof "9.0.0-beta.
|
|
5
|
+
const VERSION = typeof "9.0.0-beta.3" !== 'undefined' ? "9.0.0-beta.3" : 'latest';
|
|
6
6
|
const id = 'cartoSpatialTile';
|
|
7
7
|
const DEFAULT_OPTIONS = {
|
|
8
8
|
cartoSpatialTile: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Indices, IndexScheme } from
|
|
2
|
-
import { NumericProp } from
|
|
1
|
+
import { Indices, IndexScheme } from "./spatialjson-utils.js";
|
|
2
|
+
import { NumericProp } from "./carto-tile.js";
|
|
3
3
|
export declare class IndicesReader {
|
|
4
4
|
static read(pbf: any, end?: number): Indices;
|
|
5
5
|
static _readField(this: void, tag: number, obj: any, pbf: any): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carto-spatial-tile.d.ts","sourceRoot":"","sources":["../../../src/layers/schema/carto-spatial-tile.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,OAAO,EAAE,WAAW,EAAC
|
|
1
|
+
{"version":3,"file":"carto-spatial-tile.d.ts","sourceRoot":"","sources":["../../../src/layers/schema/carto-spatial-tile.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,OAAO,EAAE,WAAW,EAAC,+BAA4B;AACzD,OAAO,EAAC,WAAW,EAA8C,wBAAqB;AAItF,qBAAa,aAAa;IACxB,MAAM,CAAC,IAAI,CAAC,GAAG,KAAA,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO;IAGvC,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,KAAA,EAAE,GAAG,KAAA;CAGpD;AAID,UAAU,KAAK;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;IACrC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;CAC3C;AAuBD,MAAM,WAAW,IAAI;IACnB,MAAM,EAAE,WAAW,CAAC;IACpB,KAAK,EAAE,KAAK,CAAC;CACd;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;CAI1D"}
|
|
@@ -2,7 +2,7 @@ import earcut from 'earcut';
|
|
|
2
2
|
import { TileReader } from "./carto-tile.js";
|
|
3
3
|
import { parsePbf } from "./tile-loader-utils.js";
|
|
4
4
|
import { getWorkerUrl } from "../../utils.js";
|
|
5
|
-
const VERSION = typeof "9.0.0-beta.
|
|
5
|
+
const VERSION = typeof "9.0.0-beta.3" !== 'undefined' ? "9.0.0-beta.3" : 'latest';
|
|
6
6
|
const id = 'cartoVectorTile';
|
|
7
7
|
const DEFAULT_OPTIONS = {
|
|
8
8
|
cartoVectorTile: {
|
package/dist/layers/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Tile as PropertiesTile } from
|
|
2
|
-
import { Tile as VectorTile } from
|
|
3
|
-
import type { TilejsonResult } from
|
|
1
|
+
import { Tile as PropertiesTile } from "./schema/carto-properties-tile.js";
|
|
2
|
+
import { Tile as VectorTile } from "./schema/carto-tile.js";
|
|
3
|
+
import type { TilejsonResult } from "../sources/types.js";
|
|
4
4
|
/**
|
|
5
5
|
* Adds access token to Authorization header in loadOptions
|
|
6
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/layers/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,IAAI,cAAc,EAAC,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/layers/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,IAAI,cAAc,EAAC,0CAAuC;AACtE,OAAO,EAAC,IAAI,IAAI,UAAU,EAAC,+BAA4B;AAEvD,OAAO,KAAK,EAAC,cAAc,EAAC,4BAAyB;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,7 +1,7 @@
|
|
|
1
1
|
import { DefaultProps } from '@deck.gl/core';
|
|
2
2
|
import { MVTLayer, MVTLayerProps, TileLayer, _Tile2DHeader, _TileLoadProps as TileLoadProps } from '@deck.gl/geo-layers';
|
|
3
3
|
import { GeoJsonLayer } from '@deck.gl/layers';
|
|
4
|
-
import type { TilejsonResult } from
|
|
4
|
+
import type { TilejsonResult } from "../sources/types.js";
|
|
5
5
|
/** All properties supported by VectorTileLayer. */
|
|
6
6
|
export type VectorTileLayerProps = _VectorTileLayerProps & Omit<MVTLayerProps, 'data'>;
|
|
7
7
|
/** Properties added by VectorTileLayer. */
|
|
@@ -14,6 +14,7 @@ export default class VectorTileLayer<ExtraProps extends {} = {}> extends MVTLaye
|
|
|
14
14
|
state: MVTLayer['state'] & {
|
|
15
15
|
mvt: boolean;
|
|
16
16
|
};
|
|
17
|
+
constructor(...propObjects: VectorTileLayerProps[]);
|
|
17
18
|
initializeState(): void;
|
|
18
19
|
updateState(parameters: any): void;
|
|
19
20
|
getLoadOptions(): any;
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,4BAAyB;AASrD,mDAAmD;AACnD,MAAM,MAAM,oBAAoB,GAAG,qBAAqB,GAAG,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;AAEvF,2CAA2C;AAC3C,KAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,IAAI,GAAG,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;CACvD,CAAC;AAGF,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;gBAEU,GAAG,WAAW,EAAE,oBAAoB,EAAE;IAMlD,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"}
|
|
@@ -12,11 +12,15 @@ const defaultProps = {
|
|
|
12
12
|
data: TilejsonPropType,
|
|
13
13
|
dataComparator: TilejsonPropType.equal
|
|
14
14
|
};
|
|
15
|
-
// TODO Perhaps we can't subclass MVTLayer and keep types. Better to subclass TileLayer instead?
|
|
16
15
|
// @ts-ignore
|
|
17
16
|
export default class VectorTileLayer extends MVTLayer {
|
|
18
17
|
static { this.layerName = 'VectorTileLayer'; }
|
|
19
18
|
static { this.defaultProps = defaultProps; }
|
|
19
|
+
constructor(...propObjects) {
|
|
20
|
+
// Force externally visible props type, as it is not possible modify via extension
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
super(...propObjects);
|
|
23
|
+
}
|
|
20
24
|
initializeState() {
|
|
21
25
|
super.initializeState();
|
|
22
26
|
this.setState({ binary: true });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { MapType } from
|
|
2
|
-
import type { GeojsonResult, JsonResult, SourceOptionalOptions, SourceRequiredOptions, TilejsonResult } from
|
|
1
|
+
import type { MapType } from "../api/types.js";
|
|
2
|
+
import type { GeojsonResult, JsonResult, SourceOptionalOptions, SourceRequiredOptions, TilejsonResult } from "./types.js";
|
|
3
3
|
export declare const SOURCE_DEFAULTS: SourceOptionalOptions;
|
|
4
4
|
export declare function baseSource<UrlParameters extends Record<string, string>>(endpoint: MapType, options: Partial<SourceOptionalOptions> & SourceRequiredOptions, urlParameters: UrlParameters): Promise<TilejsonResult | GeojsonResult | JsonResult>;
|
|
5
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":"AAIA,OAAO,KAAK,EAAkB,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"base-source.d.ts","sourceRoot":"","sources":["../../src/sources/base-source.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAkB,OAAO,EAAC,wBAAqB;AAC3D,OAAO,KAAK,EACV,aAAa,EACb,UAAU,EACV,qBAAqB,EACrB,qBAAqB,EAErB,cAAc,EACf,mBAAgB;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"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { QueryParameters } from
|
|
2
|
-
import type { SourceOptions, TilejsonResult } from
|
|
3
|
-
export type BoundaryQuerySourceOptions = SourceOptions & {
|
|
1
|
+
import { QueryParameters } from "../api/index.js";
|
|
2
|
+
import type { FilterOptions, SourceOptions, TilejsonResult } from "./types.js";
|
|
3
|
+
export type BoundaryQuerySourceOptions = SourceOptions & FilterOptions & {
|
|
4
|
+
columns?: string[];
|
|
4
5
|
tilesetTableName: string;
|
|
5
6
|
matchingColumn?: string;
|
|
6
7
|
propertiesSqlQuery: string;
|
|
@@ -1 +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,
|
|
1
|
+
{"version":3,"file":"boundary-query-source.d.ts","sourceRoot":"","sources":["../../src/sources/boundary-query-source.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,wBAAqB;AAE7C,OAAO,KAAK,EAAC,aAAa,EAAE,aAAa,EAAE,cAAc,EAAC,mBAAgB;AAE1E,MAAM,MAAM,0BAA0B,GAAG,aAAa,GACpD,aAAa,GAAG;IACd,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC,CAAC;AAUJ,eAAO,MAAM,mBAAmB,YACrB,0BAA0B,KAClC,QAAQ,cAAc,CAyBxB,CAAC"}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { baseSource } from "./base-source.js";
|
|
2
2
|
export const boundaryQuerySource = async function (options) {
|
|
3
|
-
const { tilesetTableName, matchingColumn = 'id', propertiesSqlQuery, queryParameters } = options;
|
|
3
|
+
const { columns, filters, tilesetTableName, matchingColumn = 'id', propertiesSqlQuery, queryParameters } = options;
|
|
4
4
|
const urlParameters = {
|
|
5
5
|
tilesetTableName,
|
|
6
6
|
matchingColumn,
|
|
7
7
|
propertiesSqlQuery
|
|
8
8
|
};
|
|
9
|
+
if (columns) {
|
|
10
|
+
urlParameters.columns = columns.join(',');
|
|
11
|
+
}
|
|
12
|
+
if (filters) {
|
|
13
|
+
urlParameters.filters = JSON.stringify(filters);
|
|
14
|
+
}
|
|
9
15
|
if (queryParameters) {
|
|
10
16
|
urlParameters.queryParameters = JSON.stringify(queryParameters);
|
|
11
17
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SourceOptions, TilejsonResult } from
|
|
2
|
-
export type BoundaryTableSourceOptions = SourceOptions & {
|
|
1
|
+
import type { FilterOptions, SourceOptions, TilejsonResult } from "./types.js";
|
|
2
|
+
export type BoundaryTableSourceOptions = SourceOptions & FilterOptions & {
|
|
3
3
|
tilesetTableName: string;
|
|
4
4
|
columns?: string[];
|
|
5
5
|
matchingColumn?: string;
|
|
@@ -1 +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,
|
|
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,aAAa,EAAE,cAAc,EAAC,mBAAgB;AAE1E,MAAM,MAAM,0BAA0B,GAAG,aAAa,GACpD,aAAa,GAAG;IACd,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mBAAmB,EAAE,MAAM,CAAC;CAC7B,CAAC;AASJ,eAAO,MAAM,mBAAmB,YACrB,0BAA0B,KAClC,QAAQ,cAAc,CAexB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { baseSource } from "./base-source.js";
|
|
2
2
|
export const boundaryTableSource = async function (options) {
|
|
3
|
-
const { tilesetTableName, columns, matchingColumn = 'id', propertiesTableName } = options;
|
|
3
|
+
const { filters, tilesetTableName, columns, matchingColumn = 'id', propertiesTableName } = options;
|
|
4
4
|
const urlParameters = {
|
|
5
5
|
tilesetTableName,
|
|
6
6
|
matchingColumn,
|
|
@@ -9,5 +9,8 @@ export const boundaryTableSource = async function (options) {
|
|
|
9
9
|
if (columns) {
|
|
10
10
|
urlParameters.columns = columns.join(',');
|
|
11
11
|
}
|
|
12
|
+
if (filters) {
|
|
13
|
+
urlParameters.filters = JSON.stringify(filters);
|
|
14
|
+
}
|
|
12
15
|
return baseSource('boundary', options, urlParameters);
|
|
13
16
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AggregationOptions, QuerySourceOptions, SourceOptions, TilejsonResult } from
|
|
1
|
+
import type { AggregationOptions, QuerySourceOptions, SourceOptions, TilejsonResult } from "./types.js";
|
|
2
2
|
export type H3QuerySourceOptions = SourceOptions & QuerySourceOptions & AggregationOptions;
|
|
3
3
|
export declare const h3QuerySource: (options: H3QuerySourceOptions) => Promise<TilejsonResult>;
|
|
4
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,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EAEb,cAAc,EACf,
|
|
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,mBAAgB;AAEjB,MAAM,MAAM,oBAAoB,GAAG,aAAa,GAAG,kBAAkB,GAAG,kBAAkB,CAAC;AAU3F,eAAO,MAAM,aAAa,YACf,oBAAoB,KAC5B,QAAQ,cAAc,CAsBxB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AggregationOptions, SourceOptions, TableSourceOptions, TilejsonResult } from
|
|
1
|
+
import type { AggregationOptions, SourceOptions, TableSourceOptions, TilejsonResult } from "./types.js";
|
|
2
2
|
export type H3TableSourceOptions = SourceOptions & TableSourceOptions & AggregationOptions;
|
|
3
3
|
export declare const h3TableSource: (options: H3TableSourceOptions) => Promise<TilejsonResult>;
|
|
4
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,KAAK,EACV,kBAAkB,EAClB,aAAa,EAEb,kBAAkB,EAClB,cAAc,EACf,
|
|
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,mBAAgB;AAEjB,MAAM,MAAM,oBAAoB,GAAG,aAAa,GAAG,kBAAkB,GAAG,kBAAkB,CAAC;AAW3F,eAAO,MAAM,aAAa,YACf,oBAAoB,KAC5B,QAAQ,cAAc,CAsBxB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SourceOptions, TilejsonResult, TilesetSourceOptions } from
|
|
1
|
+
import type { SourceOptions, TilejsonResult, TilesetSourceOptions } from "./types.js";
|
|
2
2
|
export type H3TilesetSourceOptions = SourceOptions & TilesetSourceOptions;
|
|
3
3
|
export declare const h3TilesetSource: (options: H3TilesetSourceOptions) => Promise<TilejsonResult>;
|
|
4
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,KAAK,EAAC,aAAa,EAAE,cAAc,EAAE,oBAAoB,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,mBAAgB;AAEjF,MAAM,MAAM,sBAAsB,GAAG,aAAa,GAAG,oBAAoB,CAAC;AAG1E,eAAO,MAAM,eAAe,YACjB,sBAAsB,KAC9B,QAAQ,cAAc,CAKxB,CAAC"}
|
package/dist/sources/index.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
export { SOURCE_DEFAULTS } from
|
|
2
|
-
export type { TilejsonResult, GeojsonResult, JsonResult } from
|
|
3
|
-
export { boundaryQuerySource } from
|
|
4
|
-
export type { BoundaryQuerySourceOptions } from
|
|
5
|
-
export { boundaryTableSource } from
|
|
6
|
-
export type { BoundaryTableSourceOptions } from
|
|
7
|
-
export { h3QuerySource } from
|
|
8
|
-
export type { H3QuerySourceOptions } from
|
|
9
|
-
export { h3TableSource } from
|
|
10
|
-
export type { H3TableSourceOptions } from
|
|
11
|
-
export { h3TilesetSource } from
|
|
12
|
-
export type { H3TilesetSourceOptions } from
|
|
13
|
-
export { rasterSource } from
|
|
14
|
-
export type { RasterSourceOptions } from
|
|
15
|
-
export { quadbinQuerySource } from
|
|
16
|
-
export type { QuadbinQuerySourceOptions } from
|
|
17
|
-
export { quadbinTableSource } from
|
|
18
|
-
export type { QuadbinTableSourceOptions } from
|
|
19
|
-
export { quadbinTilesetSource } from
|
|
20
|
-
export type { QuadbinTilesetSourceOptions } from
|
|
21
|
-
export { vectorQuerySource } from
|
|
22
|
-
export type { VectorQuerySourceOptions } from
|
|
23
|
-
export { vectorTableSource } from
|
|
24
|
-
export type { VectorTableSourceOptions } from
|
|
25
|
-
export { vectorTilesetSource } from
|
|
26
|
-
export type { VectorTilesetSourceOptions } from
|
|
1
|
+
export { SOURCE_DEFAULTS } from "./base-source.js";
|
|
2
|
+
export type { TilejsonResult, GeojsonResult, JsonResult } from "./types.js";
|
|
3
|
+
export { boundaryQuerySource } from "./boundary-query-source.js";
|
|
4
|
+
export type { BoundaryQuerySourceOptions } from "./boundary-query-source.js";
|
|
5
|
+
export { boundaryTableSource } from "./boundary-table-source.js";
|
|
6
|
+
export type { BoundaryTableSourceOptions } from "./boundary-table-source.js";
|
|
7
|
+
export { h3QuerySource } from "./h3-query-source.js";
|
|
8
|
+
export type { H3QuerySourceOptions } from "./h3-query-source.js";
|
|
9
|
+
export { h3TableSource } from "./h3-table-source.js";
|
|
10
|
+
export type { H3TableSourceOptions } from "./h3-table-source.js";
|
|
11
|
+
export { h3TilesetSource } from "./h3-tileset-source.js";
|
|
12
|
+
export type { H3TilesetSourceOptions } from "./h3-tileset-source.js";
|
|
13
|
+
export { rasterSource } from "./raster-source.js";
|
|
14
|
+
export type { RasterSourceOptions } from "./raster-source.js";
|
|
15
|
+
export { quadbinQuerySource } from "./quadbin-query-source.js";
|
|
16
|
+
export type { QuadbinQuerySourceOptions } from "./quadbin-query-source.js";
|
|
17
|
+
export { quadbinTableSource } from "./quadbin-table-source.js";
|
|
18
|
+
export type { QuadbinTableSourceOptions } from "./quadbin-table-source.js";
|
|
19
|
+
export { quadbinTilesetSource } from "./quadbin-tileset-source.js";
|
|
20
|
+
export type { QuadbinTilesetSourceOptions } from "./quadbin-tileset-source.js";
|
|
21
|
+
export { vectorQuerySource } from "./vector-query-source.js";
|
|
22
|
+
export type { VectorQuerySourceOptions } from "./vector-query-source.js";
|
|
23
|
+
export { vectorTableSource } from "./vector-table-source.js";
|
|
24
|
+
export type { VectorTableSourceOptions } from "./vector-table-source.js";
|
|
25
|
+
export { vectorTilesetSource } from "./vector-tileset-source.js";
|
|
26
|
+
export type { VectorTilesetSourceOptions } from "./vector-tileset-source.js";
|
|
27
27
|
//# 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,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,yBAAsB;AAC9C,YAAY,EAAC,cAAc,EAAE,aAAa,EAAE,UAAU,EAAC,mBAAgB;AAEvE,OAAO,EAAC,mBAAmB,EAAC,mCAAgC;AAC5D,YAAY,EAAC,0BAA0B,EAAC,mCAAgC;AAExE,OAAO,EAAC,mBAAmB,EAAC,mCAAgC;AAC5D,YAAY,EAAC,0BAA0B,EAAC,mCAAgC;AAExE,OAAO,EAAC,aAAa,EAAC,6BAA0B;AAChD,YAAY,EAAC,oBAAoB,EAAC,6BAA0B;AAE5D,OAAO,EAAC,aAAa,EAAC,6BAA0B;AAChD,YAAY,EAAC,oBAAoB,EAAC,6BAA0B;AAE5D,OAAO,EAAC,eAAe,EAAC,+BAA4B;AACpD,YAAY,EAAC,sBAAsB,EAAC,+BAA4B;AAEhE,OAAO,EAAC,YAAY,EAAC,2BAAwB;AAC7C,YAAY,EAAC,mBAAmB,EAAC,2BAAwB;AAEzD,OAAO,EAAC,kBAAkB,EAAC,kCAA+B;AAC1D,YAAY,EAAC,yBAAyB,EAAC,kCAA+B;AAEtE,OAAO,EAAC,kBAAkB,EAAC,kCAA+B;AAC1D,YAAY,EAAC,yBAAyB,EAAC,kCAA+B;AAEtE,OAAO,EAAC,oBAAoB,EAAC,oCAAiC;AAC9D,YAAY,EAAC,2BAA2B,EAAC,oCAAiC;AAE1E,OAAO,EAAC,iBAAiB,EAAC,iCAA8B;AACxD,YAAY,EAAC,wBAAwB,EAAC,iCAA8B;AAEpE,OAAO,EAAC,iBAAiB,EAAC,iCAA8B;AACxD,YAAY,EAAC,wBAAwB,EAAC,iCAA8B;AAEpE,OAAO,EAAC,mBAAmB,EAAC,mCAAgC;AAC5D,YAAY,EAAC,0BAA0B,EAAC,mCAAgC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AggregationOptions, QuerySourceOptions, SourceOptions, TilejsonResult } from
|
|
1
|
+
import type { AggregationOptions, QuerySourceOptions, SourceOptions, TilejsonResult } from "./types.js";
|
|
2
2
|
export type QuadbinQuerySourceOptions = SourceOptions & QuerySourceOptions & AggregationOptions;
|
|
3
3
|
export declare const quadbinQuerySource: (options: QuadbinQuerySourceOptions) => Promise<TilejsonResult>;
|
|
4
4
|
//# sourceMappingURL=quadbin-query-source.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quadbin-query-source.d.ts","sourceRoot":"","sources":["../../src/sources/quadbin-query-source.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EAEb,cAAc,EACf,
|
|
1
|
+
{"version":3,"file":"quadbin-query-source.d.ts","sourceRoot":"","sources":["../../src/sources/quadbin-query-source.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EAEb,cAAc,EACf,mBAAgB;AAEjB,MAAM,MAAM,yBAAyB,GAAG,aAAa,GAAG,kBAAkB,GAAG,kBAAkB,CAAC;AAWhG,eAAO,MAAM,kBAAkB,YACpB,yBAAyB,KACjC,QAAQ,cAAc,CAsBxB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AggregationOptions, SourceOptions, TableSourceOptions, TilejsonResult } from
|
|
1
|
+
import type { AggregationOptions, SourceOptions, TableSourceOptions, TilejsonResult } from "./types.js";
|
|
2
2
|
export type QuadbinTableSourceOptions = SourceOptions & TableSourceOptions & AggregationOptions;
|
|
3
3
|
export declare const quadbinTableSource: (options: QuadbinTableSourceOptions) => Promise<TilejsonResult>;
|
|
4
4
|
//# sourceMappingURL=quadbin-table-source.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quadbin-table-source.d.ts","sourceRoot":"","sources":["../../src/sources/quadbin-table-source.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,kBAAkB,EAClB,aAAa,EAEb,kBAAkB,EAClB,cAAc,EACf,
|
|
1
|
+
{"version":3,"file":"quadbin-table-source.d.ts","sourceRoot":"","sources":["../../src/sources/quadbin-table-source.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,kBAAkB,EAClB,aAAa,EAEb,kBAAkB,EAClB,cAAc,EACf,mBAAgB;AAEjB,MAAM,MAAM,yBAAyB,GAAG,aAAa,GAAG,kBAAkB,GAAG,kBAAkB,CAAC;AAWhG,eAAO,MAAM,kBAAkB,YACpB,yBAAyB,KACjC,QAAQ,cAAc,CAuBxB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SourceOptions, TilejsonResult, TilesetSourceOptions } from
|
|
1
|
+
import type { SourceOptions, TilejsonResult, TilesetSourceOptions } from "./types.js";
|
|
2
2
|
export type QuadbinTilesetSourceOptions = SourceOptions & TilesetSourceOptions;
|
|
3
3
|
export declare const quadbinTilesetSource: (options: QuadbinTilesetSourceOptions) => Promise<TilejsonResult>;
|
|
4
4
|
//# sourceMappingURL=quadbin-tileset-source.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quadbin-tileset-source.d.ts","sourceRoot":"","sources":["../../src/sources/quadbin-tileset-source.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,aAAa,EAAE,cAAc,EAAE,oBAAoB,EAAC,
|
|
1
|
+
{"version":3,"file":"quadbin-tileset-source.d.ts","sourceRoot":"","sources":["../../src/sources/quadbin-tileset-source.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,aAAa,EAAE,cAAc,EAAE,oBAAoB,EAAC,mBAAgB;AAEjF,MAAM,MAAM,2BAA2B,GAAG,aAAa,GAAG,oBAAoB,CAAC;AAG/E,eAAO,MAAM,oBAAoB,YACtB,2BAA2B,KACnC,QAAQ,cAAc,CAKxB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SourceOptions, TilejsonResult, TilesetSourceOptions } from
|
|
1
|
+
import type { SourceOptions, TilejsonResult, TilesetSourceOptions } from "./types.js";
|
|
2
2
|
export type RasterSourceOptions = SourceOptions & TilesetSourceOptions;
|
|
3
3
|
export declare const rasterSource: (options: RasterSourceOptions) => Promise<TilejsonResult>;
|
|
4
4
|
//# sourceMappingURL=raster-source.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"raster-source.d.ts","sourceRoot":"","sources":["../../src/sources/raster-source.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,aAAa,EAAE,cAAc,EAAE,oBAAoB,EAAC,
|
|
1
|
+
{"version":3,"file":"raster-source.d.ts","sourceRoot":"","sources":["../../src/sources/raster-source.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,aAAa,EAAE,cAAc,EAAE,oBAAoB,EAAC,mBAAgB;AAEjF,MAAM,MAAM,mBAAmB,GAAG,aAAa,GAAG,oBAAoB,CAAC;AAGvE,eAAO,MAAM,YAAY,YAA4B,mBAAmB,KAAG,QAAQ,cAAc,CAKhG,CAAC"}
|
package/dist/sources/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Feature } from 'geojson';
|
|
2
|
-
import type { Format, MapInstantiation, QueryParameters } from
|
|
2
|
+
import type { Filters, Format, MapInstantiation, QueryParameters } from "../api/types.js";
|
|
3
3
|
export type SourceRequiredOptions = {
|
|
4
4
|
/** Carto platform access token. */
|
|
5
5
|
accessToken: string;
|
|
@@ -49,6 +49,12 @@ export type AggregationOptions = {
|
|
|
49
49
|
*/
|
|
50
50
|
aggregationResLevel?: number;
|
|
51
51
|
};
|
|
52
|
+
export type FilterOptions = {
|
|
53
|
+
/**
|
|
54
|
+
* Filters to apply to the data source on the server
|
|
55
|
+
*/
|
|
56
|
+
filters: Filters;
|
|
57
|
+
};
|
|
52
58
|
export type QuerySourceOptions = {
|
|
53
59
|
/**
|
|
54
60
|
* The column name and the type of geospatial support.
|