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

54 lines
995 B
TypeScript

export interface LatLng {
lat: number;
lng: number;
}
export interface MapData {
circles?: Circle[];
markers?: Marker[];
measurements?: Measurement[];
rectangles?: Rectangle[];
}
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 Rectangle 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;
}