@carto/api-client 0.5.15-alpha.raster-0 → 0.5.15-alpha.raster-2
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 +88 -15
- package/build/api-client.cjs.map +1 -1
- package/build/api-client.d.cts +62 -14
- package/build/api-client.d.ts +62 -14
- package/build/api-client.js +86 -15
- package/build/api-client.js.map +1 -1
- package/package.json +1 -1
- package/src/fetch-map/basemap-styles.ts +1 -1
- package/src/fetch-map/index.ts +5 -1
- package/src/fetch-map/layer-map.ts +34 -17
- package/src/fetch-map/parse-map.ts +29 -3
- package/src/fetch-map/raster-layer.ts +6 -4
- package/src/fetch-map/utils.ts +56 -0
- package/src/fetch-map/vec-expr-evaluator.ts +0 -12
- package/src/index.ts +0 -5
- package/src/sources/types.ts +52 -11
package/build/api-client.d.cts
CHANGED
|
@@ -575,13 +575,50 @@ interface Tilestats {
|
|
|
575
575
|
}
|
|
576
576
|
interface Layer {
|
|
577
577
|
layer: string;
|
|
578
|
+
/** Number of features in the layer. */
|
|
578
579
|
count: number;
|
|
580
|
+
/** Number of attributes in the layer. */
|
|
579
581
|
attributeCount: number;
|
|
580
582
|
attributes: Attribute[];
|
|
583
|
+
/** Type of geometry as in geojson geometry type (Point, LineString, Polygon, etc.) */
|
|
584
|
+
geometry?: string;
|
|
585
|
+
}
|
|
586
|
+
interface AttributeCategoryItem {
|
|
587
|
+
category: string;
|
|
588
|
+
frequency: number;
|
|
589
|
+
}
|
|
590
|
+
/**
|
|
591
|
+
* Quantiles by number of buckets.
|
|
592
|
+
*
|
|
593
|
+
* Example:
|
|
594
|
+
* ```ts
|
|
595
|
+
* {
|
|
596
|
+
* // for 3 buckets, first 1/3 of items lies in range [min, 20], second 1/3 is in [20, 40], and last 1/3 is in [40, max]
|
|
597
|
+
* 3: [20, 40],
|
|
598
|
+
* 4: [20, 30, 50], for 4 buckets ...
|
|
599
|
+
* }
|
|
600
|
+
* ```
|
|
601
|
+
*/
|
|
602
|
+
interface QuantileStats {
|
|
603
|
+
[bucketCount: number]: number[];
|
|
581
604
|
}
|
|
582
605
|
interface Attribute {
|
|
583
|
-
|
|
606
|
+
/**
|
|
607
|
+
* String, Number, Timestamp, Boolean
|
|
608
|
+
*/
|
|
584
609
|
type: string;
|
|
610
|
+
/**
|
|
611
|
+
* Attribute name.
|
|
612
|
+
*/
|
|
613
|
+
attribute: string;
|
|
614
|
+
min?: number;
|
|
615
|
+
max?: number;
|
|
616
|
+
sum?: number;
|
|
617
|
+
/** Quantiles by number of buckets */
|
|
618
|
+
quantiles?: {
|
|
619
|
+
global: QuantileStats;
|
|
620
|
+
} | QuantileStats;
|
|
621
|
+
categories?: AttributeCategoryItem[];
|
|
585
622
|
}
|
|
586
623
|
interface VectorLayer {
|
|
587
624
|
id: string;
|
|
@@ -601,17 +638,8 @@ type RasterMetadataBandStats = {
|
|
|
601
638
|
count: number;
|
|
602
639
|
/**
|
|
603
640
|
* Quantiles by number of buckets.
|
|
604
|
-
*
|
|
605
|
-
* Example:
|
|
606
|
-
* ```ts
|
|
607
|
-
* {
|
|
608
|
-
* // for 3 buckets, first 1/3 of items lies in range [min, 20], second 1/3 is in [20, 40], and last 1/3 is in [40, max]
|
|
609
|
-
* 3: [20, 40],
|
|
610
|
-
* 4: [20, 30, 50], for 4 buckets ...
|
|
611
|
-
* }
|
|
612
|
-
* ```
|
|
613
641
|
*/
|
|
614
|
-
quantiles?:
|
|
642
|
+
quantiles?: QuantileStats;
|
|
615
643
|
/**
|
|
616
644
|
* Top values by number of values.
|
|
617
645
|
*
|
|
@@ -747,7 +775,7 @@ declare function opacityToAlpha(opacity?: number): number;
|
|
|
747
775
|
declare function getColorAccessor({ name, colorColumn }: VisualChannelField, scaleType: ScaleType, { aggregation, range }: {
|
|
748
776
|
aggregation: string;
|
|
749
777
|
range: any;
|
|
750
|
-
}, opacity: number | undefined, data:
|
|
778
|
+
}, opacity: number | undefined, data: TilejsonResult): {
|
|
751
779
|
accessor: any;
|
|
752
780
|
scale: any;
|
|
753
781
|
};
|
|
@@ -761,7 +789,7 @@ declare function getIconUrlAccessor(field: VisualChannelField | null | undefined
|
|
|
761
789
|
declare function getMaxMarkerSize(visConfig: VisConfig, visualChannels: VisualChannels): number;
|
|
762
790
|
type Accessor = number | ((d: any, i: any) => number);
|
|
763
791
|
declare function negateAccessor(accessor: Accessor): Accessor;
|
|
764
|
-
declare function getSizeAccessor({ name }: VisualChannelField, scaleType: ScaleType | undefined, aggregation: string | null | undefined, range: Iterable<Range> | null | undefined, data:
|
|
792
|
+
declare function getSizeAccessor({ name }: VisualChannelField, scaleType: ScaleType | undefined, aggregation: string | null | undefined, range: Iterable<Range> | null | undefined, data: TilejsonResult): {
|
|
765
793
|
accessor: any;
|
|
766
794
|
scale: any;
|
|
767
795
|
};
|
|
@@ -980,6 +1008,9 @@ type Dataset = {
|
|
|
980
1008
|
exportToBucketAvailable?: boolean;
|
|
981
1009
|
};
|
|
982
1010
|
|
|
1011
|
+
type StyleLayerGroupSlug = 'label' | 'road' | 'border' | 'building' | 'water' | 'land';
|
|
1012
|
+
declare function applyLayerGroupFilters(style: any, // this Maplibre/Mapbox style, we don't want to add a dependency on Maplibre
|
|
1013
|
+
visibleLayerGroups: Record<StyleLayerGroupSlug, boolean>): any;
|
|
983
1014
|
declare const _default: {
|
|
984
1015
|
readonly VOYAGER: string;
|
|
985
1016
|
readonly POSITRON: string;
|
|
@@ -1117,6 +1148,23 @@ declare function fetchBasemapProps({ config, errorContext, applyLayerFilters, }:
|
|
|
1117
1148
|
errorContext?: APIErrorContext;
|
|
1118
1149
|
}): Promise<Basemap | null>;
|
|
1119
1150
|
|
|
1151
|
+
/**
|
|
1152
|
+
* Create domain for D3 threshold scale with logarithmic steps.
|
|
1153
|
+
*
|
|
1154
|
+
* If min is 0, it starts with max and goes down to fill color scale.
|
|
1155
|
+
* If max is Infinity, it starts with 10 and goes up to fill color scale.
|
|
1156
|
+
* Othersise it starts on first power of 10 that is greater than min.
|
|
1157
|
+
*
|
|
1158
|
+
* Generates `steps-1` entries, as this is what d3 threshold scale expects
|
|
1159
|
+
*
|
|
1160
|
+
* @see https://d3js.org/d3-scale/threshold
|
|
1161
|
+
*/
|
|
1162
|
+
declare function getLog10ScaleSteps({ min, max, steps, }: {
|
|
1163
|
+
min: number;
|
|
1164
|
+
max: number;
|
|
1165
|
+
steps: number;
|
|
1166
|
+
}): number[];
|
|
1167
|
+
|
|
1120
1168
|
/**
|
|
1121
1169
|
* Create vector expresion evaluator.
|
|
1122
1170
|
*
|
|
@@ -2051,4 +2099,4 @@ declare function getColumnNameFromGeoColumn(geoColumn: string | null | undefined
|
|
|
2051
2099
|
*/
|
|
2052
2100
|
declare function getSpatialIndexFromGeoColumn(geoColumn: string): SpatialIndex | null;
|
|
2053
2101
|
|
|
2054
|
-
export { type APIErrorContext, type APIRequestType, type AddFilterOptions, type AggregationFunction, type AggregationType, AggregationTypes, ApiVersion, type Attribute, _default as BASEMAP, type BaseRequestOptions, type Basemap, type BoundaryQuerySourceOptions, type BoundaryQuerySourceResponse, type BoundaryTableSourceOptions, type BoundaryTableSourceResponse, 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 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 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, _buildFeatureFilter, createVecExprEvaluator as _createVecExprEvaluator, domainFromValues as _domainFromValues, evaluateVecExpr as _evaluateVecExpr, _getHexagonResolution, getRasterTileLayerStyleProps as _getRasterTileLayerStyleProps, validateVecExprSyntax as _validateVecExprSyntax, addFilter, aggregate, aggregationFunctions, applyFilters, applySorting, boundaryQuerySource, boundaryTableSource, buildBinaryFeatureFilter, buildPublicMapUrl, buildStatsUrl, calculateClusterRadius, calculateClusterTextFontSize, calculateLayerScale, clearDefaultRequestCache, clearFilters, 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, transformToTileCoords, vectorQuerySource, vectorTableSource, vectorTilesetSource };
|
|
2102
|
+
export { type APIErrorContext, type APIRequestType, type AddFilterOptions, type AggregationFunction, type AggregationType, AggregationTypes, ApiVersion, type Attribute, _default as BASEMAP, type BaseRequestOptions, type Basemap, type BoundaryQuerySourceOptions, type BoundaryQuerySourceResponse, type BoundaryTableSourceOptions, type BoundaryTableSourceResponse, 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 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 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, _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, 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, transformToTileCoords, vectorQuerySource, vectorTableSource, vectorTilesetSource };
|
package/build/api-client.d.ts
CHANGED
|
@@ -575,13 +575,50 @@ interface Tilestats {
|
|
|
575
575
|
}
|
|
576
576
|
interface Layer {
|
|
577
577
|
layer: string;
|
|
578
|
+
/** Number of features in the layer. */
|
|
578
579
|
count: number;
|
|
580
|
+
/** Number of attributes in the layer. */
|
|
579
581
|
attributeCount: number;
|
|
580
582
|
attributes: Attribute[];
|
|
583
|
+
/** Type of geometry as in geojson geometry type (Point, LineString, Polygon, etc.) */
|
|
584
|
+
geometry?: string;
|
|
585
|
+
}
|
|
586
|
+
interface AttributeCategoryItem {
|
|
587
|
+
category: string;
|
|
588
|
+
frequency: number;
|
|
589
|
+
}
|
|
590
|
+
/**
|
|
591
|
+
* Quantiles by number of buckets.
|
|
592
|
+
*
|
|
593
|
+
* Example:
|
|
594
|
+
* ```ts
|
|
595
|
+
* {
|
|
596
|
+
* // for 3 buckets, first 1/3 of items lies in range [min, 20], second 1/3 is in [20, 40], and last 1/3 is in [40, max]
|
|
597
|
+
* 3: [20, 40],
|
|
598
|
+
* 4: [20, 30, 50], for 4 buckets ...
|
|
599
|
+
* }
|
|
600
|
+
* ```
|
|
601
|
+
*/
|
|
602
|
+
interface QuantileStats {
|
|
603
|
+
[bucketCount: number]: number[];
|
|
581
604
|
}
|
|
582
605
|
interface Attribute {
|
|
583
|
-
|
|
606
|
+
/**
|
|
607
|
+
* String, Number, Timestamp, Boolean
|
|
608
|
+
*/
|
|
584
609
|
type: string;
|
|
610
|
+
/**
|
|
611
|
+
* Attribute name.
|
|
612
|
+
*/
|
|
613
|
+
attribute: string;
|
|
614
|
+
min?: number;
|
|
615
|
+
max?: number;
|
|
616
|
+
sum?: number;
|
|
617
|
+
/** Quantiles by number of buckets */
|
|
618
|
+
quantiles?: {
|
|
619
|
+
global: QuantileStats;
|
|
620
|
+
} | QuantileStats;
|
|
621
|
+
categories?: AttributeCategoryItem[];
|
|
585
622
|
}
|
|
586
623
|
interface VectorLayer {
|
|
587
624
|
id: string;
|
|
@@ -601,17 +638,8 @@ type RasterMetadataBandStats = {
|
|
|
601
638
|
count: number;
|
|
602
639
|
/**
|
|
603
640
|
* Quantiles by number of buckets.
|
|
604
|
-
*
|
|
605
|
-
* Example:
|
|
606
|
-
* ```ts
|
|
607
|
-
* {
|
|
608
|
-
* // for 3 buckets, first 1/3 of items lies in range [min, 20], second 1/3 is in [20, 40], and last 1/3 is in [40, max]
|
|
609
|
-
* 3: [20, 40],
|
|
610
|
-
* 4: [20, 30, 50], for 4 buckets ...
|
|
611
|
-
* }
|
|
612
|
-
* ```
|
|
613
641
|
*/
|
|
614
|
-
quantiles?:
|
|
642
|
+
quantiles?: QuantileStats;
|
|
615
643
|
/**
|
|
616
644
|
* Top values by number of values.
|
|
617
645
|
*
|
|
@@ -747,7 +775,7 @@ declare function opacityToAlpha(opacity?: number): number;
|
|
|
747
775
|
declare function getColorAccessor({ name, colorColumn }: VisualChannelField, scaleType: ScaleType, { aggregation, range }: {
|
|
748
776
|
aggregation: string;
|
|
749
777
|
range: any;
|
|
750
|
-
}, opacity: number | undefined, data:
|
|
778
|
+
}, opacity: number | undefined, data: TilejsonResult): {
|
|
751
779
|
accessor: any;
|
|
752
780
|
scale: any;
|
|
753
781
|
};
|
|
@@ -761,7 +789,7 @@ declare function getIconUrlAccessor(field: VisualChannelField | null | undefined
|
|
|
761
789
|
declare function getMaxMarkerSize(visConfig: VisConfig, visualChannels: VisualChannels): number;
|
|
762
790
|
type Accessor = number | ((d: any, i: any) => number);
|
|
763
791
|
declare function negateAccessor(accessor: Accessor): Accessor;
|
|
764
|
-
declare function getSizeAccessor({ name }: VisualChannelField, scaleType: ScaleType | undefined, aggregation: string | null | undefined, range: Iterable<Range> | null | undefined, data:
|
|
792
|
+
declare function getSizeAccessor({ name }: VisualChannelField, scaleType: ScaleType | undefined, aggregation: string | null | undefined, range: Iterable<Range> | null | undefined, data: TilejsonResult): {
|
|
765
793
|
accessor: any;
|
|
766
794
|
scale: any;
|
|
767
795
|
};
|
|
@@ -980,6 +1008,9 @@ type Dataset = {
|
|
|
980
1008
|
exportToBucketAvailable?: boolean;
|
|
981
1009
|
};
|
|
982
1010
|
|
|
1011
|
+
type StyleLayerGroupSlug = 'label' | 'road' | 'border' | 'building' | 'water' | 'land';
|
|
1012
|
+
declare function applyLayerGroupFilters(style: any, // this Maplibre/Mapbox style, we don't want to add a dependency on Maplibre
|
|
1013
|
+
visibleLayerGroups: Record<StyleLayerGroupSlug, boolean>): any;
|
|
983
1014
|
declare const _default: {
|
|
984
1015
|
readonly VOYAGER: string;
|
|
985
1016
|
readonly POSITRON: string;
|
|
@@ -1117,6 +1148,23 @@ declare function fetchBasemapProps({ config, errorContext, applyLayerFilters, }:
|
|
|
1117
1148
|
errorContext?: APIErrorContext;
|
|
1118
1149
|
}): Promise<Basemap | null>;
|
|
1119
1150
|
|
|
1151
|
+
/**
|
|
1152
|
+
* Create domain for D3 threshold scale with logarithmic steps.
|
|
1153
|
+
*
|
|
1154
|
+
* If min is 0, it starts with max and goes down to fill color scale.
|
|
1155
|
+
* If max is Infinity, it starts with 10 and goes up to fill color scale.
|
|
1156
|
+
* Othersise it starts on first power of 10 that is greater than min.
|
|
1157
|
+
*
|
|
1158
|
+
* Generates `steps-1` entries, as this is what d3 threshold scale expects
|
|
1159
|
+
*
|
|
1160
|
+
* @see https://d3js.org/d3-scale/threshold
|
|
1161
|
+
*/
|
|
1162
|
+
declare function getLog10ScaleSteps({ min, max, steps, }: {
|
|
1163
|
+
min: number;
|
|
1164
|
+
max: number;
|
|
1165
|
+
steps: number;
|
|
1166
|
+
}): number[];
|
|
1167
|
+
|
|
1120
1168
|
/**
|
|
1121
1169
|
* Create vector expresion evaluator.
|
|
1122
1170
|
*
|
|
@@ -2051,4 +2099,4 @@ declare function getColumnNameFromGeoColumn(geoColumn: string | null | undefined
|
|
|
2051
2099
|
*/
|
|
2052
2100
|
declare function getSpatialIndexFromGeoColumn(geoColumn: string): SpatialIndex | null;
|
|
2053
2101
|
|
|
2054
|
-
export { type APIErrorContext, type APIRequestType, type AddFilterOptions, type AggregationFunction, type AggregationType, AggregationTypes, ApiVersion, type Attribute, _default as BASEMAP, type BaseRequestOptions, type Basemap, type BoundaryQuerySourceOptions, type BoundaryQuerySourceResponse, type BoundaryTableSourceOptions, type BoundaryTableSourceResponse, 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 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 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, _buildFeatureFilter, createVecExprEvaluator as _createVecExprEvaluator, domainFromValues as _domainFromValues, evaluateVecExpr as _evaluateVecExpr, _getHexagonResolution, getRasterTileLayerStyleProps as _getRasterTileLayerStyleProps, validateVecExprSyntax as _validateVecExprSyntax, addFilter, aggregate, aggregationFunctions, applyFilters, applySorting, boundaryQuerySource, boundaryTableSource, buildBinaryFeatureFilter, buildPublicMapUrl, buildStatsUrl, calculateClusterRadius, calculateClusterTextFontSize, calculateLayerScale, clearDefaultRequestCache, clearFilters, 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, transformToTileCoords, vectorQuerySource, vectorTableSource, vectorTilesetSource };
|
|
2102
|
+
export { type APIErrorContext, type APIRequestType, type AddFilterOptions, type AggregationFunction, type AggregationType, AggregationTypes, ApiVersion, type Attribute, _default as BASEMAP, type BaseRequestOptions, type Basemap, type BoundaryQuerySourceOptions, type BoundaryQuerySourceResponse, type BoundaryTableSourceOptions, type BoundaryTableSourceResponse, 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 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 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, _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, 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, transformToTileCoords, vectorQuerySource, vectorTableSource, vectorTilesetSource };
|
package/build/api-client.js
CHANGED
|
@@ -9157,6 +9157,37 @@ function formatDate(value) {
|
|
|
9157
9157
|
function formatTimestamp(value) {
|
|
9158
9158
|
return String(Math.floor(new Date(value).getTime() / 1e3));
|
|
9159
9159
|
}
|
|
9160
|
+
function roundedPow10(exp) {
|
|
9161
|
+
const raw = Math.pow(10, exp);
|
|
9162
|
+
if (exp < 0) {
|
|
9163
|
+
const shift = Math.pow(10, -exp);
|
|
9164
|
+
return Math.round(raw * shift) / shift;
|
|
9165
|
+
}
|
|
9166
|
+
return raw;
|
|
9167
|
+
}
|
|
9168
|
+
function getLog10ScaleSteps({
|
|
9169
|
+
min: min2,
|
|
9170
|
+
max: max2,
|
|
9171
|
+
steps
|
|
9172
|
+
}) {
|
|
9173
|
+
if (min2 === 0) {
|
|
9174
|
+
if (max2 === Infinity) {
|
|
9175
|
+
return [...Array(steps - 1)].map((_v, i) => roundedPow10(i + 1));
|
|
9176
|
+
}
|
|
9177
|
+
const maxLog = Math.log10(max2);
|
|
9178
|
+
const endExponent = Math.ceil(maxLog);
|
|
9179
|
+
const startExponent = endExponent - steps + 1;
|
|
9180
|
+
return [...Array(steps - 1)].map(
|
|
9181
|
+
(_v, i) => roundedPow10(startExponent + i)
|
|
9182
|
+
);
|
|
9183
|
+
} else {
|
|
9184
|
+
const minLog = Math.log10(min2);
|
|
9185
|
+
const startExponent = Math.ceil(minLog) === minLog ? minLog + 1 : Math.ceil(minLog);
|
|
9186
|
+
return [...Array(steps - 1)].map(
|
|
9187
|
+
(_v, i) => roundedPow10(startExponent + i)
|
|
9188
|
+
);
|
|
9189
|
+
}
|
|
9190
|
+
}
|
|
9160
9191
|
|
|
9161
9192
|
// src/fetch-map/layer-map.ts
|
|
9162
9193
|
var SCALE_FUNCS = {
|
|
@@ -9280,6 +9311,13 @@ function getLayerProps(type, config2, dataset) {
|
|
|
9280
9311
|
};
|
|
9281
9312
|
}
|
|
9282
9313
|
function domainFromAttribute(attribute, scaleType, scaleLength) {
|
|
9314
|
+
if (scaleType === "log10steps" && attribute.min !== void 0 && attribute.max !== void 0) {
|
|
9315
|
+
return getLog10ScaleSteps({
|
|
9316
|
+
min: attribute.min,
|
|
9317
|
+
max: attribute.max,
|
|
9318
|
+
steps: scaleLength
|
|
9319
|
+
});
|
|
9320
|
+
}
|
|
9283
9321
|
if (scaleType === "ordinal" || scaleType === "point") {
|
|
9284
9322
|
if (!attribute.categories) {
|
|
9285
9323
|
return [0, 1];
|
|
@@ -9287,13 +9325,13 @@ function domainFromAttribute(attribute, scaleType, scaleLength) {
|
|
|
9287
9325
|
return attribute.categories.map((c) => c.category).filter((c) => c !== void 0 && c !== null);
|
|
9288
9326
|
}
|
|
9289
9327
|
if (scaleType === "quantile" && attribute.quantiles) {
|
|
9290
|
-
return attribute.quantiles
|
|
9328
|
+
return "global" in attribute.quantiles ? attribute.quantiles.global[scaleLength] : attribute.quantiles[scaleLength];
|
|
9291
9329
|
}
|
|
9292
9330
|
let { min: min2 } = attribute;
|
|
9293
9331
|
if (scaleType === "log" && min2 === 0) {
|
|
9294
9332
|
min2 = 1e-5;
|
|
9295
9333
|
}
|
|
9296
|
-
return [min2, attribute.max];
|
|
9334
|
+
return [min2 ?? 0, attribute.max ?? 1];
|
|
9297
9335
|
}
|
|
9298
9336
|
function domainFromValues(values, scaleType) {
|
|
9299
9337
|
if (scaleType === "ordinal" || scaleType === "point") {
|
|
@@ -9314,7 +9352,9 @@ function calculateDomain(data, name, scaleType, scaleLength) {
|
|
|
9314
9352
|
if (data.tilestats) {
|
|
9315
9353
|
const { attributes } = data.tilestats.layers[0];
|
|
9316
9354
|
const attribute = attributes.find((a) => a.attribute === name);
|
|
9317
|
-
|
|
9355
|
+
if (attribute) {
|
|
9356
|
+
return domainFromAttribute(attribute, scaleType, scaleLength);
|
|
9357
|
+
}
|
|
9318
9358
|
}
|
|
9319
9359
|
return [0, 1];
|
|
9320
9360
|
}
|
|
@@ -9373,17 +9413,21 @@ function getColorAccessor({ name, colorColumn }, scaleType, { aggregation, range
|
|
|
9373
9413
|
function calculateLayerScale(name, scaleType, range, data) {
|
|
9374
9414
|
let domain = [];
|
|
9375
9415
|
let scaleColor = [];
|
|
9376
|
-
|
|
9377
|
-
|
|
9378
|
-
if (
|
|
9416
|
+
const { colors } = range;
|
|
9417
|
+
if (scaleType === "custom") {
|
|
9418
|
+
if (range.uiCustomScaleType === "logarithmic") {
|
|
9419
|
+
domain = calculateDomain(data, name, "log10steps", colors.length);
|
|
9420
|
+
scaleColor = colors;
|
|
9421
|
+
} else if (range.colorMap) {
|
|
9422
|
+
const { colorMap } = range;
|
|
9379
9423
|
colorMap.forEach(([value, color2]) => {
|
|
9380
9424
|
domain.push(value);
|
|
9381
9425
|
scaleColor.push(color2);
|
|
9382
9426
|
});
|
|
9383
|
-
} else {
|
|
9384
|
-
domain = calculateDomain(data, name, scaleType, colors.length);
|
|
9385
|
-
scaleColor = colors;
|
|
9386
9427
|
}
|
|
9428
|
+
} else if (scaleType !== "identity") {
|
|
9429
|
+
domain = calculateDomain(data, name, scaleType, colors.length);
|
|
9430
|
+
scaleColor = colors;
|
|
9387
9431
|
if (scaleType === "ordinal") {
|
|
9388
9432
|
domain = domain.slice(0, scaleColor.length);
|
|
9389
9433
|
}
|
|
@@ -9764,10 +9808,11 @@ function domainFromRasterMetadataBand(band, scaleType, colorRange) {
|
|
|
9764
9808
|
}
|
|
9765
9809
|
if (scaleType === "custom") {
|
|
9766
9810
|
if (colorRange.uiCustomScaleType === "logarithmic") {
|
|
9767
|
-
|
|
9768
|
-
|
|
9769
|
-
|
|
9770
|
-
|
|
9811
|
+
return getLog10ScaleSteps({
|
|
9812
|
+
min: band.stats.min,
|
|
9813
|
+
max: band.stats.max,
|
|
9814
|
+
steps: colorRange.colors.length
|
|
9815
|
+
});
|
|
9771
9816
|
} else {
|
|
9772
9817
|
return colorRange.colorMap?.map(([value]) => value) || [];
|
|
9773
9818
|
}
|
|
@@ -10025,15 +10070,24 @@ function createChannelProps(id, layerType, config2, visualChannels, data, datase
|
|
|
10025
10070
|
radiusScale,
|
|
10026
10071
|
strokeColorField,
|
|
10027
10072
|
strokeColorScale,
|
|
10073
|
+
sizeField: strokeWidthField,
|
|
10074
|
+
sizeScale: strokeWidthScale,
|
|
10028
10075
|
weightField
|
|
10029
10076
|
} = visualChannels;
|
|
10030
10077
|
if (layerType === "raster") {
|
|
10078
|
+
const rasterMetadata = data.raster_metadata;
|
|
10079
|
+
if (!rasterMetadata) {
|
|
10080
|
+
return {
|
|
10081
|
+
channelProps: {},
|
|
10082
|
+
scales: {}
|
|
10083
|
+
};
|
|
10084
|
+
}
|
|
10031
10085
|
const rasterStyleType = config2.visConfig.rasterStyleType;
|
|
10032
10086
|
if (rasterStyleType === "Rgb") {
|
|
10033
10087
|
return {
|
|
10034
10088
|
channelProps: getRasterTileLayerStylePropsRgb({
|
|
10035
10089
|
layerConfig: config2,
|
|
10036
|
-
rasterMetadata
|
|
10090
|
+
rasterMetadata,
|
|
10037
10091
|
visualChannels
|
|
10038
10092
|
}),
|
|
10039
10093
|
scales: {}
|
|
@@ -10043,7 +10097,7 @@ function createChannelProps(id, layerType, config2, visualChannels, data, datase
|
|
|
10043
10097
|
channelProps: getRasterTileLayerStylePropsScaledBand({
|
|
10044
10098
|
layerConfig: config2,
|
|
10045
10099
|
visualChannels,
|
|
10046
|
-
rasterMetadata
|
|
10100
|
+
rasterMetadata
|
|
10047
10101
|
}),
|
|
10048
10102
|
scales: {
|
|
10049
10103
|
...colorField && {
|
|
@@ -10164,6 +10218,21 @@ function createChannelProps(id, layerType, config2, visualChannels, data, datase
|
|
|
10164
10218
|
...domainAndRangeFromScale(scale2)
|
|
10165
10219
|
};
|
|
10166
10220
|
}
|
|
10221
|
+
if (strokeWidthField) {
|
|
10222
|
+
const { accessor, scale: scale2 } = getSizeAccessor(
|
|
10223
|
+
strokeWidthField,
|
|
10224
|
+
strokeWidthScale,
|
|
10225
|
+
visConfig.sizeAggregation,
|
|
10226
|
+
visConfig.sizeRange,
|
|
10227
|
+
data
|
|
10228
|
+
);
|
|
10229
|
+
result.getLineWidth = accessor;
|
|
10230
|
+
scales.lineWidth = updateTriggers.getLineWidth = {
|
|
10231
|
+
field: strokeWidthField,
|
|
10232
|
+
type: strokeWidthScale || "identity",
|
|
10233
|
+
...domainAndRangeFromScale(scale2)
|
|
10234
|
+
};
|
|
10235
|
+
}
|
|
10167
10236
|
if (heightField && visConfig.enable3d) {
|
|
10168
10237
|
const { accessor, scale: scale2 } = getSizeAccessor(
|
|
10169
10238
|
heightField,
|
|
@@ -10945,11 +11014,13 @@ export {
|
|
|
10945
11014
|
WidgetTableSource,
|
|
10946
11015
|
WidgetTilesetSource,
|
|
10947
11016
|
ErrorCode as _ErrorCode,
|
|
11017
|
+
applyLayerGroupFilters as _applyLayerGroupFilters,
|
|
10948
11018
|
_buildFeatureFilter,
|
|
10949
11019
|
createVecExprEvaluator as _createVecExprEvaluator,
|
|
10950
11020
|
domainFromValues as _domainFromValues,
|
|
10951
11021
|
evaluateVecExpr as _evaluateVecExpr,
|
|
10952
11022
|
_getHexagonResolution,
|
|
11023
|
+
getLog10ScaleSteps as _getLog10ScaleSteps,
|
|
10953
11024
|
getRasterTileLayerStyleProps as _getRasterTileLayerStyleProps,
|
|
10954
11025
|
validateVecExprSyntax as _validateVecExprSyntax,
|
|
10955
11026
|
addFilter,
|