A bunch of stuff

This commit is contained in:
2019-08-27 19:33:52 -04:00
parent 30b74dd91c
commit cd4f0a53a8
19 changed files with 195 additions and 76 deletions

View File

@ -1,6 +0,0 @@
import {LatLng} from "./latlng";
export interface Drawing {
color: string;
path: LatLng[];
}

View File

@ -1,4 +0,0 @@
export interface LatLng {
lat: number;
lng: number;
}

View File

@ -1,12 +1,2 @@
import {Marker} from "./marker";
import {Drawing} from "./drawing";
import {User} from "./user";
import {Message} from "./message";
export interface Map {
drawings: Drawing[];
markers: Marker[];
messages: Message[];
name: string;
users: User[];
}

View File

@ -0,0 +1,46 @@
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;
}

View File

@ -1,9 +0,0 @@
import {LatLng} from "./latlng";
export interface Marker {
latLng: LatLng;
name: string;
color: string;
notes: string;
icon: string;
}

View File

@ -1,6 +0,0 @@
import {LatLng} from "./latlng";
export interface Measurement {
start: LatLng;
end: LatLng;
}

View File

@ -1,6 +0,0 @@
import {User} from "./user";
export interface Message {
from: User;
text: string;
}

View File

@ -1,7 +0,0 @@
import {LatLng} from "./latlng";
export interface User {
name: string;
icon: string;
latLng: LatLng;
}