@carto/api-client 0.5.30 → 0.5.31
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 +5 -0
- package/build/api-client.cjs +7 -7
- package/build/api-client.cjs.map +1 -1
- package/build/api-client.d.cts +7 -7
- package/build/api-client.d.ts +7 -7
- package/build/api-client.js +7 -7
- package/build/api-client.js.map +1 -1
- package/package.json +1 -1
- package/src/fetch-map/fetch-map.ts +1 -1
- package/src/fetch-map/source.ts +2 -2
- package/src/fetch-map/types.ts +1 -1
- package/src/geo.ts +5 -5
- package/src/sources/vector-query-source.ts +3 -3
- package/src/sources/vector-table-source.ts +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
### 0.5.31
|
|
6
|
+
|
|
7
|
+
- feat(sources): rename `featureBbox` source option to `prepareLabels` (Maps API `featureBbox` param unchanged)
|
|
8
|
+
- fix(geo): narrow `createViewportSpatialFilter` / `createPolygonSpatialFilter` return type to `GeometrySpatialFilter` (#309)
|
|
9
|
+
|
|
5
10
|
### 0.5.30
|
|
6
11
|
|
|
7
12
|
- feat(sources): expose `_getPointsAggregationLevel` for maps-api dynamic point-tile aggregation parity (#304)
|
package/build/api-client.cjs
CHANGED
|
@@ -8660,7 +8660,7 @@ var vectorQuerySource = async function(options) {
|
|
|
8660
8660
|
tileResolution = DEFAULT_TILE_RESOLUTION,
|
|
8661
8661
|
queryParameters,
|
|
8662
8662
|
aggregationExp,
|
|
8663
|
-
|
|
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 (
|
|
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
|
-
|
|
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 (
|
|
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 {
|
|
11326
|
+
const { prepareLabels } = dataset;
|
|
11327
11327
|
const vectorOptions = {
|
|
11328
11328
|
spatialDataColumn,
|
|
11329
11329
|
...columns && { columns },
|
|
11330
11330
|
...filters && { filters },
|
|
11331
11331
|
...aggregationExp && { aggregationExp },
|
|
11332
|
-
...
|
|
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.
|
|
11628
|
+
dataset.prepareLabels = true;
|
|
11629
11629
|
}
|
|
11630
11630
|
});
|
|
11631
11631
|
const [basemap] = await Promise.all([
|