2019-08-27 19:33:52 -04:00
|
|
|
export interface LatLng {
|
|
|
|
lat: number;
|
|
|
|
lng: number;
|
|
|
|
}
|
|
|
|
|
2019-08-30 22:51:29 -04:00
|
|
|
export interface MapData {
|
|
|
|
circles?: Circle[];
|
|
|
|
markers?: Marker[];
|
|
|
|
measurements?: Measurement[];
|
2019-08-30 23:30:15 -04:00
|
|
|
polylines?: Polyline[];
|
2019-08-30 22:51:29 -04:00
|
|
|
rectangles?: Rectangle[];
|
|
|
|
}
|
|
|
|
|
2019-08-27 19:33:52 -04:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2019-08-30 14:40:37 -04:00
|
|
|
export interface Rectangle extends MapSymbol {
|
2019-08-27 19:33:52 -04:00
|
|
|
latlng: LatLng;
|
|
|
|
latlng2: LatLng;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface Polyline extends MapSymbol {
|
|
|
|
latlng: LatLng[];
|
2019-08-30 23:30:15 -04:00
|
|
|
weight?: number;
|
2019-08-27 19:33:52 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|