map-alliance/src/app/models/mapSymbol.ts

47 lines
853 B
TypeScript
Raw Normal View History

2019-08-27 19:33:52 -04:00
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;
}
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[];
}
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;
}