-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
types.ts
29 lines (28 loc) · 848 Bytes
/
types.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
import {RGBColor} from '../../reducers';
export type ThreeDBuildingLayerProps = {
id: string;
mapboxApiAccessToken: string;
mapboxApiUrl: string;
threeDBuildingColor: RGBColor;
updateTriggers: {
getFillColor: RGBColor;
};
};
export type Coordinates = {x: number; y: number; z: number};
// TODO rename
export type FlatFigure = ([number, number] | [number, number, number])[];
export type TileDataItem = {coordinates: FlatFigure[]; properties: VectorTileFeatureProperties};
export type VectorTileFeatureProperties = {layer: string; height?: number};
export type VectorTileFeature = {
extent: number;
properties: VectorTileFeatureProperties;
_pbf: {
buf: ArrayBuffer;
pos: number;
type: number;
length: number;
readVarint: (b?: boolean) => number;
readSVarint: () => number;
};
_geometry: number;
};