@carto/api-client 0.5.4-alpha.0 → 0.5.4-alpha.1
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/build/api-client.cjs +2 -2
- package/build/api-client.cjs.map +1 -1
- package/build/api-client.d.cts +6 -5
- package/build/api-client.d.ts +6 -5
- package/build/api-client.js +2 -2
- package/build/api-client.js.map +1 -1
- package/build/worker.js +2 -2
- package/build/worker.js.map +1 -1
- package/package.json +1 -1
- package/src/filters/tileFeatures.ts +3 -3
- package/src/filters/tileFeaturesGeometries.ts +8 -5
package/build/api-client.d.cts
CHANGED
|
@@ -1446,7 +1446,7 @@ type TileFeatures = {
|
|
|
1446
1446
|
spatialFilter: SpatialFilter;
|
|
1447
1447
|
uniqueIdProperty?: string;
|
|
1448
1448
|
rasterMetadata?: RasterMetadata;
|
|
1449
|
-
|
|
1449
|
+
storeGeometry?: boolean;
|
|
1450
1450
|
};
|
|
1451
1451
|
/** @privateRemarks Source: @carto/react-core */
|
|
1452
1452
|
type TileFeatureExtractOptions = {
|
|
@@ -1456,17 +1456,18 @@ type TileFeatureExtractOptions = {
|
|
|
1456
1456
|
uniqueIdProperty?: string;
|
|
1457
1457
|
};
|
|
1458
1458
|
/** @privateRemarks Source: @carto/react-core */
|
|
1459
|
-
declare function tileFeatures({ tiles, spatialFilter, uniqueIdProperty, tileFormat, spatialDataColumn, spatialDataType, rasterMetadata,
|
|
1459
|
+
declare function tileFeatures({ tiles, spatialFilter, uniqueIdProperty, tileFormat, spatialDataColumn, spatialDataType, rasterMetadata, storeGeometry, }: TileFeatures): FeatureData[];
|
|
1460
1460
|
|
|
1461
1461
|
declare const FEATURE_GEOM_PROPERTY = "__geomValue";
|
|
1462
|
+
type GeometryExtractOptions = {
|
|
1463
|
+
storeGeometry?: boolean;
|
|
1464
|
+
};
|
|
1462
1465
|
declare function tileFeaturesGeometries({ tiles, tileFormat, spatialFilter, uniqueIdProperty, options, }: {
|
|
1463
1466
|
tiles: Tile[];
|
|
1464
1467
|
tileFormat?: TileFormat;
|
|
1465
1468
|
spatialFilter: SpatialFilter;
|
|
1466
1469
|
uniqueIdProperty?: string;
|
|
1467
|
-
options?:
|
|
1468
|
-
storeGeometry?: boolean;
|
|
1469
|
-
};
|
|
1470
|
+
options?: GeometryExtractOptions;
|
|
1470
1471
|
}): FeatureData[];
|
|
1471
1472
|
|
|
1472
1473
|
type TileFeaturesSpatialIndexOptions = {
|
package/build/api-client.d.ts
CHANGED
|
@@ -1446,7 +1446,7 @@ type TileFeatures = {
|
|
|
1446
1446
|
spatialFilter: SpatialFilter;
|
|
1447
1447
|
uniqueIdProperty?: string;
|
|
1448
1448
|
rasterMetadata?: RasterMetadata;
|
|
1449
|
-
|
|
1449
|
+
storeGeometry?: boolean;
|
|
1450
1450
|
};
|
|
1451
1451
|
/** @privateRemarks Source: @carto/react-core */
|
|
1452
1452
|
type TileFeatureExtractOptions = {
|
|
@@ -1456,17 +1456,18 @@ type TileFeatureExtractOptions = {
|
|
|
1456
1456
|
uniqueIdProperty?: string;
|
|
1457
1457
|
};
|
|
1458
1458
|
/** @privateRemarks Source: @carto/react-core */
|
|
1459
|
-
declare function tileFeatures({ tiles, spatialFilter, uniqueIdProperty, tileFormat, spatialDataColumn, spatialDataType, rasterMetadata,
|
|
1459
|
+
declare function tileFeatures({ tiles, spatialFilter, uniqueIdProperty, tileFormat, spatialDataColumn, spatialDataType, rasterMetadata, storeGeometry, }: TileFeatures): FeatureData[];
|
|
1460
1460
|
|
|
1461
1461
|
declare const FEATURE_GEOM_PROPERTY = "__geomValue";
|
|
1462
|
+
type GeometryExtractOptions = {
|
|
1463
|
+
storeGeometry?: boolean;
|
|
1464
|
+
};
|
|
1462
1465
|
declare function tileFeaturesGeometries({ tiles, tileFormat, spatialFilter, uniqueIdProperty, options, }: {
|
|
1463
1466
|
tiles: Tile[];
|
|
1464
1467
|
tileFormat?: TileFormat;
|
|
1465
1468
|
spatialFilter: SpatialFilter;
|
|
1466
1469
|
uniqueIdProperty?: string;
|
|
1467
|
-
options?:
|
|
1468
|
-
storeGeometry?: boolean;
|
|
1469
|
-
};
|
|
1470
|
+
options?: GeometryExtractOptions;
|
|
1470
1471
|
}): FeatureData[];
|
|
1471
1472
|
|
|
1472
1473
|
type TileFeaturesSpatialIndexOptions = {
|
package/build/api-client.js
CHANGED
|
@@ -5572,7 +5572,7 @@ function tileFeatures({
|
|
|
5572
5572
|
spatialDataColumn = DEFAULT_GEO_COLUMN,
|
|
5573
5573
|
spatialDataType,
|
|
5574
5574
|
rasterMetadata,
|
|
5575
|
-
|
|
5575
|
+
storeGeometry = false
|
|
5576
5576
|
}) {
|
|
5577
5577
|
if (spatialDataType === "geo") {
|
|
5578
5578
|
return tileFeaturesGeometries({
|
|
@@ -5580,7 +5580,7 @@ function tileFeatures({
|
|
|
5580
5580
|
tileFormat,
|
|
5581
5581
|
spatialFilter,
|
|
5582
5582
|
uniqueIdProperty,
|
|
5583
|
-
options
|
|
5583
|
+
options: { storeGeometry }
|
|
5584
5584
|
});
|
|
5585
5585
|
}
|
|
5586
5586
|
if (tiles.some(isRasterTile)) {
|