@carto/api-client 0.5.7-alpha.6 → 0.5.7
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/CHANGELOG.md +6 -1
- package/build/api-client.cjs +390 -344
- package/build/api-client.cjs.map +1 -1
- package/build/api-client.d.cts +4 -4
- package/build/api-client.d.ts +4 -4
- package/build/api-client.js +378 -334
- package/build/api-client.js.map +1 -1
- package/build/worker-compat.js +729 -688
- package/build/worker-compat.js.map +1 -1
- package/build/worker.js +378 -334
- package/build/worker.js.map +1 -1
- package/package.json +2 -3
- package/src/filters/tileFeatures.ts +1 -1
- package/src/filters/tileFeaturesGeometries.ts +28 -55
- package/src/filters/tileFeaturesRaster.ts +10 -21
- package/src/filters/tileFeaturesSpatialIndex.ts +37 -50
- package/src/filters/tileIntersection.ts +155 -0
- package/src/widget-sources/widget-tileset-source-impl.ts +8 -4
package/build/api-client.d.cts
CHANGED
|
@@ -1533,7 +1533,7 @@ type TileFeatures = {
|
|
|
1533
1533
|
tileFormat: TileFormat;
|
|
1534
1534
|
spatialDataType: SpatialDataType;
|
|
1535
1535
|
spatialDataColumn?: string;
|
|
1536
|
-
spatialFilter
|
|
1536
|
+
spatialFilter?: SpatialFilter;
|
|
1537
1537
|
uniqueIdProperty?: string;
|
|
1538
1538
|
rasterMetadata?: RasterMetadata;
|
|
1539
1539
|
storeGeometry?: boolean;
|
|
@@ -1555,14 +1555,14 @@ type GeometryExtractOptions = {
|
|
|
1555
1555
|
declare function tileFeaturesGeometries({ tiles, tileFormat, spatialFilter, uniqueIdProperty, options, }: {
|
|
1556
1556
|
tiles: Tile[];
|
|
1557
1557
|
tileFormat?: TileFormat;
|
|
1558
|
-
spatialFilter
|
|
1558
|
+
spatialFilter?: SpatialFilter;
|
|
1559
1559
|
uniqueIdProperty?: string;
|
|
1560
1560
|
options?: GeometryExtractOptions;
|
|
1561
1561
|
}): FeatureData[];
|
|
1562
1562
|
|
|
1563
1563
|
type TileFeaturesSpatialIndexOptions = {
|
|
1564
1564
|
tiles: SpatialIndexTile[];
|
|
1565
|
-
spatialFilter
|
|
1565
|
+
spatialFilter?: SpatialFilter;
|
|
1566
1566
|
spatialDataColumn: string;
|
|
1567
1567
|
spatialDataType: SpatialDataType;
|
|
1568
1568
|
};
|
|
@@ -1600,7 +1600,7 @@ declare class WidgetTilesetSourceImpl extends WidgetSource<WidgetTilesetSourcePr
|
|
|
1600
1600
|
loadTiles(tiles: unknown[]): void;
|
|
1601
1601
|
/** Configures options used to extract features from tiles. */
|
|
1602
1602
|
setTileFeatureExtractOptions(options: TileFeatureExtractOptions): void;
|
|
1603
|
-
protected _extractTileFeatures(spatialFilter
|
|
1603
|
+
protected _extractTileFeatures(spatialFilter?: SpatialFilter): void;
|
|
1604
1604
|
/**
|
|
1605
1605
|
* Loads features as GeoJSON (used for testing).
|
|
1606
1606
|
* @experimental
|
package/build/api-client.d.ts
CHANGED
|
@@ -1533,7 +1533,7 @@ type TileFeatures = {
|
|
|
1533
1533
|
tileFormat: TileFormat;
|
|
1534
1534
|
spatialDataType: SpatialDataType;
|
|
1535
1535
|
spatialDataColumn?: string;
|
|
1536
|
-
spatialFilter
|
|
1536
|
+
spatialFilter?: SpatialFilter;
|
|
1537
1537
|
uniqueIdProperty?: string;
|
|
1538
1538
|
rasterMetadata?: RasterMetadata;
|
|
1539
1539
|
storeGeometry?: boolean;
|
|
@@ -1555,14 +1555,14 @@ type GeometryExtractOptions = {
|
|
|
1555
1555
|
declare function tileFeaturesGeometries({ tiles, tileFormat, spatialFilter, uniqueIdProperty, options, }: {
|
|
1556
1556
|
tiles: Tile[];
|
|
1557
1557
|
tileFormat?: TileFormat;
|
|
1558
|
-
spatialFilter
|
|
1558
|
+
spatialFilter?: SpatialFilter;
|
|
1559
1559
|
uniqueIdProperty?: string;
|
|
1560
1560
|
options?: GeometryExtractOptions;
|
|
1561
1561
|
}): FeatureData[];
|
|
1562
1562
|
|
|
1563
1563
|
type TileFeaturesSpatialIndexOptions = {
|
|
1564
1564
|
tiles: SpatialIndexTile[];
|
|
1565
|
-
spatialFilter
|
|
1565
|
+
spatialFilter?: SpatialFilter;
|
|
1566
1566
|
spatialDataColumn: string;
|
|
1567
1567
|
spatialDataType: SpatialDataType;
|
|
1568
1568
|
};
|
|
@@ -1600,7 +1600,7 @@ declare class WidgetTilesetSourceImpl extends WidgetSource<WidgetTilesetSourcePr
|
|
|
1600
1600
|
loadTiles(tiles: unknown[]): void;
|
|
1601
1601
|
/** Configures options used to extract features from tiles. */
|
|
1602
1602
|
setTileFeatureExtractOptions(options: TileFeatureExtractOptions): void;
|
|
1603
|
-
protected _extractTileFeatures(spatialFilter
|
|
1603
|
+
protected _extractTileFeatures(spatialFilter?: SpatialFilter): void;
|
|
1604
1604
|
/**
|
|
1605
1605
|
* Loads features as GeoJSON (used for testing).
|
|
1606
1606
|
* @experimental
|