src/app/modules/dashboard/interfaces/map.ts
Properties |
country |
country:
|
Type : string
|
Optional |
districts |
districts:
|
Type : string[]
|
Optional |
folder |
folder:
|
Type : string
|
Optional |
labelExpr |
labelExpr:
|
Type : string
|
Optional |
metrics |
metrics:
|
Type : string[]
|
Optional |
reportData |
reportData:
|
Type : string
|
Optional |
reportLoc |
reportLoc:
|
Type : string
|
Optional |
state |
state:
|
Type : string
|
states |
states:
|
Type : string[]
|
Optional |
strict |
strict:
|
Type : boolean
|
Optional |
export interface IGeoJSON {
type: string;
features: Feature[];
}
export interface Feature {
type: FeatureType;
geometry: Geometry;
properties: Properties;
}
export interface Geometry {
type: GeometryType;
coordinates: Array<Array<number[]>>;
}
export enum GeometryType {
Polygon = 'Polygon',
}
export interface Properties {
[key: string]: any;
}
export enum FeatureType {
Feature = 'Feature',
}
export interface ICustomMapObj {
drillDown: boolean;
name: string;
fitBounds: boolean;
district?: string;
st_nm?: string;
dt_code?: string | number;
st_code?: string | number;
}
export interface IInputMapData {
state: string;
districts?: string[];
metrics?: string[];
folder?: string;
labelExpr?: string;
reportLoc?: string;
reportData?: string;
strict?: boolean;
country?: string;
states?: string[];
}