File size: 1,255 Bytes
0914710
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import { Evented, type LatLng } from "leaflet";

export interface BboxLatLng {
    ne: LatLng,
    sw: LatLng
}

export enum ExcludeIncludeLabelPrompt {
    ExcludeMarkerPrompt = 0,
    IncludeMarkerPrompt = 1
}
type PointPromptType = "point"
type RectanglePromptType = "rectangle"

export interface IPointPrompt {
    id: Evented.layer._url,
    type: PointPromptType,
    data: LatLng,
    label: ExcludeIncludeLabelPrompt
}

export interface IRectanglePrompt {
    id?: Evented.layer._url,
    type: RectanglePromptType,
    data: BboxLatLng
}

export interface IPointTable {
    id?: Evented.layer._url,
    data: LatLng,
    label: ExcludeIncludeLabelPrompt
}

export interface IRectangleTable {
    id?: Evented.layer._url,
    data_ne: BboxLatLng,
    data_sw: BboxLatLng
}
  
export interface IBodyLatLngPoints {
    bbox: BboxLatLng,
    prompt: Array<IPointPrompt|IRectanglePrompt>,
    zoom: number,
    source_type: string
}
  
export interface IBodyLatLngWithStringPoints {
    bbox: BboxLatLng,
    string_prompt: string,
    zoom: number,
    source_type: string
}

export type OpenStreetMap = "OpenStreetMap"
export type Satellite = "Satellite"
export type SourceTileType = OpenStreetMap | Satellite
export type ArrayNumber = Array<number>