@carto/api-client 0.5.29 → 0.5.30-alpha.143d135.117

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.
@@ -184,8 +184,30 @@ type AggregationType = 'count' | 'avg' | 'min' | 'max' | 'sum' | 'custom';
184
184
  /******************************************************************************
185
185
  * FILTERS
186
186
  */
187
+ /** A spatial filter expressed as a GeoJSON polygon, applied client- or server-side. */
188
+ type GeometrySpatialFilter = Polygon | MultiPolygon;
189
+ /**
190
+ * Filter restricting a widget query to a set of spatial-index cells (H3 or
191
+ * Quadbin). Used for point-and-click selection on cell-rendered layers. Sent to
192
+ * the server-side model API only; maps-api chooses the SQL strategy from
193
+ * `spatialDataType`, so the same payload works for both natively-indexed
194
+ * sources and point/geometry sources dynamically aggregated into cells.
195
+ *
196
+ * @privateRemarks Source: @carto/query-builder (SpatialIndexFilter)
197
+ */
198
+ interface SpatialIndexFilter {
199
+ /**
200
+ * Selected cell ids. h3 = hex string; h3int = `BigInt(\`0x${id}\`)`; quadbin
201
+ * = decimal or `0x`-hex string.
202
+ */
203
+ indexes: string[];
204
+ /** Must match the column type; `h3` and `h3int` are interchangeable. */
205
+ type: 'h3' | 'h3int' | 'quadbin';
206
+ }
187
207
  /** @privateRemarks Source: @carto/react-api */
188
- type SpatialFilter = Polygon | MultiPolygon;
208
+ type SpatialFilter = GeometrySpatialFilter | SpatialIndexFilter;
209
+ /** True when a {@link SpatialFilter} selects spatial-index cells rather than a polygon. */
210
+ declare function isSpatialIndexFilter(spatialFilter: SpatialFilter): spatialFilter is SpatialIndexFilter;
189
211
  /** @privateRemarks Source: @deck.gl/carto */
