map.config.ts
757 Bytes
import { FrontComponent } from '../../const/const';
import { ComponentConfig } from '../../types/type';
export interface MapComponentLayout {
componentType?: FrontComponent;
}
export interface MapComponentValue {
icon?: string;
track?: Recordable[];
}
interface Config {
layout?: MapComponentLayout;
value?: MapComponentValue;
}
export const MaphistoryTrackConfig: Config = {
layout: {
componentType: FrontComponent.MAP_COMPONENT_TRACK_HISTORY,
},
};
export const MapRealTrackConfig: Config = {
layout: {
componentType: FrontComponent.MAP_COMPONENT_TRACK_HISTORY,
},
};
export const transfromMapComponentConfig: ComponentConfig['transformConfig'] = (
_componentConfig,
_record,
_dataSourceRecord
) => {
return {};
};