A bunch of stuff
This commit is contained in:
@ -1,6 +0,0 @@
|
||||
import {LatLng} from "./latlng";
|
||||
|
||||
export interface Drawing {
|
||||
color: string;
|
||||
path: LatLng[];
|
||||
}
|
@ -1,4 +0,0 @@
|
||||
export interface LatLng {
|
||||
lat: number;
|
||||
lng: number;
|
||||
}
|
@ -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[];
|
||||
}
|
||||
|
46
src/app/models/mapSymbol.ts
Normal file
46
src/app/models/mapSymbol.ts
Normal 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;
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
import {LatLng} from "./latlng";
|
||||
|
||||
export interface Marker {
|
||||
latLng: LatLng;
|
||||
name: string;
|
||||
color: string;
|
||||
notes: string;
|
||||
icon: string;
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
import {LatLng} from "./latlng";
|
||||
|
||||
export interface Measurement {
|
||||
start: LatLng;
|
||||
end: LatLng;
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
import {User} from "./user";
|
||||
|
||||
export interface Message {
|
||||
from: User;
|
||||
text: string;
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
import {LatLng} from "./latlng";
|
||||
|
||||
export interface User {
|
||||
name: string;
|
||||
icon: string;
|
||||
latLng: LatLng;
|
||||
}
|
Reference in New Issue
Block a user