47 lines
850 B
TypeScript
47 lines
850 B
TypeScript
|
export interface LatLng {
|
||
|
lat: number;
|
||
|
lng: number;
|
||
|
}
|
||
|
|
||
|
export interface MapSymbol {
|
||
|
symbol?: any;
|
||
|
latlng?: LatLng | LatLng[];
|
||
|
noDelete?: boolean;
|
||
|
noSelect?: boolean;
|
||
|
label?: string;
|
||
|
color?: string;
|
||
|
notes?: string;
|
||
|
interactive?: boolean;
|
||
|
rotationAngle?: number;
|
||
|
rotationOrigin?: string;
|
||
|
}
|
||
|
|
||
|
export interface Circle extends MapSymbol {
|
||
|
latlng: LatLng;
|
||
|
radius?: number;
|
||
|
}
|
||
|
|
||
|
export interface Square extends MapSymbol {
|
||
|
latlng: LatLng;
|
||
|
latlng2: LatLng;
|
||
|
}
|
||
|
|
||
|
export interface Polyline extends MapSymbol {
|
||
|
latlng: LatLng[];
|
||
|
}
|
||
|
|
||
|
export interface Marker extends MapSymbol {
|
||
|
latlng: LatLng;
|
||
|
icon?: any;
|
||
|
}
|
||
|
|
||
|
export interface Polygon extends MapSymbol {
|
||
|
latlng: LatLng[];
|
||
|
}
|
||
|
|
||
|
export interface Measurement extends MapSymbol {
|
||
|
latlng: LatLng;
|
||
|
latlng2: LatLng;
|
||
|
weight?: number;
|
||
|
}
|