190
212
  interface Filters {
191
213
  [column: string]: Filter;
@@ -1761,7 +1783,7 @@ declare const filterFunctions: Record<FilterType, FilterFunction>;
1761
1783
 
1762
1784
  declare function geojsonFeatures({ geojson, spatialFilter, uniqueIdProperty, }: {
1763
1785
  geojson: FeatureCollection;
1764
- spatialFilter: SpatialFilter;
1786
+ spatialFilter: GeometrySpatialFilter;
1765
1787
  uniqueIdProperty?: string;
1766
1788
  }): FeatureData[];
1767
1789
 
@@ -1771,7 +1793,7 @@ type TileFeatures = {
1771
1793
  tileFormat: TileFormat;
1772
1794
  spatialDataType: SpatialDataType;
1773
1795
  spatialDataColumn?: string;
1774
- spatialFilter?: SpatialFilter;
1796
+ spatialFilter?: GeometrySpatialFilter;
1775
1797
  uniqueIdProperty?: string;
1776
1798
  rasterMetadata?: RasterMetadata;
1777
1799
  storeGeometry?: boolean;
@@ -1793,14 +1815,14 @@ type GeometryExtractOptions = {
1793
1815
  declare function tileFeaturesGeometries({ tiles, tileFormat, spatialFilter, uniqueIdProperty, options, }: {
1794
1816
  tiles: Tile[];
1795
1817
  tileFormat?: TileFormat;
1796
- spatialFilter?: SpatialFilter;
1818
+ spatialFilter?: GeometrySpatialFilter;
1797
1819
  uniqueIdProperty?: string;
1798
1820
  options?: GeometryExtractOptions;
1799
1821
  }): FeatureData[];
1800
1822
 
1801
1823
  type TileFeaturesSpatialIndexOptions = {
1802
1824
  tiles: SpatialIndexTile[];
1803
- spatialFilter?: SpatialFilter;
1825
+ spatialFilter?: GeometrySpatialFilter;
1804
1826
  spatialDataColumn: string;
1805
1827
  spatialDataType: SpatialDataType;
1806
1828
  };
@@ -1847,7 +1869,7 @@ declare class WidgetTilesetSourceImpl extends WidgetSource<WidgetTilesetSourcePr
1847
1869
  */
1848
1870
  loadGeoJSON({ geojson, spatialFilter, }: {
1849
1871
  geojson: FeatureCollection;
1850
- spatialFilter: SpatialFilter;
1872
+ spatialFilter: GeometrySpatialFilter;
1851
1873
  }): void;
1852
1874
  getFeatures(): Promise<FeaturesResponse>;
1853
1875
  getFormula({ column, operation, joinOperation, filters, filterOwner, spatialFilter, }: FormulaRequestOptions): Promise<FormulaResponse>;
@@ -1928,7 +1950,7 @@ declare class WidgetTilesetSource<Props extends WidgetTilesetSourceProps = Widge
1928
1950
  */
1929
1951
  loadGeoJSON({ geojson, spatialFilter, }: {
1930
1952
  geojson: FeatureCollection;
1931
- spatialFilter: SpatialFilter;
1953
+ spatialFilter: GeometrySpatialFilter;
1932
1954
  }): void;
1933
1955
  getFeatures(): Promise<FeaturesResponse>;
1934
1956
  getFormula({ signal, ...options }: FormulaRequestOptions): Promise<FormulaResponse>;
@@ -2255,4 +2277,4 @@ declare function getColumnNameFromGeoColumn(geoColumn: string | null | undefined
2255
2277
  */
2256
2278
  declare function getSpatialIndexFromGeoColumn(geoColumn: string): SpatialIndex | null;
2257
2279
 
2258
- export { type APIErrorContext, type APIRequestType, AUDIT_TAGS, type AddFilterOptions, type AggregationFunction, type AggregationType, AggregationTypes, type AggregationsRequestOptions, type AggregationsResponse, ApiVersion, type Attribute, _default as BASEMAP, type BaseRequestOptions, type Basemap, type BoundaryQuerySourceOptions, type BoundaryQuerySourceResponse, type BoundaryTableSourceOptions, type BoundaryTableSourceResponse, CARTO_SOURCES, CartoAPIError, type CategoryOrderBy, type CategoryRequestOptions, type CategoryResponse, type CategoryResponseEntry, type CategoryResponseRaw, CellSet, type ColumnsOption, type D3Scale, DEFAULT_API_BASE_URL, type ExtentRequestOptions, type ExtentResponse, FEATURE_GEOM_PROPERTY, type FeaturesRequestOptions, type FeaturesResponse, type FetchMapOptions, type FetchMapResult, type Filter, type FilterFunction, type FilterInterval, type FilterIntervalComplete, type FilterIntervalExtremum, type FilterLogicalOperator, type FilterOptions, FilterType, type Filters, type Format, type FormulaRequestOptions, type FormulaResponse, type GetFilterOptions, type GoogleBasemap, type GroupByFeature, type GroupDateType, type H3QuerySourceOptions, type H3QuerySourceResponse, type H3TableSourceOptions, type H3TableSourceResponse, type H3TilesetSourceOptions, type H3TilesetSourceResponse, type HasFilterOptions, type HistogramRequestOptions, type HistogramResponse, type KeplerMapConfig, type Layer, type LayerDescriptor, type LayerType, type MapLibreBasemap, type MapType, type NamedQueryParameter, OPACITY_MAP, OTHERS_CATEGORY_NAME, type ParseMapResult, type PositionalQueryParameter, Provider, type ProviderType, type QuadbinQuerySourceOptions, type QuadbinQuerySourceResponse, type QuadbinTableSourceOptions, type QuadbinTableSourceResponse, type QuadbinTilesetSourceOptions, type QuadbinTilesetSourceResponse, type QueryOptions, type QueryParameterValue, type QueryParameters, type QueryResult, type QuerySourceOptions, type RangeRequestOptions, type RangeResponse, type Raster, RasterBandColorinterp, type RasterBandType, type RasterMetadata, type RasterMetadataBand, type RasterMetadataBandStats, type RasterSourceOptions, type RasterTile, type RemoveFilterOptions, SOURCE_DEFAULTS, type Scale, type ScaleKey, type ScaleType, type Scales, type ScatterPlotFeature, type ScatterRequestOptions, type ScatterResponse, type SchemaField, SchemaFieldType, type SortColumnType, type SortDirection, type SourceOptionalOptions, type SourceOptions, type SourceRequiredOptions, type SpatialDataType, type SpatialFilter, type SpatialFilterPolyfillMode, SpatialIndex, SpatialIndexColumn, type SpatialIndexTile, type StringSearchOptions, TEXT_LABEL_INDEX, TEXT_NUMBER_FORMATTER, TEXT_OUTLINE_OPACITY, type TableRequestOptions, type TableResponse, type TableSourceOptions, type Tile, type TileFeatureExtractOptions, type TileFeatures, type TileFeaturesSpatialIndexOptions, TileFormat, type TileResolution, type Tilejson, type TilejsonResult, type TilesetSourceOptions, type Tilestats, type TimeSeriesRequestOptions, type TimeSeriesResponse, type TrajectoryQuerySourceOptions, type TrajectoryQuerySourceResponse, type TrajectoryTableSourceOptions, type TrajectoryTableSourceResponse, type VectorLayer, type VectorQuerySourceOptions, type VectorQuerySourceResponse, type VectorTableSourceOptions, type VectorTableSourceResponse, type VectorTilesetSourceOptions, type VectorTilesetSourceResponse, type ViewState, type Viewport, WidgetQuerySource, type WidgetQuerySourceResult, WidgetRasterSource, type WidgetRasterSourceProps, type WidgetRasterSourceResult, WidgetRemoteSource, type WidgetRemoteSourceProps, WidgetSource, type WidgetSourceProps, WidgetTableSource, type WidgetTableSourceResult, WidgetTilesetSource, type WidgetTilesetSourceProps, type WidgetTilesetSourceResult, type _DataFilterExtensionProps, ErrorCode as _ErrorCode, type VecExprResult as _VecExprResult, applyLayerGroupFilters as _applyLayerGroupFilters, _buildFeatureFilter, createVecExprEvaluator as _createVecExprEvaluator, domainFromValues as _domainFromValues, evaluateVecExpr as _evaluateVecExpr, fillInMapDatasets as _fillInMapDatasets, fillInTileStats as _fillInTileStats, _getHexagonResolution, getLog10ScaleSteps as _getLog10ScaleSteps, getRasterTileLayerStyleProps as _getRasterTileLayerStyleProps, validateVecExprSyntax as _validateVecExprSyntax, addFilter, aggregate, aggregationFunctions, applyFilters, applySorting, boundaryQuerySource, boundaryTableSource, buildBinaryFeatureFilter, buildPublicMapUrl, buildStatsUrl, calculateClusterRadius, calculateClusterTextFontSize, calculateLayerScale, clearDefaultRequestCache, clearFilters, compileCustomAggregation, configureSource, createColorScale, createPolygonSpatialFilter, createViewportSpatialFilter, fetchBasemapProps, fetchMap, filterFunctions, geojsonFeatures, getApplicableFilters, getClient, getColorAccessor, getColumnNameFromGeoColumn, getDataFilterExtensionProps, getDefaultAggregationExpColumnAliasForLayerType, getFilter, getIconUrlAccessor, getLayerDescriptor, getLayerProps, getMaxMarkerSize, getSizeAccessor, getSorter, getSpatialIndexFromGeoColumn, getTextAccessor, groupValuesByColumn, groupValuesByDateColumn, h3QuerySource, h3TableSource, h3TilesetSource, hasFilter, histogram, makeIntervalComplete, negateAccessor, opacityToAlpha, parseMap, quadbinQuerySource, quadbinTableSource, quadbinTilesetSource, query, rasterSource, removeFilter, requestWithParameters, scaleAggregationResLevel, scatterPlot, setClient, tileFeatures, tileFeaturesGeometries, tileFeaturesSpatialIndex, trajectoryQuerySource, trajectoryTableSource, transformToTileCoords, vectorQuerySource, vectorTableSource, vectorTilesetSource };
2280
+ export { type APIErrorContext, type APIRequestType, AUDIT_TAGS, type AddFilterOptions, type AggregationFunction, type AggregationType, AggregationTypes, type AggregationsRequestOptions, type AggregationsResponse, ApiVersion, type Attribute, _default as BASEMAP, type BaseRequestOptions, type Basemap, type BoundaryQuerySourceOptions, type BoundaryQuerySourceResponse, type BoundaryTableSourceOptions, type BoundaryTableSourceResponse, CARTO_SOURCES, CartoAPIError, type CategoryOrderBy, type CategoryRequestOptions, type CategoryResponse, type CategoryResponseEntry, type CategoryResponseRaw, CellSet, type ColumnsOption, type D3Scale, DEFAULT_API_BASE_URL, type ExtentRequestOptions, type ExtentResponse, FEATURE_GEOM_PROPERTY, type FeaturesRequestOptions, type FeaturesResponse, type FetchMapOptions, type FetchMapResult, type Filter, type FilterFunction, type FilterInterval, type FilterIntervalComplete, type FilterIntervalExtremum, type FilterLogicalOperator, type FilterOptions, FilterType, type Filters, type Format, type FormulaRequestOptions, type FormulaResponse, type GeometrySpatialFilter, type GetFilterOptions, type GoogleBasemap, type GroupByFeature, type GroupDateType, type H3QuerySourceOptions, type H3QuerySourceResponse, type H3TableSourceOptions, type H3TableSourceResponse, type H3TilesetSourceOptions, type H3TilesetSourceResponse, type HasFilterOptions, type HistogramRequestOptions, type HistogramResponse, type KeplerMapConfig, type Layer, type LayerDescriptor, type LayerType, type MapLibreBasemap, type MapType, type NamedQueryParameter, OPACITY_MAP, OTHERS_CATEGORY_NAME, type ParseMapResult, type PositionalQueryParameter, Provider, type ProviderType, type QuadbinQuerySourceOptions, type QuadbinQuerySourceResponse, type QuadbinTableSourceOptions, type QuadbinTableSourceResponse, type QuadbinTilesetSourceOptions, type QuadbinTilesetSourceResponse, type QueryOptions, type QueryParameterValue, type QueryParameters, type QueryResult, type QuerySourceOptions, type RangeRequestOptions, type RangeResponse, type Raster, RasterBandColorinterp, type RasterBandType, type RasterMetadata, type RasterMetadataBand, type RasterMetadataBandStats, type RasterSourceOptions, type RasterTile, type RemoveFilterOptions, SOURCE_DEFAULTS, type Scale, type ScaleKey, type ScaleType, type Scales, type ScatterPlotFeature, type ScatterRequestOptions, type ScatterResponse, type SchemaField, SchemaFieldType, type SortColumnType, type SortDirection, type SourceOptionalOptions, type SourceOptions, type SourceRequiredOptions, type SpatialDataType, type SpatialFilter, type SpatialFilterPolyfillMode, SpatialIndex, SpatialIndexColumn, type SpatialIndexFilter, type SpatialIndexTile, type StringSearchOptions, TEXT_LABEL_INDEX, TEXT_NUMBER_FORMATTER, TEXT_OUTLINE_OPACITY, type TableRequestOptions, type TableResponse, type TableSourceOptions, type Tile, type TileFeatureExtractOptions, type TileFeatures, type TileFeaturesSpatialIndexOptions, TileFormat, type TileResolution, type Tilejson, type TilejsonResult, type TilesetSourceOptions, type Tilestats, type TimeSeriesRequestOptions, type TimeSeriesResponse, type TrajectoryQuerySourceOptions, type TrajectoryQuerySourceResponse, type TrajectoryTableSourceOptions, type TrajectoryTableSourceResponse, type VectorLayer, type VectorQuerySourceOptions, type VectorQuerySourceResponse, type VectorTableSourceOptions, type VectorTableSourceResponse, type VectorTilesetSourceOptions, type VectorTilesetSourceResponse, type ViewState, type Viewport, WidgetQuerySource, type WidgetQuerySourceResult, WidgetRasterSource, type WidgetRasterSourceProps, type WidgetRasterSourceResult, WidgetRemoteSource, type WidgetRemoteSourceProps, WidgetSource, type WidgetSourceProps, WidgetTableSource, type WidgetTableSourceResult, WidgetTilesetSource, type WidgetTilesetSourceProps, type WidgetTilesetSourceResult, type _DataFilterExtensionProps, ErrorCode as _ErrorCode, type VecExprResult as _VecExprResult, applyLayerGroupFilters as _applyLayerGroupFilters, _buildFeatureFilter, createVecExprEvaluator as _createVecExprEvaluator, domainFromValues as _domainFromValues, evaluateVecExpr as _evaluateVecExpr, fillInMapDatasets as _fillInMapDatasets, fillInTileStats as _fillInTileStats, _getHexagonResolution, getLog10ScaleSteps as _getLog10ScaleSteps, getRasterTileLayerStyleProps as _getRasterTileLayerStyleProps, validateVecExprSyntax as _validateVecExprSyntax, addFilter, aggregate, aggregationFunctions, applyFilters, applySorting, boundaryQuerySource, boundaryTableSource, buildBinaryFeatureFilter, buildPublicMapUrl, buildStatsUrl, calculateClusterRadius, calculateClusterTextFontSize, calculateLayerScale, clearDefaultRequestCache, clearFilters, compileCustomAggregation, configureSource, createColorScale, createPolygonSpatialFilter, createViewportSpatialFilter, fetchBasemapProps, fetchMap, filterFunctions, geojsonFeatures, getApplicableFilters, getClient, getColorAccessor, getColumnNameFromGeoColumn, getDataFilterExtensionProps, getDefaultAggregationExpColumnAliasForLayerType, getFilter, getIconUrlAccessor, getLayerDescriptor, getLayerProps, getMaxMarkerSize, getSizeAccessor, getSorter, getSpatialIndexFromGeoColumn, getTextAccessor, groupValuesByColumn, groupValuesByDateColumn, h3QuerySource, h3TableSource, h3TilesetSource, hasFilter, histogram, isSpatialIndexFilter, makeIntervalComplete, negateAccessor, opacityToAlpha, parseMap, quadbinQuerySource, quadbinTableSource, quadbinTilesetSource, query, rasterSource, removeFilter, requestWithParameters, scaleAggregationResLevel, scatterPlot, setClient, tileFeatures, tileFeaturesGeometries, tileFeaturesSpatialIndex, trajectoryQuerySource, trajectoryTableSource, transformToTileCoords, vectorQuerySource, vectorTableSource, vectorTilesetSource };
@@ -184,8 +184,30 @@ type AggregationType = 'count' | 'avg' | 'min' | 'max' | 'sum' | 'custom';
184
184
  /******************************************************************************
185
185
  * FILTERS
186
186
  */
187
+ /** A spatial filter expressed as a GeoJSON polygon, applied client- or server-side. */
188
+ type GeometrySpatialFilter = Polygon | MultiPolygon;
189
+ /**
190
+ * Filter restricting a widget query to a set of spatial-index cells (H3 or
191
+ * Quadbin). Used for point-and-click selection on cell-rendered layers. Sent to
192
+ * the server-side model API only; maps-api chooses the SQL strategy from
193
+ * `spatialDataType`, so the same payload works for both natively-indexed
194
+ * sources and point/geometry sources dynamically aggregated into cells.
195
+ *
196
+ * @privateRemarks Source: @carto/query-builder (SpatialIndexFilter)
197
+ */
198
+ interface SpatialIndexFilter {
199
+ /**
200
+ * Selected cell ids. h3 = hex string; h3int = `BigInt(\`0x${id}\`)`; quadbin
201
+ * = decimal or `0x`-hex string.
202
+ */
203
+ indexes: string[];
204
+ /** Must match the column type; `h3` and `h3int` are interchangeable. */
205
+ type: 'h3' | 'h3int' | 'quadbin';
206
+ }
187
207
  /** @privateRemarks Source: @carto/react-api */
188
- type SpatialFilter = Polygon | MultiPolygon;
208
+ type SpatialFilter = GeometrySpatialFilter | SpatialIndexFilter;
209
+ /** True when a {@link SpatialFilter} selects spatial-index cells rather than a polygon. */
210
+ declare function isSpatialIndexFilter(spatialFilter: SpatialFilter): spatialFilter is SpatialIndexFilter;
189
211
  /** @privateRemarks Source: @deck.gl/carto */
190
212
  interface Filters {
191
213
  [column: string]: Filter;
@@ -1761,7 +1783,7 @@ declare const filterFunctions: Record<FilterType, FilterFunction>;
1761
1783
 
1762
1784
  declare function geojsonFeatures({ geojson, spatialFilter, uniqueIdProperty, }: {
1763
1785
  geojson: FeatureCollection;
1764
- spatialFilter: SpatialFilter;
1786
+ spatialFilter: GeometrySpatialFilter;
1765
1787
  uniqueIdProperty?: string;
1766
1788
  }): FeatureData[];
1767
1789
 
@@ -1771,7 +1793,7 @@ type TileFeatures = {
1771
1793
  tileFormat: TileFormat;
1772
1794
  spatialDataType: SpatialDataType;
1773
1795
  spatialDataColumn?: string;
1774
- spatialFilter?: SpatialFilter;
1796
+ spatialFilter?: GeometrySpatialFilter;
1775
1797
  uniqueIdProperty?: string;
1776
1798
  rasterMetadata?: RasterMetadata;
1777
1799
  storeGeometry?: boolean;
@@ -1793,14 +1815,14 @@ type GeometryExtractOptions = {
1793
1815
  declare function tileFeaturesGeometries({ tiles, tileFormat, spatialFilter, uniqueIdProperty, options, }: {
1794
1816
  tiles: Tile[];
1795
1817
  tileFormat?: TileFormat;
1796
- spatialFilter?: SpatialFilter;
1818
+ spatialFilter?: GeometrySpatialFilter;
1797
1819
  uniqueIdProperty?: string;
1798
1820
  options?: GeometryExtractOptions;
1799
1821
  }): FeatureData[];
1800
1822
 
1801
1823
  type TileFeaturesSpatialIndexOptions = {
1802
1824
  tiles: SpatialIndexTile[];
1803
- spatialFilter?: SpatialFilter;
1825
+ spatialFilter?: GeometrySpatialFilter;
1804
1826
  spatialDataColumn: string;
1805
1827
  spatialDataType: SpatialDataType;
1806
1828
  };
@@ -1847,7 +1869,7 @@ declare class WidgetTilesetSourceImpl extends WidgetSource<WidgetTilesetSourcePr
1847
1869
  */
1848
1870
  loadGeoJSON({ geojson, spatialFilter, }: {
1849
1871
  geojson: FeatureCollection;
1850
- spatialFilter: SpatialFilter;
1872
+ spatialFilter: GeometrySpatialFilter;
1851
1873
  }): void;
1852
1874
  getFeatures(): Promise<FeaturesResponse>;
1853
1875
  getFormula({ column, operation, joinOperation, filters, filterOwner, spatialFilter, }: FormulaRequestOptions): Promise<FormulaResponse>;
@@ -1928,7 +1950,7 @@ declare class WidgetTilesetSource<Props extends WidgetTilesetSourceProps = Widge
1928
1950
  */
1929
1951
  loadGeoJSON({ geojson, spatialFilter, }: {
1930
1952
  geojson: FeatureCollection;
1931
- spatialFilter: SpatialFilter;
1953
+ spatialFilter: GeometrySpatialFilter;
1932
1954
  }): void;
1933
1955
  getFeatures(): Promise<FeaturesResponse>;
1934
1956
  getFormula({ signal, ...options }: FormulaRequestOptions): Promise<FormulaResponse>;
@@ -2255,4 +2277,4 @@ declare function getColumnNameFromGeoColumn(geoColumn: string | null | undefined
2255
2277
  */
2256
2278
  declare function getSpatialIndexFromGeoColumn(geoColumn: string): SpatialIndex | null;
2257
2279
 
2258
- export { type APIErrorContext, type APIRequestType, AUDIT_TAGS, type AddFilterOptions, type AggregationFunction, type AggregationType, AggregationTypes, type AggregationsRequestOptions, type AggregationsResponse, ApiVersion, type Attribute, _default as BASEMAP, type BaseRequestOptions, type Basemap, type BoundaryQuerySourceOptions, type BoundaryQuerySourceResponse, type BoundaryTableSourceOptions, type BoundaryTableSourceResponse, CARTO_SOURCES, CartoAPIError, type CategoryOrderBy, type CategoryRequestOptions, type CategoryResponse, type CategoryResponseEntry, type CategoryResponseRaw, CellSet, type ColumnsOption, type D3Scale, DEFAULT_API_BASE_URL, type ExtentRequestOptions, type ExtentResponse, FEATURE_GEOM_PROPERTY, type FeaturesRequestOptions, type FeaturesResponse, type FetchMapOptions, type FetchMapResult, type Filter, type FilterFunction, type FilterInterval, type FilterIntervalComplete, type FilterIntervalExtremum, type FilterLogicalOperator, type FilterOptions, FilterType, type Filters, type Format, type FormulaRequestOptions, type FormulaResponse, type GetFilterOptions, type GoogleBasemap, type GroupByFeature, type GroupDateType, type H3QuerySourceOptions, type H3QuerySourceResponse, type H3TableSourceOptions, type H3TableSourceResponse, type H3TilesetSourceOptions, type H3TilesetSourceResponse, type HasFilterOptions, type HistogramRequestOptions, type HistogramResponse, type KeplerMapConfig, type Layer, type LayerDescriptor, type LayerType, type MapLibreBasemap, type MapType, type NamedQueryParameter, OPACITY_MAP, OTHERS_CATEGORY_NAME, type ParseMapResult, type PositionalQueryParameter, Provider, type ProviderType, type QuadbinQuerySourceOptions, type QuadbinQuerySourceResponse, type QuadbinTableSourceOptions, type QuadbinTableSourceResponse, type QuadbinTilesetSourceOptions, type QuadbinTilesetSourceResponse, type QueryOptions, type QueryParameterValue, type QueryParameters, type QueryResult, type QuerySourceOptions, type RangeRequestOptions, type RangeResponse, type Raster, RasterBandColorinterp, type RasterBandType, type RasterMetadata, type RasterMetadataBand, type RasterMetadataBandStats, type RasterSourceOptions, type RasterTile, type RemoveFilterOptions, SOURCE_DEFAULTS, type Scale, type ScaleKey, type ScaleType, type Scales, type ScatterPlotFeature, type ScatterRequestOptions, type ScatterResponse, type SchemaField, SchemaFieldType, type SortColumnType, type SortDirection, type SourceOptionalOptions, type SourceOptions, type SourceRequiredOptions, type SpatialDataType, type SpatialFilter, type SpatialFilterPolyfillMode, SpatialIndex, SpatialIndexColumn, type SpatialIndexTile, type StringSearchOptions, TEXT_LABEL_INDEX, TEXT_NUMBER_FORMATTER, TEXT_OUTLINE_OPACITY, type TableRequestOptions, type TableResponse, type TableSourceOptions, type Tile, type TileFeatureExtractOptions, type TileFeatures, type TileFeaturesSpatialIndexOptions, TileFormat, type TileResolution, type Tilejson, type TilejsonResult, type TilesetSourceOptions, type Tilestats, type TimeSeriesRequestOptions, type TimeSeriesResponse, type TrajectoryQuerySourceOptions, type TrajectoryQuerySourceResponse, type TrajectoryTableSourceOptions, type TrajectoryTableSourceResponse, type VectorLayer, type VectorQuerySourceOptions, type VectorQuerySourceResponse, type VectorTableSourceOptions, type VectorTableSourceResponse, type VectorTilesetSourceOptions, type VectorTilesetSourceResponse, type ViewState, type Viewport, WidgetQuerySource, type WidgetQuerySourceResult, WidgetRasterSource, type WidgetRasterSourceProps, type WidgetRasterSourceResult, WidgetRemoteSource, type WidgetRemoteSourceProps, WidgetSource, type WidgetSourceProps, WidgetTableSource, type WidgetTableSourceResult, WidgetTilesetSource, type WidgetTilesetSourceProps, type WidgetTilesetSourceResult, type _DataFilterExtensionProps, ErrorCode as _ErrorCode, type VecExprResult as _VecExprResult, applyLayerGroupFilters as _applyLayerGroupFilters, _buildFeatureFilter, createVecExprEvaluator as _createVecExprEvaluator, domainFromValues as _domainFromValues, evaluateVecExpr as _evaluateVecExpr, fillInMapDatasets as _fillInMapDatasets, fillInTileStats as _fillInTileStats, _getHexagonResolution, getLog10ScaleSteps as _getLog10ScaleSteps, getRasterTileLayerStyleProps as _getRasterTileLayerStyleProps, validateVecExprSyntax as _validateVecExprSyntax, addFilter, aggregate, aggregationFunctions, applyFilters, applySorting, boundaryQuerySource, boundaryTableSource, buildBinaryFeatureFilter, buildPublicMapUrl, buildStatsUrl, calculateClusterRadius, calculateClusterTextFontSize, calculateLayerScale, clearDefaultRequestCache, clearFilters, compileCustomAggregation, configureSource, createColorScale, createPolygonSpatialFilter, createViewportSpatialFilter, fetchBasemapProps, fetchMap, filterFunctions, geojsonFeatures, getApplicableFilters, getClient, getColorAccessor, getColumnNameFromGeoColumn, getDataFilterExtensionProps, getDefaultAggregationExpColumnAliasForLayerType, getFilter, getIconUrlAccessor, getLayerDescriptor, getLayerProps, getMaxMarkerSize, getSizeAccessor, getSorter, getSpatialIndexFromGeoColumn, getTextAccessor, groupValuesByColumn, groupValuesByDateColumn, h3QuerySource, h3TableSource, h3TilesetSource, hasFilter, histogram, makeIntervalComplete, negateAccessor, opacityToAlpha, parseMap, quadbinQuerySource, quadbinTableSource, quadbinTilesetSource, query, rasterSource, removeFilter, requestWithParameters, scaleAggregationResLevel, scatterPlot, setClient, tileFeatures, tileFeaturesGeometries, tileFeaturesSpatialIndex, trajectoryQuerySource, trajectoryTableSource, transformToTileCoords, vectorQuerySource, vectorTableSource, vectorTilesetSource };
2280
+ export { type APIErrorContext, type APIRequestType, AUDIT_TAGS, type AddFilterOptions, type AggregationFunction, type AggregationType, AggregationTypes, type AggregationsRequestOptions, type AggregationsResponse, ApiVersion, type Attribute, _default as BASEMAP, type BaseRequestOptions, type Basemap, type BoundaryQuerySourceOptions, type BoundaryQuerySourceResponse, type BoundaryTableSourceOptions, type BoundaryTableSourceResponse, CARTO_SOURCES, CartoAPIError, type CategoryOrderBy, type CategoryRequestOptions, type CategoryResponse, type CategoryResponseEntry, type CategoryResponseRaw, CellSet, type ColumnsOption, type D3Scale, DEFAULT_API_BASE_URL, type ExtentRequestOptions, type ExtentResponse, FEATURE_GEOM_PROPERTY, type FeaturesRequestOptions, type FeaturesResponse, type FetchMapOptions, type FetchMapResult, type Filter, type FilterFunction, type FilterInterval, type FilterIntervalComplete, type FilterIntervalExtremum, type FilterLogicalOperator, type FilterOptions, FilterType, type Filters, type Format, type FormulaRequestOptions, type FormulaResponse, type GeometrySpatialFilter, type GetFilterOptions, type GoogleBasemap, type GroupByFeature, type GroupDateType, type H3QuerySourceOptions, type H3QuerySourceResponse, type H3TableSourceOptions, type H3TableSourceResponse, type H3TilesetSourceOptions, type H3TilesetSourceResponse, type HasFilterOptions, type HistogramRequestOptions, type HistogramResponse, type KeplerMapConfig, type Layer, type LayerDescriptor, type LayerType, type MapLibreBasemap, type MapType, type NamedQueryParameter, OPACITY_MAP, OTHERS_CATEGORY_NAME, type ParseMapResult, type PositionalQueryParameter, Provider, type ProviderType, type QuadbinQuerySourceOptions, type QuadbinQuerySourceResponse, type QuadbinTableSourceOptions, type QuadbinTableSourceResponse, type QuadbinTilesetSourceOptions, type QuadbinTilesetSourceResponse, type QueryOptions, type QueryParameterValue, type QueryParameters, type QueryResult, type QuerySourceOptions, type RangeRequestOptions, type RangeResponse, type Raster, RasterBandColorinterp, type RasterBandType, type RasterMetadata, type RasterMetadataBand, type RasterMetadataBandStats, type RasterSourceOptions, type RasterTile, type RemoveFilterOptions, SOURCE_DEFAULTS, type Scale, type ScaleKey, type ScaleType, type Scales, type ScatterPlotFeature, type ScatterRequestOptions, type ScatterResponse, type SchemaField, SchemaFieldType, type SortColumnType, type SortDirection, type SourceOptionalOptions, type SourceOptions, type SourceRequiredOptions, type SpatialDataType, type SpatialFilter, type SpatialFilterPolyfillMode, SpatialIndex, SpatialIndexColumn, type SpatialIndexFilter, type SpatialIndexTile, type StringSearchOptions, TEXT_LABEL_INDEX, TEXT_NUMBER_FORMATTER, TEXT_OUTLINE_OPACITY, type TableRequestOptions, type TableResponse, type TableSourceOptions, type Tile, type TileFeatureExtractOptions, type TileFeatures, type TileFeaturesSpatialIndexOptions, TileFormat, type TileResolution, type Tilejson, type TilejsonResult, type TilesetSourceOptions, type Tilestats, type TimeSeriesRequestOptions, type TimeSeriesResponse, type TrajectoryQuerySourceOptions, type TrajectoryQuerySourceResponse, type TrajectoryTableSourceOptions, type TrajectoryTableSourceResponse, type VectorLayer, type VectorQuerySourceOptions, type VectorQuerySourceResponse, type VectorTableSourceOptions, type VectorTableSourceResponse, type VectorTilesetSourceOptions, type VectorTilesetSourceResponse, type ViewState, type Viewport, WidgetQuerySource, type WidgetQuerySourceResult, WidgetRasterSource, type WidgetRasterSourceProps, type WidgetRasterSourceResult, WidgetRemoteSource, type WidgetRemoteSourceProps, WidgetSource, type WidgetSourceProps, WidgetTableSource, type WidgetTableSourceResult, WidgetTilesetSource, type WidgetTilesetSourceProps, type WidgetTilesetSourceResult, type _DataFilterExtensionProps, ErrorCode as _ErrorCode, type VecExprResult as _VecExprResult, applyLayerGroupFilters as _applyLayerGroupFilters, _buildFeatureFilter, createVecExprEvaluator as _createVecExprEvaluator, domainFromValues as _domainFromValues, evaluateVecExpr as _evaluateVecExpr, fillInMapDatasets as _fillInMapDatasets, fillInTileStats as _fillInTileStats, _getHexagonResolution, getLog10ScaleSteps as _getLog10ScaleSteps, getRasterTileLayerStyleProps as _getRasterTileLayerStyleProps, validateVecExprSyntax as _validateVecExprSyntax, addFilter, aggregate, aggregationFunctions, applyFilters, applySorting, boundaryQuerySource, boundaryTableSource, buildBinaryFeatureFilter, buildPublicMapUrl, buildStatsUrl, calculateClusterRadius, calculateClusterTextFontSize, calculateLayerScale, clearDefaultRequestCache, clearFilters, compileCustomAggregation, configureSource, createColorScale, createPolygonSpatialFilter, createViewportSpatialFilter, fetchBasemapProps, fetchMap, filterFunctions, geojsonFeatures, getApplicableFilters, getClient, getColorAccessor, getColumnNameFromGeoColumn, getDataFilterExtensionProps, getDefaultAggregationExpColumnAliasForLayerType, getFilter, getIconUrlAccessor, getLayerDescriptor, getLayerProps, getMaxMarkerSize, getSizeAccessor, getSorter, getSpatialIndexFromGeoColumn, getTextAccessor, groupValuesByColumn, groupValuesByDateColumn, h3QuerySource, h3TableSource, h3TilesetSource, hasFilter, histogram, isSpatialIndexFilter, makeIntervalComplete, negateAccessor, opacityToAlpha, parseMap, quadbinQuerySource, quadbinTableSource, quadbinTilesetSource, query, rasterSource, removeFilter, requestWithParameters, scaleAggregationResLevel, scatterPlot, setClient, tileFeatures, tileFeaturesGeometries, tileFeaturesSpatialIndex, trajectoryQuerySource, trajectoryTableSource, transformToTileCoords, vectorQuerySource, vectorTableSource, vectorTilesetSource };
@@ -5559,6 +5559,9 @@ var SchemaFieldType = /* @__PURE__ */ ((SchemaFieldType2) => {
5559
5559
  SchemaFieldType2["Unknown"] = "unknown";
5560
5560
  return SchemaFieldType2;
5561
5561
  })(SchemaFieldType || {});
5562
+ function isSpatialIndexFilter(spatialFilter) {
5563
+ return Array.isArray(spatialFilter.indexes);
5564
+ }
5562
5565
 
5563
5566
  // src/utils.ts
5564
5567
  var FILTER_TYPES = new Set(Object.values(FilterType));
@@ -7357,16 +7360,17 @@ var WidgetTilesetSourceImpl = class extends WidgetSource {
7357
7360
  this._features.length = 0;
7358
7361
  }
7359
7362
  _extractTileFeatures(spatialFilter) {
7363
+ const geometryFilter = spatialFilter && !isSpatialIndexFilter(spatialFilter) ? spatialFilter : void 0;
7360
7364
  const prevInputs = this._tileFeatureExtractPreviousInputs;
7361
- if (this._features.length && spatialFilterEquals(prevInputs.spatialFilter, spatialFilter)) {
7365
+ if (this._features.length && spatialFilterEquals(prevInputs.spatialFilter, geometryFilter)) {
7362
7366
  return;
7363
7367
  }
7364
7368
  this._features = tileFeatures({
7365
7369
  ...assignOptional({}, this.props, this._tileFeatureExtractOptions),
7366
7370
  tiles: this._tiles,
7367
- spatialFilter
7371
+ spatialFilter: geometryFilter
7368
7372
  });
7369
- prevInputs.spatialFilter = spatialFilter;
7373
+ prevInputs.spatialFilter = geometryFilter;
7370
7374
  }
7371
7375
  /**
7372
7376
  * Loads features as GeoJSON (used for testing).
@@ -11474,6 +11478,7 @@ export {
11474
11478
  h3TilesetSource,
11475
11479
  hasFilter,
11476
11480
  histogram,
11481
+ isSpatialIndexFilter,
11477
11482
  makeIntervalComplete,
11478
11483
  negateAccessor,
11479
11484
  opacityToAlpha,