@carto/api-client 0.5.30 → 0.5.31-alpha.7cee4d3.120

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 CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ - feat(sources): rename `featureBbox` source option to `prepareLabels` (Maps API `featureBbox` param unchanged)
6
+ - fix(geo): narrow `createViewportSpatialFilter` / `createPolygonSpatialFilter` return type to `GeometrySpatialFilter` (#309)
7
+
5
8
  ### 0.5.30
6
9
 
7
10
  - feat(sources): expose `_getPointsAggregationLevel` for maps-api dynamic point-tile aggregation parity (#304)
@@ -8660,7 +8660,7 @@ var vectorQuerySource = async function(options) {
8660
8660
  tileResolution = DEFAULT_TILE_RESOLUTION,
8661
8661
  queryParameters,
8662
8662
  aggregationExp,
8663
- featureBbox
8663
+ prepareLabels
8664
8664
  } = options;
8665
8665
  const spatialDataType = "geo";
8666
8666
  const urlParameters = {
@@ -8681,7 +8681,7 @@ var vectorQuerySource = async function(options) {
8681
8681
  if (aggregationExp) {
8682
8682
  urlParameters.aggregationExp = aggregationExp;
8683
8683
  }
8684
- if (featureBbox) {
8684
+ if (prepareLabels) {
8685
8685
  urlParameters.featureBbox = true;
8686
8686
  }
8687
8687
  return baseSource("query", options, urlParameters).then(
@@ -8708,7 +8708,7 @@ var vectorTableSource = async function(options) {
8708
8708
  tableName,
8709
8709
  tileResolution = DEFAULT_TILE_RESOLUTION,
8710
8710
  aggregationExp,
8711
- featureBbox
8711
+ prepareLabels
8712
8712
  } = options;
8713
8713
  const spatialDataType = "geo";
8714
8714
  const urlParameters = {
@@ -8726,7 +8726,7 @@ var vectorTableSource = async function(options) {
8726
8726
  if (aggregationExp) {
8727
8727
  urlParameters.aggregationExp = aggregationExp;
8728
8728
  }
8729
- if (featureBbox) {
8729
+ if (prepareLabels) {
8730
8730
  urlParameters.featureBbox = true;
8731
8731
  }
8732
8732
  return baseSource("table", options, urlParameters).then(
@@ -11323,13 +11323,13 @@ function configureSource({
11323
11323
  tileResolution,
11324
11324
  ...queryParameters && { queryParameters }
11325
11325
  };
11326
- const { featureBbox } = dataset;
11326
+ const { prepareLabels } = dataset;
11327
11327
  const vectorOptions = {
11328
11328
  spatialDataColumn,
11329
11329
  ...columns && { columns },
11330
11330
  ...filters && { filters },
11331
11331
  ...aggregationExp && { aggregationExp },
11332
- ...featureBbox && { featureBbox }
11332
+ ...prepareLabels && { prepareLabels }
11333
11333
  };
11334
11334
  if (type === "raster") {
11335
11335
  return rasterSource({
@@ -11625,7 +11625,7 @@ async function fetchMap({
11625
11625
  }
11626
11626
  map.datasets.forEach((dataset) => {
11627
11627
  if (datasetsWithLabels.has(dataset.id) && (dataset.type === "table" || dataset.type === "query")) {
11628
- dataset.featureBbox = true;
11628
+ dataset.prepareLabels = true;
11629
11629
  }
11630
11630
  });
11631
11631
  const [basemap] = await Promise.all([