import { BaseMapStyle, EffectDescription, RGBAColor, SyncTimelineMode, BaseMapColorModes, Merge } from '@kepler.gl/types';
import { scaleLinear, scaleLog, scaleOrdinal, scalePoint, scaleQuantile, scaleQuantize, scaleSqrt, scaleThreshold } from 'd3-scale';
export declare const ACTION_PREFIX = "@@kepler.gl/";
export declare const KEPLER_UNFOLDED_BUCKET = "https://studio-public-data.foursquare.com/statics/keplergl";
export declare const BASEMAP_ICON_PREFIX = "geodude";
export declare const DEFAULT_MAPBOX_API_URL = "https://api.mapbox.com";
export declare const TRANSITION_DURATION = 0;
/**
* Modal id: data table
* @constant
* @type {string}
* @public
*/
export declare const DATA_TABLE_ID = "dataTable";
/**
* Modal id: delete dataset confirm dialog
* @constant
* @type {string}
* @public
*/
export declare const DELETE_DATA_ID = "deleteData";
/**
* Modal id: add data modal
* @constant
* @type {string}
* @public
*/
export declare const ADD_DATA_ID = "addData";
/**
* Modal id: export image modal
* @constant
* @type {string}
* @public
*/
export declare const EXPORT_IMAGE_ID = "exportImage";
/**
* Modal id: export data modal
* @constant
* @type {string}
* @public
*/
export declare const EXPORT_DATA_ID = "exportData";
/**
* Modal id: add custom map style modal
* @constant
* @type {string}
* @public
*/
export declare const ADD_MAP_STYLE_ID = "addMapStyle";
/**
* Modal id: export map modal
* @constant
* @type {string}
* @public
*/
export declare const EXPORT_MAP_ID = "exportMap";
/**
* Modal id: export video modal
* @constant
* @type {string}
* @public
*/
export declare const EXPORT_VIDEO_ID = "exportVideo";
/**
* Modal id: save map modal
* @constant
* @type {string}
* @public
*/
export declare const SAVE_MAP_ID = "saveMap";
/**
* Modal id: confirm to overwrite saved map
* @constant
* @type {string}
* @public
*/
export declare const OVERWRITE_MAP_ID = "overwriteMap";
/**
* Modal id: share map url modal
* @constant
* @type {string}
* @public
*/
export declare const SHARE_MAP_ID = "shareMap";
export declare const KEPLER_GL_NAME = "kepler.gl";
export declare const KEPLER_GL_VERSION = "__PACKAGE_VERSION__";
export declare const KEPLER_GL_WEBSITE = "http://kepler.gl/";
export declare const DIMENSIONS: {
sidePanel: {
width: number;
margin: {
top: number;
left: number;
bottom: number;
right: number;
};
headerHeight: number;
};
mapControl: {
width: number;
padding: number;
mapLegend: {
pinned: {
bottom: number;
right: number;
};
};
};
};
/**
* Theme name that can be passed to `KeplerGl` `prop.theme`.
* Available themes are `THEME.light`, `THEME.dark`, and `THEME.space`.
* Default theme is `THEME.dark`
* @constant
* @type {object}
* @public
* @example
* ```js
* const Map = () =>
* ```
*/
export declare const THEME: {
light: "light";
dark: "dark";
space: "space";
base: "base";
};
export declare const SIDEBAR_PANELS: {
id: string;
label: string;
onClick: null;
}[];
export declare const PANEL_VIEW_TOGGLES: {
list: "list";
byDataset: "byDataset";
};
export declare const PANELS: {
id: string;
label: string;
onClick: null;
}[];
export declare const DEFAULT_BLDG_COLOR = "#D1CEC7";
export declare const DEFAULT_BACKGROUND_COLOR = "#000000";
export declare const BASE_MAP_BACKGROUND_LAYER_IDS: string[];
export declare const BACKGROUND_LAYER_GROUP_SLUG = "Background";
export declare const THREE_D_BUILDING_LAYER_GROUP_SLUG = "3d building";
export type DEFAULT_LAYER_GROUP = {
slug: string;
filter: (value: any) => boolean;
defaultVisibility: boolean;
isVisibilityToggleAvailable?: boolean;
isMoveToTopAvailable?: boolean;
isColorPickerAvailable?: boolean;
};
export declare const BACKGROUND_LAYER_GROUP: DEFAULT_LAYER_GROUP;
export declare const DEFAULT_LAYER_GROUPS: DEFAULT_LAYER_GROUP[];
export declare const BASE_MAP_COLOR_MODES: {
NONE: "NONE";
DARK: "DARK";
LIGHT: "LIGHT";
};
export declare const NO_MAP_ID = "no_map";
export declare const EMPTY_MAPBOX_STYLE: {
version: number;
sources: {};
layers: never[];
};
export declare const MAP_LIB_OPTIONS: {
MAPBOX: "mapbox";
MAPLIBRE: "maplibre";
};
/** Mapbox GL JS does not support pitch above 60 degrees */
export declare const MAPBOX_MAX_PITCH = 60;
export type BaseMapLibraryType = 'mapbox' | 'maplibre';
export declare const NO_BASEMAP_ICON = "geodude/NO_BASEMAP.png";
export declare const DEFAULT_BASE_MAP_STYLE = "dark-matter";
type DefaultBaseMapStyle = Merge;
export declare const DEFAULT_NO_BASEMAP_STYLE: DefaultBaseMapStyle;
export declare const DEFAULT_MAPBOX_STYLES: DefaultBaseMapStyle[];
export declare const DEFAULT_MAPBOX_SATELITE_STYLES: DefaultBaseMapStyle[];
export declare const DEFAULT_MAPLIBRE_STYLES: DefaultBaseMapStyle[];
export declare const DEFAULT_MAP_STYLES: {
id: string;
label: string;
url: string;
icon: string;
style?: object | undefined;
layerGroups: import("@kepler.gl/types").LayerGroup[];
accessToken?: string | undefined;
custom?: import("@kepler.gl/types").CustomStyleType | undefined;
colorMode: "NONE" | "DARK" | "LIGHT";
complimentaryStyleId?: string | undefined;
}[];
export declare const GEOJSON_FIELDS: {
geojson: string[];
};
export declare const ICON_FIELDS: {
icon: string[];
};
export declare const TRIP_POINT_FIELDS: [string, string][];
export declare const ALTITUDE_FIELDS: string[];
export declare const TRIP_ARC_FIELDS: {
lat0: string;
lng0: string;
lat1: string;
lng1: string;
};
export declare const FILTER_TYPES: {
range: "range";
select: "select";
input: "input";
timeRange: "timeRange";
multiSelect: "multiSelect";
polygon: "polygon";
};
export declare const FILTER_VIEW_TYPES: {
side: "side";
enlarged: "enlarged";
minified: "minified";
};
export declare const DEFAULT_FILTER_VIEW_TYPE: "side";
export type SCALE_TYPES_DEF = {
ordinal: 'ordinal';
quantile: 'quantile';
quantize: 'quantize';
jenks: 'jenks';
linear: 'linear';
sqrt: 'sqrt';
log: 'log';
point: 'point';
threshold: 'threshold';
custom: 'custom';
customOrdinal: 'customOrdinal';
};
export declare const SCALE_TYPES: SCALE_TYPES_DEF;
export declare const SCALE_TYPE_NAMES: {
[key in keyof SCALE_TYPES_DEF]: string;
};
export type SCALE_FUNC_TYPE = {
[key in keyof SCALE_TYPES_DEF]: () => number;
};
export declare const SCALE_FUNC: {
linear: typeof scaleLinear;
quantize: typeof scaleQuantize;
quantile: typeof scaleQuantile;
jenks: typeof scaleThreshold;
ordinal: typeof scaleOrdinal;
sqrt: typeof scaleSqrt;
log: typeof scaleLog;
point: typeof scalePoint;
threshold: typeof scaleThreshold;
custom: typeof scaleThreshold;
customOrdinal: typeof scaleOrdinal;
};
export declare const ALL_FIELD_TYPES: {
boolean: "boolean";
date: "date";
geojson: "geojson";
integer: "integer";
real: "real";
string: "string";
timestamp: "timestamp";
point: "point";
array: "array";
object: "object";
geoarrow: "geoarrow";
h3: "h3";
};
export declare const SORT_ORDER: {
ASCENDING: "ASCENDING";
DESCENDING: "DESCENDING";
UNSORT: "UNSORT";
};
export declare const TABLE_OPTION: {
SORT_ASC: "SORT_ASC";
SORT_DES: "SORT_DES";
UNSORT: "UNSORT";
PIN: "PIN";
UNPIN: "UNPIN";
COPY: "COPY";
FORMAT_COLUMN: "FORMAT_COLUMN";
HIDE: "HIDE";
RENAME: "RENAME";
CHANGE_TYPE: "CHANGE_TYPE";
DELETE: "DELETE";
CREATE_FILTER: "CREATE_FILTER";
};
export type TableOption = {
value: 'SORT_ASC' | 'SORT_DES' | 'UNSORT' | 'PIN' | 'UNPIN' | 'COPY' | 'FORMAT_COLUMN' | 'HIDE' | 'RENAME' | 'CHANGE_TYPE' | 'DELETE' | 'CREATE_FILTER';
display: string;
icon: string;
condition?: (props: any) => boolean;
};
export declare const TABLE_OPTION_LIST: TableOption[];
export declare const FIELD_TYPE_DISPLAY: {
boolean: {
label: string;
color: string;
};
date: {
label: string;
color: string;
};
geojson: {
label: string;
color: string;
};
geoarrow: {
label: string;
color: string;
};
integer: {
label: string;
color: string;
};
real: {
label: string;
color: string;
};
string: {
label: string;
color: string;
};
timestamp: {
label: string;
color: string;
};
point: {
label: string;
color: string;
};
array: {
label: string;
color: string;
};
object: {
label: string;
color: string;
};
h3: {
label: string;
color: string;
};
};
export declare const FIELD_COLORS: {
default: string;
};
export declare const HIGHLIGH_COLOR_3D: RGBAColor;
export declare const CHANNEL_SCALES: {
color: "color";
radius: "radius";
size: "size";
colorAggr: "colorAggr";
sizeAggr: "sizeAggr";
angle: "angle";
};
export declare const AGGREGATION_TYPES: {
count: 'count';
average: 'average';
maximum: 'maximum';
minimum: 'minimum';
median: 'median';
stdev: 'stdev';
sum: 'sum';
variance: 'variance';
mode: 'mode';
countUnique: 'countUnique';
};
export declare const AGGREGATION_TYPE_OPTIONS: {
id: string;
label: string;
}[];
export declare const linearFieldScaleFunctions: {
color: ("custom" | "quantile" | "quantize" | "jenks")[];
radius: "sqrt"[];
size: ("linear" | "sqrt" | "log")[];
angle: "linear"[];
};
export declare const linearFieldAggrScaleFunctions: {
colorAggr: {};
sizeAggr: {
average: ("linear" | "sqrt" | "log")[];
maximum: ("linear" | "sqrt" | "log")[];
minimum: ("linear" | "sqrt" | "log")[];
median: ("linear" | "sqrt" | "log")[];
stdev: ("linear" | "sqrt" | "log")[];
sum: ("linear" | "sqrt" | "log")[];
variance: ("linear" | "sqrt" | "log")[];
};
};
export declare const ordinalFieldScaleFunctions: {
color: ("ordinal" | "customOrdinal")[];
radius: "point"[];
size: "point"[];
};
export declare const ordinalFieldAggrScaleFunctions: {
colorAggr: {
mode: "ordinal"[];
countUnique: ("quantile" | "quantize")[];
};
sizeAggr: {};
};
export declare const notSupportedScaleOpts: {
color: never[];
radius: never[];
size: never[];
};
export declare const notSupportAggrOpts: {
colorAggr: {};
sizeAggr: {};
};
/**
* Default aggregation are based on ocunt
*/
export declare const DEFAULT_AGGREGATION: {
colorAggr: {
count: ("custom" | "quantile" | "quantize" | "jenks")[];
};
sizeAggr: {
count: ("linear" | "sqrt" | "log")[];
};
};
/**
* Define what type of scale operation is allowed on each type of fields
*/
export declare const FIELD_OPTS: {
string: {
type: string;
scale: {
colorAggr: {
mode: "ordinal"[];
countUnique: ("quantile" | "quantize")[];
};
sizeAggr: {};
color: ("ordinal" | "customOrdinal")[];
radius: "point"[];
size: "point"[];
};
format: {
legend: (d: any) => any;
tooltip: never[];
};
};
real: {
type: string;
scale: {
colorAggr: {};
sizeAggr: {
average: ("linear" | "sqrt" | "log")[];
maximum: ("linear" | "sqrt" | "log")[];
minimum: ("linear" | "sqrt" | "log")[];
median: ("linear" | "sqrt" | "log")[];
stdev: ("linear" | "sqrt" | "log")[];
sum: ("linear" | "sqrt" | "log")[];
variance: ("linear" | "sqrt" | "log")[];
};
color: ("custom" | "quantile" | "quantize" | "jenks")[];
radius: "sqrt"[];
size: ("linear" | "sqrt" | "log")[];
angle: "linear"[];
};
format: {
legend: (d: any) => any;
tooltip: string[];
};
};
timestamp: {
type: string;
scale: {
colorAggr: {};
sizeAggr: {};
color: ("custom" | "quantile" | "quantize" | "jenks")[];
radius: "sqrt"[];
size: ("linear" | "sqrt" | "log")[];
angle: "linear"[];
};
format: {
legend: (d: any) => any;
tooltip: string[];
};
};
integer: {
type: string;
scale: {
colorAggr: {};
sizeAggr: {
average: ("linear" | "sqrt" | "log")[];
maximum: ("linear" | "sqrt" | "log")[];
minimum: ("linear" | "sqrt" | "log")[];
median: ("linear" | "sqrt" | "log")[];
stdev: ("linear" | "sqrt" | "log")[];
sum: ("linear" | "sqrt" | "log")[];
variance: ("linear" | "sqrt" | "log")[];
};
color: ("custom" | "quantile" | "quantize" | "jenks" | "customOrdinal")[];
radius: "sqrt"[];
size: ("linear" | "sqrt" | "log")[];
angle: "linear"[];
};
format: {
legend: (d: any) => any;
tooltip: string[];
};
};
boolean: {
type: string;
scale: {
colorAggr: {
mode: "ordinal"[];
countUnique: ("quantile" | "quantize")[];
};
sizeAggr: {};
color: ("ordinal" | "customOrdinal")[];
radius: "point"[];
size: "point"[];
};
format: {
legend: (d: any) => any;
tooltip: string[];
};
};
date: {
type: string;
scale: {
colorAggr: {
mode: "ordinal"[];
countUnique: ("quantile" | "quantize")[];
};
sizeAggr: {};
color: ("ordinal" | "customOrdinal")[];
radius: "point"[];
size: "point"[];
};
format: {
legend: (d: any) => any;
tooltip: string[];
};
};
geojson: {
type: string;
scale: {
colorAggr: {};
sizeAggr: {};
color: never[];
radius: never[];
size: never[];
};
format: {
legend: () => string;
tooltip: never[];
};
};
geoarrow: {
type: string;
scale: {
colorAggr: {};
sizeAggr: {};
color: never[];
radius: never[];
size: never[];
};
format: {
legend: () => string;
tooltip: never[];
};
};
object: {
type: string;
scale: {};
format: {
legend: () => string;
tooltip: never[];
};
};
array: {
type: string;
scale: {};
format: {
legend: () => string;
tooltip: never[];
};
};
h3: {
type: string;
scale: {
colorAggr: {};
sizeAggr: {};
color: never[];
radius: never[];
size: never[];
};
format: {
legend: () => string;
tooltip: never[];
};
};
};
export declare const CHANNEL_SCALE_SUPPORTED_FIELDS: {
[id: string]: string[];
};
export declare const DEFAULT_LAYER_COLOR: {
tripArc: string;
begintrip_lat: string;
dropoff_lat: string;
request_lat: string;
};
export declare const DEFAULT_LAYER_COLOR_PALETTE = "Global Warming";
export declare const DEFAULT_LAYER_COLOR_PALETTE_STEPS = 6;
export declare const DEFAULT_TOOLTIP_FIELDS: any[];
export declare const NO_VALUE_COLOR: RGBAColor;
/** Visible gray used when a color field has no value and missing features should stay on the map. */
export declare const MISSING_VALUE_COLOR: RGBAColor;
export declare const DEFAULT_PICKING_RADIUS = 3;
export declare const OVERLAY_BLENDINGS: {
normal: {
label: string;
value: string;
};
screen: {
label: string;
value: string;
};
darken: {
label: string;
value: string;
};
};
export declare const LAYER_BLENDINGS: {
additive: {
label: string;
blendFunc: string[];
blendEquation: string;
};
normal: {
label: string;
blendFunc: string[];
blendEquation: string[];
};
subtractive: {
label: string;
blendFunc: string[];
blendEquation: string[];
};
};
export declare const MAX_DEFAULT_TOOLTIPS = 5;
export declare const RESOLUTIONS: {
ONE_X: "ONE_X";
TWO_X: "TWO_X";
};
export declare const EXPORT_IMG_RATIOS: {
SCREEN: "SCREEN";
FOUR_BY_THREE: "FOUR_BY_THREE";
SIXTEEN_BY_NINE: "SIXTEEN_BY_NINE";
CUSTOM: "CUSTOM";
};
export type ImageRatioOption = {
id: keyof typeof EXPORT_IMG_RATIOS;
label: string;
hidden?: boolean;
getSize: (screenW: number, screenH: number) => {
width: number;
height: number;
};
};
export declare const ScreenRatioOption: ImageRatioOption;
export declare const CustomRatioOption: ImageRatioOption;
export declare const FourByThreeRatioOption: ImageRatioOption;
export declare const SixteenByNineRatioOption: ImageRatioOption;
export declare const EXPORT_IMG_RATIO_OPTIONS: ReadonlyArray;
export type ExportResolutionOption = keyof typeof RESOLUTIONS | '1280x720' | '1920x1080' | '2560x1440' | '1600x900' | '1024x768' | '1280x960' | '1600x1200' | '1920x1440';
export type ImageResolutionOption = {
id: ExportResolutionOption;
label: string;
available: boolean;
scale?: number;
getSize: (screenW: number, screenH: number) => {
width: number;
height: number;
};
};
export declare const OneXResolutionOption: ImageResolutionOption;
export declare const TwoXResolutionOption: ImageResolutionOption;
export declare const Resolution1920x1080Option: ImageResolutionOption;
export declare const Resolution1280x720Option: ImageResolutionOption;
export declare const Resolution2560x1440Option: ImageResolutionOption;
export declare const Resolution1600x900Option: ImageResolutionOption;
export declare const Resolution1024x768Option: ImageResolutionOption;
export declare const Resolution1280x960Option: ImageResolutionOption;
export declare const Resolution1600x1200Option: ImageResolutionOption;
export declare const Resolution1920x1440Option: ImageResolutionOption;
export declare const EXPORT_IMG_RESOLUTION_OPTIONS: ReadonlyArray;
export declare const EXPORT_DATA_TYPE: {
CSV: "CSV";
GEOJSON: "GEOJSON";
GEOPARQUET: "GEOPARQUET";
SHAPEFILE: "SHAPEFILE";
GEOPACKAGE: "GEOPACKAGE";
KML: "KML";
KMZ: "KMZ";
};
export declare const EXPORT_DATA_TYPE_OPTIONS: ({
id: "CSV";
label: string;
available: boolean;
} | {
id: "GEOJSON";
label: string;
available: boolean;
} | {
id: "GEOPARQUET";
label: string;
available: boolean;
} | {
id: "SHAPEFILE";
label: string;
available: boolean;
} | {
id: "GEOPACKAGE";
label: string;
available: boolean;
} | {
id: "KML";
label: string;
available: boolean;
} | {
id: "KMZ";
label: string;
available: boolean;
})[];
export declare const EXPORT_MAP_FORMATS: {
HTML: "HTML";
JSON: "JSON";
};
export declare const EXPORT_HTML_MAP_MODES: {
READ: "READ";
EDIT: "EDIT";
};
export declare const EXPORT_MAP_FORMAT_OPTIONS: {
id: string;
label: any;
available: boolean;
}[];
export declare function getHTMLMapModeTileUrl(mode: string): string;
export declare const EXPORT_HTML_MAP_MODE_OPTIONS: {
id: string;
label: string;
available: boolean;
url: string;
}[];
export declare const DEFAULT_UUID_COUNT = 6;
export declare const DEFAULT_NOTIFICATION_MESSAGE = "MESSAGE_NOT_PROVIDED";
export declare const DEFAULT_NOTIFICATION_TYPES: {
info: "info";
error: "error";
warning: "warning";
success: "success";
};
export declare const DEFAULT_NOTIFICATION_TOPICS: {
global: "global";
file: "file";
};
export declare const THROTTLE_NOTIFICATION_TIME = 330;
export declare const BASE_SPEED = 600;
export declare const FPS = 60;
/**
* 4 Animation Window Types
* 1. free
* |-> |->
* Current time is a fixed range, animation controller calls next animation frames continuously to animation a moving window
* The increment id based on domain / BASE_SPEED * SPEED
*
* 2. incremental
* | |->
* Same as free, current time is a growing range, only the max value of range increment during animation.
* The increment is also based on domain / BASE_SPEED * SPEED
*
* 3. point
* o -> o
* Current time is a point, animation controller calls next animation frame continuously to animation a moving point
* The increment is based on domain / BASE_SPEED * SPEED
*
* 4. interval
* o ~> o
* Current time is a point. An array of sorted time steps need to be provided.
* animation controller calls next animation at a interval when the point jumps to the next step
*/
export declare const ANIMATION_WINDOW: {
free: "free";
incremental: "incremental";
point: "point";
interval: "interval";
};
export declare const DEFAULT_TIME_FORMAT = "MM/DD/YY HH:mm:ssa";
export declare const SPEED_CONTROL_RANGE: [number, number];
export declare const SPEED_CONTROL_STEP = 0.001;
export declare const GEOCODER_DATASET_NAME = "geocoder_dataset";
export declare const GEOCODER_LAYER_ID = "geocoder_layer";
export declare const GEOCODER_GEO_OFFSET = 0.05;
export declare const GEOCODER_ICON_COLOR: [number, number, number];
export declare const GEOCODER_ICON_SIZE = 160;
export declare const EDITOR_LAYER_ID = "kepler_editor_layer";
export declare const EDITOR_LAYER_PICKING_RADIUS = 6;
export declare const EDITOR_MODES: {
DRAW_POLYGON: string;
DRAW_RECTANGLE: string;
DRAW_CIRCLE: string;
DRAW_LINESTRING: string;
DRAW_POINT: string;
EDIT: string;
};
export declare const EDITOR_DRAW_MODES: string[];
export declare const PLOT_TYPES: {
histogram: "histogram";
lineChart: "lineChart";
};
export declare const INIT_FILTER_ITEMS_IN_DROPDOWN = 100;
/**
* Max number of filter value buffers that deck.gl provides
*/
export declare const MAX_GPU_FILTERS = 4;
export declare const MAP_THUMBNAIL_DIMENSION: {
width: number;
height: number;
};
export declare const MAP_INFO_CHARACTER: {
title: number;
description: number;
};
export declare const LOADING_METHODS: {
upload: "upload";
storage: "storage";
tileset: "tileset";
};
export declare const DEFAULT_FEATURE_FLAGS: {};
export declare const DATASET_FORMATS: {
row: "row";
geojson: "geojson";
csv: "csv";
keplergl: "keplergl";
arrow: "arrow";
duckdb: "duckdb";
};
export declare const MAP_CONTROLS: {
visibleLayers: "visibleLayers";
mapLegend: "mapLegend";
toggle3d: "toggle3d";
splitMap: "splitMap";
mapDraw: "mapDraw";
mapLocale: "mapLocale";
mapTheme: "mapTheme";
effect: "effect";
annotation: "annotation";
chart: "chart";
viewportJson: "viewportJson";
mapInfo: "mapInfo";
};
export declare enum MapViewMode {
MODE_2D = "MODE_2D",
MODE_3D = "MODE_3D",
MODE_GLOBE = "MODE_GLOBE"
}
/**
* Minimum zoom level allowed in globe mode. Negative values let the user zoom
* out further than the web-mercator default of 0, so the whole globe can be
* pulled back to appear smaller on screen.
*/
export declare const GLOBE_MIN_ZOOM = 2;
/**
* Maximum zoom in globe mode.
*
* The previous "empty rectangles" at high zoom were caused by the vector basemap
* layer declaring `maxZoom: 23` while the raw tile endpoints only have data to
* z16 (mapbox-streets-v8) / z14 (CARTO) — deck then requested non-existent tiles
* that 404. That is fixed in `getGlobeBaseLayers` by setting `maxZoom` to each
* source's true data max so deck overzooms instead.
*
* The remaining practical ceiling is float32 precision: deck's globe places
* geometry in common space on a sphere of radius 256 with no fp64/relative-to-
* center trick, so beyond ~visual-zoom 16 (roughly this mapState zoom minus
* `zoomAdjust(lat)` ≈ 1.65 at the equator) geometry starts to jitter/drift.
*/
export declare const GLOBE_MAX_ZOOM = 16;
/**
* Maximum absolute center latitude allowed in globe mode. Constrains the camera
* target to a band around the equator so the view can't be centered on the
* poles (deck.gl's default clamps to ~85°, which lets the camera stare straight
* down at a pole). Applies symmetrically to the northern and southern hemisphere.
*/
export declare const GLOBE_MAX_LATITUDE = 75;
export type GlobeConfig = {
atmosphere: boolean;
/**
* When true, draw a large sun-independent uniform glow in addition to the
* realistic scattering sky halo.
*/
hugeHalo: boolean;
/**
* Multiplier for huge-halo shell thickness. `1` is the baseline (~14% beyond
* the globe); the configured default is 3.5.
*/
hugeHaloRadius: number;
/** Opacity of the huge-halo glow (0–1). Default: 0.2. */
hugeHaloOpacity: number;
azimuth: boolean;
azimuthAngle: number;
terminator: boolean;
terminatorOpacity: number;
basemap: boolean;
labels: boolean;
labelsColor: [number, number, number];
adminLines: boolean;
adminLinesColor: [number, number, number];
water: boolean;
waterColor: [number, number, number];
surfaceColor: [number, number, number];
surface: boolean;
backgroundColor: [number, number, number];
stars: boolean;
};
export type Globe = {
enabled: boolean;
config: GlobeConfig;
};
export declare const DEFAULT_GLOBE_CONFIG: GlobeConfig;
export declare const GLOBE_SUPPORTED_LAYERS: Record;
export declare enum MapSplitMode {
SINGLE_MAP = "SINGLE_MAP",
DUAL_MAP = "DUAL_MAP",
SWIPE_COMPARE = "SWIPE_COMPARE"
}
/**
* A multiplier for screen-space width/scale for Arc, Line, Icon and Text layers.
* Required in order to maintain the same appearance after upgrading to deck.gl v8.5.
* https://github.com/visgl/deck.gl/blob/master/docs/upgrade-guide.md
*/
export declare const PROJECTED_PIXEL_SIZE_MULTIPLIER: number;
/**
* Maximum value for text outline width
*/
export declare const TEXT_OUTLINE_MULTIPLIER = 5;
export declare const dataTestIds: Record;
export declare const DEFAULT_TIMEZONE = "UTC";
export declare const DEFAULT_POST_PROCESSING_EFFECT_TYPE = "ink";
export declare const DEFAULT_LIGHT_COLOR: [number, number, number];
export declare const DEFAULT_LIGHT_INTENSITY = 1;
export declare const SHADOW_MAP_RESOLUTIONS: {
readonly low: 0.5;
readonly auto: 1;
readonly high: 1.5;
};
export declare const DEFAULT_SHADOW_INTENSITY = 0.5;
export declare const DEFAULT_SHADOW_COLOR: [number, number, number];
export declare const LIGHT_AND_SHADOW_EFFECT_TIME_MODES: {
pick: "pick";
current: "current";
animation: "animation";
};
export type LightAndShadowEffectTimeMode = 'pick' | 'current' | 'animation';
export declare const DEFAULT_LIGHT_AND_SHADOW_PROPS: {
timestamp: number;
timeMode: LightAndShadowEffectTimeMode;
shadowIntensity: number;
shadowColor: [number, number, number];
sunLightColor: [number, number, number];
sunLightIntensity: number;
ambientLightColor: [number, number, number];
ambientLightIntensity: number;
};
export declare const LIGHT_AND_SHADOW_EFFECT: EffectDescription;
export declare const DISTANCE_FOG_TYPE = "distanceFog";
export declare const SURFACE_FOG_TYPE = "surfaceFog";
export declare const POSTPROCESSING_EFFECTS: {
[key: string]: EffectDescription;
};
export declare const EFFECT_DESCRIPTIONS: EffectDescription[];
export type EffectType = 'ink' | 'brightnessContrast' | 'hueSaturation' | 'vibrance' | 'sepia' | 'dotScreen' | 'colorHalftone' | 'noise' | 'triangleBlur' | 'zoomBlur' | 'tiltShift' | 'edgeWork' | 'vignette' | 'magnify' | 'hexagonalPixelate' | 'distanceFog' | 'surfaceFog' | 'lightAndShadow';
export declare const SYNC_TIMELINE_MODES: Record;
export declare const GEOARROW_METADATA_KEY = "ARROW:extension:name";
/**
* Enum holding GeoArrow extension type names
*/
export declare enum GEOARROW_EXTENSIONS {
POINT = "geoarrow.point",
LINESTRING = "geoarrow.linestring",
POLYGON = "geoarrow.polygon",
MULTIPOINT = "geoarrow.multipoint",
MULTILINESTRING = "geoarrow.multilinestring",
MULTIPOLYGON = "geoarrow.multipolygon",
WKB = "geoarrow.wkb"
}
export declare const LOADERS_CDN_VERSION = "4.3.2";
export declare const LOADERS_CDN_URL = "https://unpkg.com/@loaders.gl";
export declare const getLoaderOptions: () => {
mvt: {
workerUrl: string;
};
'quantized-mesh': {
workerUrl: string;
};
npy: {
workerUrl: string;
};
};
export declare const CUSTOM_SCENEGRAPH_MODEL_ID = "custom";
export declare const DEFAULT_SCENEGRAPH_MODEL_ID = "default-model";
export declare const LEGACY_DEFAULT_SCENEGRAPH_URL = "https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/2.0/Duck/glTF-Binary/Duck.glb";
export type ScenegraphModel = {
id: string;
label: string;
icon: any;
url: string | null;
/** [roll, pitch, yaw] added to the layer angle sliders */
angles: [number, number, number];
scale: number;
};
/** Duck used by the point 3D layer. Yaw lives on the model so angle Z can default to 0. */
export declare const DEFAULT_SCENEGRAPH_MODEL: ScenegraphModel;
export declare const TRIP_LAYER_SCENEGRAPH_MODELS: ScenegraphModel[];
/** Same gallery as trips, plus Ducky and a custom URL. */
export declare const SCENEGRAPH_LAYER_MODELS: ScenegraphModel[];
export {};