-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
map-control.d.ts
37 lines (33 loc) · 1.06 KB
/
map-control.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import React from 'react';
import {Editor, MapControls} from '../../reducers';
import {Datasets} from 'reducers/vis-state-updaters';
import {FeatureFlags} from '../context';
import {Layer} from 'layers';
export type MapControlComponentProps = Partial<MapControlProps>;
export type MapControlProps = {
availableLocales: ReadonlyArray<string>;
datasets: Datasets;
dragRotate: boolean;
isSplit: boolean;
primary: boolean;
layers: Layer[];
layersToRender: {[key: string]: boolean};
mapIndex: number;
mapControls: MapControls;
readOnly?: boolean;
scale: number;
top: number;
editor: Editor;
locale: string;
onTogglePerspective: () => void;
onToggleGlobe: () => void;
onToggleSplitMap: () => void;
onToggleMapControl: (control: string) => void;
onSetEditorMode: (mode: string) => void;
onSetLocale: () => void;
onToggleEditorVisibility: () => void;
logoComponent: React.FC | React.ReactNode;
actionComponents: React.FC[] | React.Component[];
};
export type MapControl = React.FC<MapControlProps>;
export function MapControlFactory(): MapControl;