@carto/api-client 0.5.0-alpha.14 → 0.5.0-alpha.16
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 +30 -1
- package/build/api-client.cjs +9362 -2117
- package/build/api-client.cjs.map +1 -1
- package/build/api-client.d.cts +454 -133
- package/build/api-client.d.ts +454 -133
- package/build/api-client.js +9489 -2303
- package/build/api-client.js.map +1 -1
- package/build/worker.js +59 -156
- package/build/worker.js.map +1 -1
- package/package.json +31 -19
- package/src/api/query.ts +2 -1
- package/src/constants-internal.ts +10 -0
- package/src/constants.ts +5 -1
- package/src/fetch-map/basemap-styles.ts +159 -0
- package/src/fetch-map/basemap.ts +120 -0
- package/src/fetch-map/fetch-map.ts +331 -0
- package/src/fetch-map/index.ts +13 -0
- package/src/fetch-map/layer-map.ts +461 -0
- package/src/fetch-map/parse-map.ts +425 -0
- package/src/fetch-map/source.ts +233 -0
- package/src/fetch-map/types.ts +268 -0
- package/src/fetch-map/utils.ts +69 -0
- package/src/index.ts +1 -0
- package/src/models/model.ts +0 -7
- package/src/operations/applySorting.ts +1 -1
- package/src/sources/base-source.ts +4 -2
- package/src/sources/h3-tileset-source.ts +1 -1
- package/src/sources/quadbin-tileset-source.ts +1 -1
- package/src/sources/types.ts +0 -5
- package/src/sources/vector-tileset-source.ts +1 -1
- package/src/spatial-index.ts +3 -84
- package/src/types.ts +10 -0
- package/src/vendor/thenby.ts +83 -0
- package/src/widget-sources/types.ts +0 -2
- package/src/widget-sources/widget-remote-source.ts +8 -76
- package/src/widget-sources/widget-source.ts +6 -24
package/build/api-client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Polygon, MultiPolygon,
|
|
1
|
+
import { Feature, Polygon, MultiPolygon, BBox, FeatureCollection, Geometry } from 'geojson';
|
|
2
2
|
import { BinaryFeatureCollection, BinaryFeature } from '@loaders.gl/schema';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -57,7 +57,6 @@ declare enum TileFormat {
|
|
|
57
57
|
/** @privateRemarks Source: @carto/react-core */
|
|
58
58
|
declare enum SpatialIndex {
|
|
59
59
|
H3 = "h3",
|
|
60
|
-
S2 = "s2",
|
|
61
60
|
QUADBIN = "quadbin"
|
|
62
61
|
}
|
|
63
62
|
/** @privateRemarks Source: @carto/react-core */
|
|
@@ -69,6 +68,10 @@ declare enum Provider {
|
|
|
69
68
|
DATABRICKS = "databricks",
|
|
70
69
|
DATABRICKS_REST = "databricksRest"
|
|
71
70
|
}
|
|
71
|
+
declare const SpatialIndexColumn: Readonly<{
|
|
72
|
+
h3: string[];
|
|
73
|
+
quadbin: string[];
|
|
74
|
+
}>;
|
|
72
75
|
|
|
73
76
|
/******************************************************************************
|
|
74
77
|
* MAPS AND TILES
|
|
@@ -77,6 +80,8 @@ declare enum Provider {
|
|
|
77
80
|
type Format = 'json' | 'geojson' | 'tilejson';
|
|
78
81
|
/** @privateRemarks Source: @carto/constants, @deck.gl/carto */
|
|
79
82
|
type MapType = 'boundary' | 'query' | 'table' | 'tileset' | 'raster';
|
|
83
|
+
/** @privateRemarks Source: cloud-native */
|
|
84
|
+
type ProviderType = 'bigquery' | 'postgres' | 'snowflake' | 'redshift' | 'databricks' | 'carto' | 'carto_dw';
|
|
80
85
|
/**
|
|
81
86
|
* Alias for GeoJSON 'BBox' type, semantically representing a viewport.
|
|
82
87
|
* Order of values is "west", "south", "east", "north".
|
|
@@ -249,60 +254,45 @@ type _DataFilterExtensionProps = {
|
|
|
249
254
|
*/
|
|
250
255
|
declare function getDataFilterExtensionProps(filters: Filters, filtersLogicalOperator?: FilterLogicalOperator): _DataFilterExtensionProps;
|
|
251
256
|
|
|
252
|
-
type
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
* `column` and `type` will be replaced.
|
|
260
|
-
*/
|
|
261
|
-
declare function addFilter(filters: Record<string, Filter>, { column, type, values, owner }: AddFilterOptions): Record<string, Filter>;
|
|
262
|
-
type RemoveFilterOptions = {
|
|
263
|
-
column: string;
|
|
264
|
-
owner?: string;
|
|
265
|
-
};
|
|
266
|
-
/**
|
|
267
|
-
* Removes one or more {@link Filter filters} from the filter set. If only
|
|
268
|
-
* `column` is specified, then all filters on that column are removed. If both
|
|
269
|
-
* `column` and `owner` are specified, then only filters for that column
|
|
270
|
-
* associated with the owner are removed.
|
|
271
|
-
*/
|
|
272
|
-
declare function removeFilter(filters: Record<string, Filter>, { column, owner }: RemoveFilterOptions): Record<string, Filter>;
|
|
273
|
-
/**
|
|
274
|
-
* Clears all {@link Filter filters} from the filter set.
|
|
275
|
-
*/
|
|
276
|
-
declare function clearFilters(filters: Record<string, Filter>): Record<string, Filter>;
|
|
277
|
-
type HasFilterOptions = {
|
|
278
|
-
column: string;
|
|
279
|
-
owner?: string;
|
|
280
|
-
};
|
|
281
|
-
declare function hasFilter(filters: Record<string, Filter>, { column, owner }: HasFilterOptions): boolean;
|
|
282
|
-
type GetFilterOptions<T extends FilterType> = {
|
|
283
|
-
column: string;
|
|
284
|
-
type: T;
|
|
285
|
-
owner?: string;
|
|
257
|
+
type APIRequestType = 'Map data' | 'Map instantiation' | 'Public map' | 'Tile stats' | 'SQL' | 'Basemap style';
|
|
258
|
+
type APIErrorContext = {
|
|
259
|
+
requestType: APIRequestType;
|
|
260
|
+
mapId?: string;
|
|
261
|
+
connection?: string;
|
|
262
|
+
source?: string;
|
|
263
|
+
type?: MapType;
|
|
286
264
|
};
|
|
287
|
-
declare function getFilter<T extends FilterType>(filters: Record<string, Filter>, { column, type, owner }: GetFilterOptions<T>): Filter[T] | null;
|
|
288
|
-
|
|
289
265
|
/**
|
|
290
|
-
* Returns a {@link SpatialFilter} for a given viewport, typically obtained
|
|
291
|
-
* from deck.gl's `viewport.getBounds()` method ([west, south, east, north]).
|
|
292
|
-
* If the viewport covers the entire world (to some margin of error in Web
|
|
293
|
-
* Mercator space), `undefined` is returned instead.
|
|
294
266
|
*
|
|
295
|
-
*
|
|
296
|
-
*
|
|
297
|
-
|
|
298
|
-
declare function createViewportSpatialFilter(viewport: BBox): SpatialFilter | undefined;
|
|
299
|
-
/**
|
|
300
|
-
* Returns a {@link SpatialFilter} for a given {@link Polygon} or
|
|
301
|
-
* {@link MultiPolygon}. If the polygon(s) extend outside longitude
|
|
302
|
-
* range [-180, +180], the result may be reformatted for compatibility
|
|
303
|
-
* with CARTO APIs.
|
|
267
|
+
* Custom error for reported errors in CARTO Maps API.
|
|
268
|
+
* Provides useful debugging information in console and context for applications.
|
|
269
|
+
*
|
|
304
270
|
*/
|
|
305
|
-
declare
|
|
271
|
+
declare class CartoAPIError extends Error {
|
|
272
|
+
/** Source error from server */
|
|
273
|
+
error: Error;
|
|
274
|
+
/** Context (API call & parameters) in which error occured */
|
|
275
|
+
errorContext: APIErrorContext;
|
|
276
|
+
/** Response from server */
|
|
277
|
+
response?: Response;
|
|
278
|
+
/** JSON Response from server */
|
|
279
|
+
responseJson?: any;
|
|
280
|
+
constructor(error: Error, errorContext: APIErrorContext, response?: Response, responseJson?: any);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/** @internal Required by fetchMap(). */
|
|
284
|
+
declare function buildPublicMapUrl({ apiBaseUrl, cartoMapId, }: {
|
|
285
|
+
apiBaseUrl: string;
|
|
286
|
+
cartoMapId: string;
|
|
287
|
+
}): string;
|
|
288
|
+
/** @internal Required by fetchMap(). */
|
|
289
|
+
declare function buildStatsUrl({ attribute, apiBaseUrl, connectionName, source, type, }: {
|
|
290
|
+
attribute: string;
|
|
291
|
+
apiBaseUrl: string;
|
|
292
|
+
connectionName: string;
|
|
293
|
+
source: string;
|
|
294
|
+
type: MapType;
|
|
295
|
+
}): string;
|
|
306
296
|
|
|
307
297
|
type SourceRequiredOptions = {
|
|
308
298
|
/** Carto platform access token. */
|
|
@@ -400,10 +390,6 @@ type AggregationOptions = {
|
|
|
400
390
|
* @default 6 for quadbin and 4 for h3 sources
|
|
401
391
|
*/
|
|
402
392
|
aggregationResLevel?: number;
|
|
403
|
-
/**
|
|
404
|
-
* Original resolution of the spatial index data as stored in the DW
|
|
405
|
-
*/
|
|
406
|
-
dataResolution?: number;
|
|
407
393
|
};
|
|
408
394
|
type FilterOptions = {
|
|
409
395
|
/**
|
|
@@ -669,7 +655,399 @@ type QueryResult = {
|
|
|
669
655
|
}[];
|
|
670
656
|
};
|
|
671
657
|
|
|
672
|
-
|
|
658
|
+
type QueryOptions = SourceOptions & QuerySourceOptions;
|
|
659
|
+
declare const query: (options: QueryOptions) => Promise<QueryResult>;
|
|
660
|
+
|
|
661
|
+
declare function requestWithParameters<T = any>({ baseUrl, parameters, headers: customHeaders, errorContext, maxLengthURL, localCache, }: {
|
|
662
|
+
baseUrl: string;
|
|
663
|
+
parameters?: Record<string, unknown>;
|
|
664
|
+
headers?: Record<string, string>;
|
|
665
|
+
errorContext: APIErrorContext;
|
|
666
|
+
maxLengthURL?: number;
|
|
667
|
+
localCache?: LocalCacheOptions;
|
|
668
|
+
}): Promise<T>;
|
|
669
|
+
|
|
670
|
+
type LayerType = 'clusterTile' | 'h3' | 'heatmapTile' | 'mvt' | 'quadbin' | 'raster' | 'tileset';
|
|
671
|
+
|
|
672
|
+
declare const SCALE_FUNCS: Record<string, () => any>;
|
|
673
|
+
type SCALE_TYPE = keyof typeof SCALE_FUNCS;
|
|
674
|
+
declare const AGGREGATION: Record<string, string>;
|
|
675
|
+
declare const OPACITY_MAP: Record<string, string>;
|
|
676
|
+
declare function getLayerProps(type: LayerType, config: MapLayerConfig, dataset: Dataset): {
|
|
677
|
+
propMap: any;
|
|
678
|
+
defaultProps: any;
|
|
679
|
+
};
|
|
680
|
+
declare function domainFromValues(values: any, scaleType: SCALE_TYPE): any;
|
|
681
|
+
declare function opacityToAlpha(opacity?: number): number;
|
|
682
|
+
declare function getColorValueAccessor({ name }: VisualChannelField, colorAggregation: string, data: any): any;
|
|
683
|
+
declare function getColorAccessor({ name, colorColumn }: VisualChannelField, scaleType: SCALE_TYPE, { aggregation, range }: {
|
|
684
|
+
aggregation: string;
|
|
685
|
+
range: any;
|
|
686
|
+
}, opacity: number | undefined, data: any): any;
|
|
687
|
+
declare function getIconUrlAccessor(field: VisualChannelField | null | undefined, range: CustomMarkersRange | null | undefined, { fallbackUrl, maxIconSize, useMaskedIcons, }: {
|
|
688
|
+
fallbackUrl?: string | null;
|
|
689
|
+
maxIconSize: number;
|
|
690
|
+
useMaskedIcons?: boolean;
|
|
691
|
+
}, data: any): any;
|
|
692
|
+
declare function getMaxMarkerSize(visConfig: VisConfig, visualChannels: VisualChannels): number;
|
|
693
|
+
type Accessor = number | ((d: any, i: any) => number);
|
|
694
|
+
declare function negateAccessor(accessor: Accessor): Accessor;
|
|
695
|
+
declare function getSizeAccessor({ name }: VisualChannelField, scaleType: SCALE_TYPE | undefined, aggregation: string | null | undefined, range: Iterable<Range> | null | undefined, data: any): any;
|
|
696
|
+
declare function getTextAccessor({ name, type }: VisualChannelField, data: any): any;
|
|
697
|
+
|
|
698
|
+
type VisualChannelField = {
|
|
699
|
+
name: string;
|
|
700
|
+
type: string;
|
|
701
|
+
colorColumn?: string;
|
|
702
|
+
};
|
|
703
|
+
type VisualChannels = {
|
|
704
|
+
colorField?: VisualChannelField;
|
|
705
|
+
colorScale?: SCALE_TYPE;
|
|
706
|
+
customMarkersField?: VisualChannelField;
|
|
707
|
+
customMarkersScale?: SCALE_TYPE;
|
|
708
|
+
radiusField?: VisualChannelField;
|
|
709
|
+
radiusScale?: SCALE_TYPE;
|
|
710
|
+
rotationScale?: SCALE_TYPE;
|
|
711
|
+
rotationField?: VisualChannelField;
|
|
712
|
+
sizeField?: VisualChannelField;
|
|
713
|
+
sizeScale?: SCALE_TYPE;
|
|
714
|
+
strokeColorField?: VisualChannelField;
|
|
715
|
+
strokeColorScale?: SCALE_TYPE;
|
|
716
|
+
heightField?: VisualChannelField;
|
|
717
|
+
heightScale?: SCALE_TYPE;
|
|
718
|
+
weightField?: VisualChannelField;
|
|
719
|
+
};
|
|
720
|
+
type ColorRange = {
|
|
721
|
+
category: string;
|
|
722
|
+
colors: string[];
|
|
723
|
+
colorMap: string[][] | undefined;
|
|
724
|
+
name: string;
|
|
725
|
+
type: string;
|
|
726
|
+
};
|
|
727
|
+
type CustomMarkersRange = {
|
|
728
|
+
markerMap: {
|
|
729
|
+
value: string;
|
|
730
|
+
markerUrl?: string;
|
|
731
|
+
}[];
|
|
732
|
+
othersMarker?: string;
|
|
733
|
+
};
|
|
734
|
+
type VisConfig = {
|
|
735
|
+
filled?: boolean;
|
|
736
|
+
opacity?: number;
|
|
737
|
+
enable3d?: boolean;
|
|
738
|
+
colorAggregation?: any;
|
|
739
|
+
colorRange: ColorRange;
|
|
740
|
+
customMarkers?: boolean;
|
|
741
|
+
customMarkersRange?: CustomMarkersRange | null;
|
|
742
|
+
customMarkersUrl?: string | null;
|
|
743
|
+
radius: number;
|
|
744
|
+
radiusRange?: number[];
|
|
745
|
+
sizeAggregation?: any;
|
|
746
|
+
sizeRange?: any;
|
|
747
|
+
strokeColorAggregation?: any;
|
|
748
|
+
strokeOpacity?: number;
|
|
749
|
+
strokeColorRange?: ColorRange;
|
|
750
|
+
heightRange?: any;
|
|
751
|
+
heightAggregation?: any;
|
|
752
|
+
weightAggregation?: any;
|
|
753
|
+
};
|
|
754
|
+
type TextLabel = {
|
|
755
|
+
field: VisualChannelField | null | undefined;
|
|
756
|
+
alignment?: 'center' | 'bottom' | 'top';
|
|
757
|
+
anchor?: 'middle' | 'start' | 'end';
|
|
758
|
+
size: number;
|
|
759
|
+
color?: number[];
|
|
760
|
+
offset?: [number, number];
|
|
761
|
+
outlineColor?: number[];
|
|
762
|
+
};
|
|
763
|
+
type MapLayerConfig = {
|
|
764
|
+
columns?: Record<string, any>;
|
|
765
|
+
color?: number[];
|
|
766
|
+
label?: string;
|
|
767
|
+
dataId: string;
|
|
768
|
+
textLabel: TextLabel[];
|
|
769
|
+
visConfig: VisConfig;
|
|
770
|
+
};
|
|
771
|
+
type MapConfigLayer = {
|
|
772
|
+
type: LayerType;
|
|
773
|
+
id: string;
|
|
774
|
+
config: MapLayerConfig;
|
|
775
|
+
visualChannels: VisualChannels;
|
|
776
|
+
};
|
|
777
|
+
interface CustomStyle {
|
|
778
|
+
url?: string;
|
|
779
|
+
style?: any;
|
|
780
|
+
customAttribution?: string;
|
|
781
|
+
}
|
|
782
|
+
type KeplerMapConfig = {
|
|
783
|
+
filters: any;
|
|
784
|
+
mapState: any;
|
|
785
|
+
mapStyle: {
|
|
786
|
+
styleType: string;
|
|
787
|
+
visibleLayerGroups: Record<string, boolean>;
|
|
788
|
+
};
|
|
789
|
+
popupSettings: any;
|
|
790
|
+
visState: {
|
|
791
|
+
layers: MapConfigLayer[];
|
|
792
|
+
layerBlending: any;
|
|
793
|
+
interactionConfig: any;
|
|
794
|
+
};
|
|
795
|
+
customBaseMaps?: {
|
|
796
|
+
customStyle?: CustomStyle;
|
|
797
|
+
};
|
|
798
|
+
};
|
|
799
|
+
type BasemapType = 'maplibre' | 'google-maps';
|
|
800
|
+
type Basemap = MapLibreBasemap | GoogleBasemap;
|
|
801
|
+
type BasemapCommon = {
|
|
802
|
+
/**
|
|
803
|
+
* Type of basemap.
|
|
804
|
+
*/
|
|
805
|
+
type: BasemapType;
|
|
806
|
+
/**
|
|
807
|
+
* Custom attribution for style data if not provided by style definition.
|
|
808
|
+
*/
|
|
809
|
+
attribution?: string;
|
|
810
|
+
/**
|
|
811
|
+
* Properties of the basemap. These properties are specific to the basemap type.
|
|
812
|
+
*/
|
|
813
|
+
props: Record<string, any>;
|
|
814
|
+
};
|
|
815
|
+
type MapLibreBasemap = BasemapCommon & {
|
|
816
|
+
type: 'maplibre';
|
|
817
|
+
/**
|
|
818
|
+
* MapLibre map properties.
|
|
819
|
+
*
|
|
820
|
+
* Meant to be passed to directly to `maplibregl.Map` object.
|
|
821
|
+
*/
|
|
822
|
+
props: MapLibreBasemapProps;
|
|
823
|
+
/**
|
|
824
|
+
* Layer groups to be displayed in the basemap.
|
|
825
|
+
*/
|
|
826
|
+
visibleLayerGroups?: Record<string, boolean>;
|
|
827
|
+
/**
|
|
828
|
+
* If `style` has been filtered by `visibleLayerGroups` then this property contains original style object, so user
|
|
829
|
+
* can use `applyLayerGroupFilters` again with new settings.
|
|
830
|
+
*/
|
|
831
|
+
rawStyle?: string | Record<string, any>;
|
|
832
|
+
};
|
|
833
|
+
type MapLibreBasemapProps = {
|
|
834
|
+
style: string | Record<string, any>;
|
|
835
|
+
center: [number, number];
|
|
836
|
+
zoom: number;
|
|
837
|
+
pitch?: number;
|
|
838
|
+
bearing?: number;
|
|
839
|
+
};
|
|
840
|
+
type GoogleBasemap = BasemapCommon & {
|
|
841
|
+
type: 'google-maps';
|
|
842
|
+
/**
|
|
843
|
+
* Google map properties.
|
|
844
|
+
*
|
|
845
|
+
* Meant to be passed to directly to `google.maps.Map` object.
|
|
846
|
+
*/
|
|
847
|
+
props: GoogleBasemapProps;
|
|
848
|
+
};
|
|
849
|
+
type GoogleBasemapProps = {
|
|
850
|
+
mapTypeId: string;
|
|
851
|
+
mapId?: string;
|
|
852
|
+
center?: {
|
|
853
|
+
lat: number;
|
|
854
|
+
lng: number;
|
|
855
|
+
};
|
|
856
|
+
zoom?: number;
|
|
857
|
+
tilt?: number;
|
|
858
|
+
heading?: number;
|
|
859
|
+
};
|
|
860
|
+
type Dataset = {
|
|
861
|
+
id: string;
|
|
862
|
+
type: MapType;
|
|
863
|
+
source: string;
|
|
864
|
+
cache?: number;
|
|
865
|
+
connectionName: string;
|
|
866
|
+
geoColumn: string;
|
|
867
|
+
data: TilejsonResult | GeojsonResult | JsonResult;
|
|
868
|
+
columns: string[];
|
|
869
|
+
format: Format;
|
|
870
|
+
aggregationExp: string;
|
|
871
|
+
aggregationResLevel: number;
|
|
872
|
+
queryParameters: QueryParameters;
|
|
873
|
+
connectionId?: string;
|
|
874
|
+
providerId: ProviderType;
|
|
875
|
+
createdAt?: string;
|
|
876
|
+
updatedAt?: string;
|
|
877
|
+
label?: string;
|
|
878
|
+
color?: string;
|
|
879
|
+
uniqueIdProperty?: string;
|
|
880
|
+
queryTemplate?: string | null;
|
|
881
|
+
name?: string | null;
|
|
882
|
+
spatialIndex?: string | null;
|
|
883
|
+
exportToBucketAvailable?: boolean;
|
|
884
|
+
};
|
|
885
|
+
|
|
886
|
+
declare const _default: {
|
|
887
|
+
readonly VOYAGER: string;
|
|
888
|
+
readonly POSITRON: string;
|
|
889
|
+
readonly DARK_MATTER: string;
|
|
890
|
+
readonly VOYAGER_NOLABELS: string;
|
|
891
|
+
readonly POSITRON_NOLABELS: string;
|
|
892
|
+
readonly DARK_MATTER_NOLABELS: string;
|
|
893
|
+
};
|
|
894
|
+
|
|
895
|
+
type LayerDescriptor = {
|
|
896
|
+
type: LayerType;
|
|
897
|
+
props: Record<string, any>;
|
|
898
|
+
filters?: Filters;
|
|
899
|
+
};
|
|
900
|
+
type ParseMapResult = {
|
|
901
|
+
/** Map id. */
|
|
902
|
+
id: string;
|
|
903
|
+
/** Title of map. */
|
|
904
|
+
title: string;
|
|
905
|
+
/** Description of map. */
|
|
906
|
+
description?: string;
|
|
907
|
+
createdAt: string;
|
|
908
|
+
updatedAt: string;
|
|
909
|
+
initialViewState: any;
|
|
910
|
+
/** @deprecated Use `basemap`. */
|
|
911
|
+
mapStyle: any;
|
|
912
|
+
popupSettings: any;
|
|
913
|
+
token: string;
|
|
914
|
+
layers: LayerDescriptor[];
|
|
915
|
+
};
|
|
916
|
+
declare function parseMap(json: any): {
|
|
917
|
+
id: any;
|
|
918
|
+
title: any;
|
|
919
|
+
description: any;
|
|
920
|
+
createdAt: any;
|
|
921
|
+
updatedAt: any;
|
|
922
|
+
initialViewState: any;
|
|
923
|
+
/** @deprecated Use `basemap`. */
|
|
924
|
+
mapStyle: {
|
|
925
|
+
styleType: string;
|
|
926
|
+
visibleLayerGroups: Record<string, boolean>;
|
|
927
|
+
};
|
|
928
|
+
popupSettings: any;
|
|
929
|
+
token: any;
|
|
930
|
+
layers: (LayerDescriptor | undefined)[];
|
|
931
|
+
};
|
|
932
|
+
|
|
933
|
+
type FetchMapOptions = {
|
|
934
|
+
/**
|
|
935
|
+
* CARTO platform access token. Only required for private maps.
|
|
936
|
+
*/
|
|
937
|
+
accessToken?: string;
|
|
938
|
+
/**
|
|
939
|
+
* Base URL of the CARTO Maps API.
|
|
940
|
+
*
|
|
941
|
+
* Example for account located in EU-west region: `https://gcp-eu-west1.api.carto.com`
|
|
942
|
+
*
|
|
943
|
+
* @default https://gcp-us-east1.api.carto.com
|
|
944
|
+
*/
|
|
945
|
+
apiBaseUrl?: string;
|
|
946
|
+
/**
|
|
947
|
+
* Identifier of map created in CARTO Builder.
|
|
948
|
+
*/
|
|
949
|
+
cartoMapId: string;
|
|
950
|
+
clientId?: string;
|
|
951
|
+
/**
|
|
952
|
+
* Custom HTTP headers added to map instantiation and data requests.
|
|
953
|
+
*/
|
|
954
|
+
headers?: Record<string, string>;
|
|
955
|
+
/**
|
|
956
|
+
* Interval in seconds at which to autoRefresh the data. If provided, `onNewData` must also be provided.
|
|
957
|
+
*/
|
|
958
|
+
autoRefresh?: number;
|
|
959
|
+
/**
|
|
960
|
+
* Callback function that will be invoked whenever data in layers is changed. If provided, `autoRefresh` must also be provided.
|
|
961
|
+
*/
|
|
962
|
+
onNewData?: (map: any) => void;
|
|
963
|
+
/**
|
|
964
|
+
* Maximum URL character length. Above this limit, requests use POST.
|
|
965
|
+
* Used to avoid browser and CDN limits.
|
|
966
|
+
* @default {@link DEFAULT_MAX_LENGTH_URL}
|
|
967
|
+
*/
|
|
968
|
+
maxLengthURL?: number;
|
|
969
|
+
};
|
|
970
|
+
type FetchMapResult = ParseMapResult & {
|
|
971
|
+
/**
|
|
972
|
+
* Basemap properties.
|
|
973
|
+
*/
|
|
974
|
+
basemap: Basemap | null;
|
|
975
|
+
stopAutoRefresh?: () => void;
|
|
976
|
+
};
|
|
977
|
+
declare function fetchMap({ accessToken, apiBaseUrl, cartoMapId, clientId, headers, autoRefresh, onNewData, maxLengthURL, }: FetchMapOptions): Promise<FetchMapResult>;
|
|
978
|
+
|
|
979
|
+
/**
|
|
980
|
+
* Get basemap properties for Carto map.
|
|
981
|
+
*
|
|
982
|
+
* For maplibre-based basemaps it returns style or style URL that can be used with `maplibregl.Map` compatible component.
|
|
983
|
+
* * style url is returned for non-filtered standard Carto basemaps or if user used style URL directly in configuration
|
|
984
|
+
* * filtered style object returned for Carto basemaps with layer groups filtered
|
|
985
|
+
*
|
|
986
|
+
* For Google-maps base maps, it returns options that can be used with `google.maps.Map` constructor.
|
|
987
|
+
*/
|
|
988
|
+
declare function fetchBasemapProps({ config, errorContext, applyLayerFilters, }: {
|
|
989
|
+
config: KeplerMapConfig;
|
|
990
|
+
/** By default `fetchBasemapProps` applies layers filters to style. Set this to `false` to disable it. */
|
|
991
|
+
applyLayerFilters?: boolean;
|
|
992
|
+
errorContext?: APIErrorContext;
|
|
993
|
+
}): Promise<Basemap | null>;
|
|
994
|
+
|
|
995
|
+
type FilterTypeOptions<T extends FilterType> = {
|
|
996
|
+
type: T;
|
|
997
|
+
column: string;
|
|
998
|
+
} & Filter[T];
|
|
999
|
+
type AddFilterOptions = FilterTypeOptions<FilterType.IN> | FilterTypeOptions<FilterType.BETWEEN> | FilterTypeOptions<FilterType.CLOSED_OPEN> | FilterTypeOptions<FilterType.TIME> | FilterTypeOptions<FilterType.STRING_SEARCH>;
|
|
1000
|
+
/**
|
|
1001
|
+
* Adds a {@link Filter} to the filter set. Any previous filters with the same
|
|
1002
|
+
* `column` and `type` will be replaced.
|
|
1003
|
+
*/
|
|
1004
|
+
declare function addFilter(filters: Record<string, Filter>, { column, type, values, owner }: AddFilterOptions): Record<string, Filter>;
|
|
1005
|
+
type RemoveFilterOptions = {
|
|
1006
|
+
column: string;
|
|
1007
|
+
owner?: string;
|
|
1008
|
+
};
|
|
1009
|
+
/**
|
|
1010
|
+
* Removes one or more {@link Filter filters} from the filter set. If only
|
|
1011
|
+
* `column` is specified, then all filters on that column are removed. If both
|
|
1012
|
+
* `column` and `owner` are specified, then only filters for that column
|
|
1013
|
+
* associated with the owner are removed.
|
|
1014
|
+
*/
|
|
1015
|
+
declare function removeFilter(filters: Record<string, Filter>, { column, owner }: RemoveFilterOptions): Record<string, Filter>;
|
|
1016
|
+
/**
|
|
1017
|
+
* Clears all {@link Filter filters} from the filter set.
|
|
1018
|
+
*/
|
|
1019
|
+
declare function clearFilters(filters: Record<string, Filter>): Record<string, Filter>;
|
|
1020
|
+
type HasFilterOptions = {
|
|
1021
|
+
column: string;
|
|
1022
|
+
owner?: string;
|
|
1023
|
+
};
|
|
1024
|
+
declare function hasFilter(filters: Record<string, Filter>, { column, owner }: HasFilterOptions): boolean;
|
|
1025
|
+
type GetFilterOptions<T extends FilterType> = {
|
|
1026
|
+
column: string;
|
|
1027
|
+
type: T;
|
|
1028
|
+
owner?: string;
|
|
1029
|
+
};
|
|
1030
|
+
declare function getFilter<T extends FilterType>(filters: Record<string, Filter>, { column, type, owner }: GetFilterOptions<T>): Filter[T] | null;
|
|
1031
|
+
|
|
1032
|
+
/**
|
|
1033
|
+
* Returns a {@link SpatialFilter} for a given viewport, typically obtained
|
|
1034
|
+
* from deck.gl's `viewport.getBounds()` method ([west, south, east, north]).
|
|
1035
|
+
* If the viewport covers the entire world (to some margin of error in Web
|
|
1036
|
+
* Mercator space), `undefined` is returned instead.
|
|
1037
|
+
*
|
|
1038
|
+
* If the viewport extends beyond longitude range [-180, +180], the polygon
|
|
1039
|
+
* may be reformatted for compatibility with CARTO APIs.
|
|
1040
|
+
*/
|
|
1041
|
+
declare function createViewportSpatialFilter(viewport: BBox): SpatialFilter | undefined;
|
|
1042
|
+
/**
|
|
1043
|
+
* Returns a {@link SpatialFilter} for a given {@link Polygon} or
|
|
1044
|
+
* {@link MultiPolygon}. If the polygon(s) extend outside longitude
|
|
1045
|
+
* range [-180, +180], the result may be reformatted for compatibility
|
|
1046
|
+
* with CARTO APIs.
|
|
1047
|
+
*/
|
|
1048
|
+
declare function createPolygonSpatialFilter(spatialFilter: Polygon | MultiPolygon): SpatialFilter | undefined;
|
|
1049
|
+
|
|
1050
|
+
declare const SOURCE_DEFAULTS: Omit<SourceOptionalOptions, 'clientId'>;
|
|
673
1051
|
|
|
674
1052
|
type BoundaryQuerySourceOptions = SourceOptions & FilterOptions & {
|
|
675
1053
|
columns?: string[];
|
|
@@ -701,8 +1079,6 @@ interface BaseRequestOptions {
|
|
|
701
1079
|
signal?: AbortSignal;
|
|
702
1080
|
spatialFilter?: SpatialFilter;
|
|
703
1081
|
spatialFiltersMode?: SpatialFilterPolyfillMode;
|
|
704
|
-
/** Required for table- and query-based spatial index sources (H3, Quadbin). */
|
|
705
|
-
spatialIndexReferenceViewState?: ViewState;
|
|
706
1082
|
/** Overrides source filters, if any. */
|
|
707
1083
|
filters?: Filters;
|
|
708
1084
|
filterOwner?: string;
|
|
@@ -846,26 +1222,6 @@ type TimeSeriesResponse = {
|
|
|
846
1222
|
/** Response from {@link WidgetRemoteSource#getHistogram}. */
|
|
847
1223
|
type HistogramResponse = number[];
|
|
848
1224
|
|
|
849
|
-
interface ModelSource {
|
|
850
|
-
type: MapType;
|
|
851
|
-
apiVersion: ApiVersion;
|
|
852
|
-
apiBaseUrl: string;
|
|
853
|
-
accessToken: string;
|
|
854
|
-
clientId: string;
|
|
855
|
-
connectionName: string;
|
|
856
|
-
data: string;
|
|
857
|
-
filters?: Record<string, Filter>;
|
|
858
|
-
filtersLogicalOperator?: FilterLogicalOperator;
|
|
859
|
-
spatialFilter?: SpatialFilter;
|
|
860
|
-
queryParameters?: QueryParameters;
|
|
861
|
-
spatialDataColumn?: string;
|
|
862
|
-
spatialDataType?: SpatialDataType;
|
|
863
|
-
spatialFiltersResolution?: number;
|
|
864
|
-
spatialFiltersMode?: SpatialFilterPolyfillMode;
|
|
865
|
-
/** original resolution of the spatial index data as stored in the DW */
|
|
866
|
-
dataResolution?: number;
|
|
867
|
-
}
|
|
868
|
-
|
|
869
1225
|
interface WidgetSourceProps extends Omit<SourceOptions, 'filters'> {
|
|
870
1226
|
apiVersion?: ApiVersion;
|
|
871
1227
|
filters?: Record<string, Filter>;
|
|
@@ -888,7 +1244,6 @@ declare abstract class WidgetSource<Props extends WidgetSourceProps = WidgetSour
|
|
|
888
1244
|
* and stability if many (10+) sources are created and not released.
|
|
889
1245
|
*/
|
|
890
1246
|
destroy(): void;
|
|
891
|
-
protected _getSpatialFiltersResolution(source: Omit<ModelSource, 'type' | 'data'>, spatialFilter?: SpatialFilter, referenceViewState?: ViewState): number | undefined;
|
|
892
1247
|
/**
|
|
893
1248
|
* Returns a list of labeled datapoints for categorical data. Suitable for
|
|
894
1249
|
* charts including grouped bar charts, pie charts, and tree charts.
|
|
@@ -936,6 +1291,23 @@ declare abstract class WidgetSource<Props extends WidgetSourceProps = WidgetSour
|
|
|
936
1291
|
abstract getTimeSeries(options: TimeSeriesRequestOptions): Promise<TimeSeriesResponse>;
|
|
937
1292
|
}
|
|
938
1293
|
|
|
1294
|
+
interface ModelSource {
|
|
1295
|
+
type: MapType;
|
|
1296
|
+
apiVersion: ApiVersion;
|
|
1297
|
+
apiBaseUrl: string;
|
|
1298
|
+
accessToken: string;
|
|
1299
|
+
clientId: string;
|
|
1300
|
+
connectionName: string;
|
|
1301
|
+
data: string;
|
|
1302
|
+
filters?: Record<string, Filter>;
|
|
1303
|
+
filtersLogicalOperator?: FilterLogicalOperator;
|
|
1304
|
+
spatialFilter?: SpatialFilter;
|
|
1305
|
+
queryParameters?: QueryParameters;
|
|
1306
|
+
spatialDataColumn?: string;
|
|
1307
|
+
spatialDataType?: SpatialDataType;
|
|
1308
|
+
spatialFiltersMode?: SpatialFilterPolyfillMode;
|
|
1309
|
+
}
|
|
1310
|
+
|
|
939
1311
|
type WidgetRemoteSourceProps = WidgetSourceProps;
|
|
940
1312
|
/**
|
|
941
1313
|
* Source for Widget API requests.
|
|
@@ -1266,63 +1638,12 @@ type VectorTilesetSourceOptions = SourceOptions & TilesetSourceOptions;
|
|
|
1266
1638
|
type VectorTilesetSourceResponse = TilejsonResult & WidgetTilesetSourceResult;
|
|
1267
1639
|
declare const vectorTilesetSource: (options: VectorTilesetSourceOptions) => Promise<VectorTilesetSourceResponse>;
|
|
1268
1640
|
|
|
1269
|
-
type APIRequestType = 'Map data' | 'Map instantiation' | 'Public map' | 'Tile stats' | 'SQL' | 'Basemap style';
|
|
1270
|
-
type APIErrorContext = {
|
|
1271
|
-
requestType: APIRequestType;
|
|
1272
|
-
mapId?: string;
|
|
1273
|
-
connection?: string;
|
|
1274
|
-
source?: string;
|
|
1275
|
-
type?: MapType;
|
|
1276
|
-
};
|
|
1277
|
-
/**
|
|
1278
|
-
*
|
|
1279
|
-
* Custom error for reported errors in CARTO Maps API.
|
|
1280
|
-
* Provides useful debugging information in console and context for applications.
|
|
1281
|
-
*
|
|
1282
|
-
*/
|
|
1283
|
-
declare class CartoAPIError extends Error {
|
|
1284
|
-
/** Source error from server */
|
|
1285
|
-
error: Error;
|
|
1286
|
-
/** Context (API call & parameters) in which error occured */
|
|
1287
|
-
errorContext: APIErrorContext;
|
|
1288
|
-
/** Response from server */
|
|
1289
|
-
response?: Response;
|
|
1290
|
-
/** JSON Response from server */
|
|
1291
|
-
responseJson?: any;
|
|
1292
|
-
constructor(error: Error, errorContext: APIErrorContext, response?: Response, responseJson?: any);
|
|
1293
|
-
}
|
|
1294
|
-
|
|
1295
|
-
/** @internal Required by fetchMap(). */
|
|
1296
|
-
declare function buildPublicMapUrl({ apiBaseUrl, cartoMapId, }: {
|
|
1297
|
-
apiBaseUrl: string;
|
|
1298
|
-
cartoMapId: string;
|
|
1299
|
-
}): string;
|
|
1300
|
-
/** @internal Required by fetchMap(). */
|
|
1301
|
-
declare function buildStatsUrl({ attribute, apiBaseUrl, connectionName, source, type, }: {
|
|
1302
|
-
attribute: string;
|
|
1303
|
-
apiBaseUrl: string;
|
|
1304
|
-
connectionName: string;
|
|
1305
|
-
source: string;
|
|
1306
|
-
type: MapType;
|
|
1307
|
-
}): string;
|
|
1308
|
-
|
|
1309
|
-
type QueryOptions = SourceOptions & QuerySourceOptions;
|
|
1310
|
-
declare const query: (options: QueryOptions) => Promise<QueryResult>;
|
|
1311
|
-
|
|
1312
|
-
declare function requestWithParameters<T = any>({ baseUrl, parameters, headers: customHeaders, errorContext, maxLengthURL, localCache, }: {
|
|
1313
|
-
baseUrl: string;
|
|
1314
|
-
parameters?: Record<string, unknown>;
|
|
1315
|
-
headers?: Record<string, string>;
|
|
1316
|
-
errorContext: APIErrorContext;
|
|
1317
|
-
maxLengthURL?: number;
|
|
1318
|
-
localCache?: LocalCacheOptions;
|
|
1319
|
-
}): Promise<T>;
|
|
1320
|
-
|
|
1321
1641
|
/**
|
|
1322
1642
|
* Resolution conversion function. Takes a WebMercatorViewport and returns
|
|
1323
1643
|
* a H3 resolution such that the screen space size of the hexagons is
|
|
1324
1644
|
* "similar" to the given tileSize on screen. Intended for use with deck.gl.
|
|
1325
1645
|
* @internal
|
|
1646
|
+
* @privateRemarks Source: https://github.com/visgl/deck.gl/blob/master/modules/carto/src/layers/h3-tileset-2d.ts
|
|
1326
1647
|
*/
|
|
1327
1648
|
declare function _getHexagonResolution(viewport: {
|
|
1328
1649
|
zoom: number;
|
|
@@ -1414,4 +1735,4 @@ declare function makeIntervalComplete(intervals: FilterInterval[]): FilterInterv
|
|
|
1414
1735
|
*/
|
|
1415
1736
|
declare function transformToTileCoords<T extends Geometry>(geometry: T, bbox: BBox): T;
|
|
1416
1737
|
|
|
1417
|
-
export { type APIErrorContext, type APIRequestType, type AddFilterOptions, type AggregationFunction, type AggregationType, ApiVersion, type BoundaryQuerySourceOptions, type BoundaryQuerySourceResponse, type BoundaryTableSourceOptions, type BoundaryTableSourceResponse, CartoAPIError, type CategoryRequestOptions, type CategoryResponse, DEFAULT_API_BASE_URL, FEATURE_GEOM_PROPERTY, type FeaturesRequestOptions, type FeaturesResponse, type Filter, type FilterFunction, type FilterInterval, type FilterIntervalComplete, type FilterIntervalExtremum, type FilterLogicalOperator, FilterType, type Filters, type Format, type FormulaRequestOptions, type FormulaResponse, type GeojsonResult, type GetFilterOptions, type GroupByFeature, type GroupDateType, type H3QuerySourceOptions, type H3QuerySourceResponse, type H3TableSourceOptions, type H3TableSourceResponse, type H3TilesetSourceOptions, type H3TilesetSourceResponse, type HasFilterOptions, type HistogramRequestOptions, type HistogramResponse, type JsonResult, type MapType, type NamedQueryParameter, type PositionalQueryParameter, Provider, 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 RasterMetadata, type RasterMetadataBand, type RasterMetadataBandStats, type RasterSourceOptions, type RasterTile, type RemoveFilterOptions, SOURCE_DEFAULTS, type ScatterPlotFeature, type ScatterRequestOptions, type ScatterResponse, type SortColumnType, type SortDirection, type SourceOptions, type SpatialFilter, type SpatialFilterPolyfillMode, SpatialIndex, type SpatialIndexTile, type StringSearchOptions, type TableRequestOptions, type TableResponse, type TableSourceOptions, type Tile, type TileFeatureExtractOptions, type TileFeatures, type TileFeaturesSpatialIndexOptions, TileFormat, type TileResolution, type TilejsonResult, type TilesetSourceOptions, 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, _buildFeatureFilter, _getHexagonResolution, addFilter, aggregate, aggregationFunctions, applyFilters, applySorting, boundaryQuerySource, boundaryTableSource, buildBinaryFeatureFilter, buildPublicMapUrl, buildStatsUrl, clearFilters, createPolygonSpatialFilter, createViewportSpatialFilter, filterFunctions, geojsonFeatures, getClient, getDataFilterExtensionProps, getFilter, groupValuesByColumn, groupValuesByDateColumn, h3QuerySource, h3TableSource, h3TilesetSource, hasFilter, histogram, makeIntervalComplete, quadbinQuerySource, quadbinTableSource, quadbinTilesetSource, query, rasterSource, removeFilter, requestWithParameters, scatterPlot, setClient, tileFeatures, tileFeaturesGeometries, tileFeaturesSpatialIndex, transformToTileCoords, vectorQuerySource, vectorTableSource, vectorTilesetSource };
|
|
1738
|
+
export { AGGREGATION, type APIErrorContext, type APIRequestType, type AddFilterOptions, type AggregationFunction, type AggregationType, ApiVersion, _default as BASEMAP, type Basemap, type BoundaryQuerySourceOptions, type BoundaryQuerySourceResponse, type BoundaryTableSourceOptions, type BoundaryTableSourceResponse, CartoAPIError, type CategoryRequestOptions, type CategoryResponse, DEFAULT_API_BASE_URL, FEATURE_GEOM_PROPERTY, type FeaturesRequestOptions, type FeaturesResponse, type FetchMapOptions, type FetchMapResult, type Filter, type FilterFunction, type FilterInterval, type FilterIntervalComplete, type FilterIntervalExtremum, type FilterLogicalOperator, FilterType, type Filters, type Format, type FormulaRequestOptions, type FormulaResponse, type GeojsonResult, 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 JsonResult, type KeplerMapConfig, type LayerDescriptor, type LayerType, type MapLibreBasemap, type MapType, type NamedQueryParameter, OPACITY_MAP, 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 RasterMetadata, type RasterMetadataBand, type RasterMetadataBandStats, type RasterSourceOptions, type RasterTile, type RemoveFilterOptions, type SCALE_TYPE, SOURCE_DEFAULTS, type ScatterPlotFeature, type ScatterRequestOptions, type ScatterResponse, type SortColumnType, type SortDirection, type SourceOptions, type SpatialFilter, type SpatialFilterPolyfillMode, SpatialIndex, SpatialIndexColumn, type SpatialIndexTile, type StringSearchOptions, type TableRequestOptions, type TableResponse, type TableSourceOptions, type Tile, type TileFeatureExtractOptions, type TileFeatures, type TileFeaturesSpatialIndexOptions, TileFormat, type TileResolution, type TilejsonResult, type TilesetSourceOptions, 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, _buildFeatureFilter, domainFromValues as _domainFromValues, _getHexagonResolution, addFilter, aggregate, aggregationFunctions, applyFilters, applySorting, boundaryQuerySource, boundaryTableSource, buildBinaryFeatureFilter, buildPublicMapUrl, buildStatsUrl, clearFilters, createPolygonSpatialFilter, createViewportSpatialFilter, fetchBasemapProps, fetchMap, filterFunctions, geojsonFeatures, getClient, getColorAccessor, getColorValueAccessor, getDataFilterExtensionProps, getFilter, getIconUrlAccessor, getLayerProps, getMaxMarkerSize, getSizeAccessor, getTextAccessor, groupValuesByColumn, groupValuesByDateColumn, h3QuerySource, h3TableSource, h3TilesetSource, hasFilter, histogram, makeIntervalComplete, negateAccessor, opacityToAlpha, parseMap, quadbinQuerySource, quadbinTableSource, quadbinTilesetSource, query, rasterSource, removeFilter, requestWithParameters, scatterPlot, setClient, tileFeatures, tileFeaturesGeometries, tileFeaturesSpatialIndex, transformToTileCoords, vectorQuerySource, vectorTableSource, vectorTilesetSource };
|