@carto/api-client 0.5.4 → 0.5.5-alpha.0
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 +8 -12
- package/build/api-client.cjs.map +1 -1
- package/build/api-client.js +8 -12
- package/build/api-client.js.map +1 -1
- package/package.json +3 -2
- package/src/models/model.ts +9 -19
package/build/api-client.cjs
CHANGED
|
@@ -6368,6 +6368,7 @@ function executeModel(props) {
|
|
|
6368
6368
|
filters,
|
|
6369
6369
|
filtersLogicalOperator = "and",
|
|
6370
6370
|
spatialDataType = "geo",
|
|
6371
|
+
spatialDataColumn = DEFAULT_GEO_COLUMN,
|
|
6371
6372
|
spatialFiltersMode = "intersects"
|
|
6372
6373
|
} = source;
|
|
6373
6374
|
const queryParams = {
|
|
@@ -6379,18 +6380,13 @@ function executeModel(props) {
|
|
|
6379
6380
|
filters,
|
|
6380
6381
|
filtersLogicalOperator
|
|
6381
6382
|
};
|
|
6382
|
-
|
|
6383
|
-
|
|
6384
|
-
|
|
6385
|
-
|
|
6386
|
-
|
|
6387
|
-
|
|
6388
|
-
|
|
6389
|
-
queryParams.spatialDataColumn = spatialDataColumn;
|
|
6390
|
-
queryParams.spatialDataType = spatialDataType;
|
|
6391
|
-
}
|
|
6392
|
-
if (spatialDataType !== "geo") {
|
|
6393
|
-
queryParams.spatialFiltersMode = spatialFiltersMode;
|
|
6383
|
+
queryParams.spatialDataType = spatialDataType;
|
|
6384
|
+
queryParams.spatialDataColumn = spatialDataColumn;
|
|
6385
|
+
if (source.spatialFilter) {
|
|
6386
|
+
queryParams.spatialFilters = { [spatialDataColumn]: source.spatialFilter };
|
|
6387
|
+
if (spatialDataType !== "geo") {
|
|
6388
|
+
queryParams.spatialFiltersMode = spatialFiltersMode;
|
|
6389
|
+
}
|
|
6394
6390
|
}
|
|
6395
6391
|
const urlWithSearchParams = url + "?" + objectToURLSearchParams(queryParams).toString();
|
|
6396
6392
|
const isGet = urlWithSearchParams.length <= REQUEST_GET_MAX_URL_LENGTH;
|