import { IAreaOverlayDataOption, IImagePointOverlayDataOption, IODSegmentOverlayDataOption, IOverlayFilter, IPointOverlayDataOption, IPolygonOverlayDataOption, ISegmentOverlayDataOption, } from "@/modules/hpaas-core/visual/overlay.types"; export const qujianLayerConfig: IImagePointOverlayDataOption = { key: "qujian", name: "区间测速卡口", category: "设备管理", color: "#aaaaaa", showInPanel: true, lngKey: "lng", latKey: "lat", filterKey: "value", filterMultiSelect: true, show: false, type: "image-point", filters: [ { color: "#48BE0B", name: "已生效", value: 2, checked: true, imgUrl: "/icon/7.png", imgSize: 8, imgOpacity: 0.8, totalCount: 0, }, { color: "#9EC38A", name: "未生效", value: 1, checked: true, imgUrl: "/icon/7.png", imgSize: 8, imgOpacity: 0.4, totalCount: 0, }, ], }; export const chuangjinLayerConfig: IImagePointOverlayDataOption = { key: "chuangjin", name: "闯禁抓拍卡口", category: "设备管理", color: "#aaaaaa", showInPanel: true, filterMultiSelect: true, show: false, type: "image-point", lngKey: "lng", latKey: "lat", filterKey: "value", filters: [ { color: "#5E6AB0", name: "已生效", value: 2, checked: true, imgUrl: "/icon/6.png", imgSize: 8, imgOpacity: 0.8, totalCount: 0, }, { color: "#ACB7F1", name: "未生效", value: 1, checked: true, imgUrl: "/icon/6.png", imgSize: 8, imgOpacity: 0.4, totalCount: 0, }, ] as IOverlayFilter[], }; export const poiLayerConfig: IImagePointOverlayDataOption = { key: "public", name: "企业公共点", category: "泥头车业务", color: "#aaaaaa", showInPanel: true, filterMultiSelect: true, showImagePointText: true, show: false, type: "image-point", lngKey: "lng", latKey: "lat", filterKey: "value", filters: [ { color: "#73BFE7", imgUrl: "/icon/旗子.png", imgSize: 10, imgOpacity: 0.6, name: "公共点", value: "*", checked: true, totalCount: 0, }, ], }; export const breakingLayerConfig: IPointOverlayDataOption = { key: "breaking", name: "泥头车违法点", category: "泥头车业务", color: "#44A1F8", showInPanel: true, type: "point-cluster", filterMultiSelect: true, show: false, lngKey: "lng", latKey: "lat", filterKey: "value", filters: [ { color: "#F9A629", name: "超速", value: "超速", checked: true, totalCount: 0, }, { color: "#A36FF8", name: "违停", value: "违停", checked: true, totalCount: 0, }, { color: "#E75151", name: "闯禁", value: "闯禁", checked: true, totalCount: 0, }, ], }; export const parkingLayerConfig: IPointOverlayDataOption = { key: "parking", name: "泥头车停车记录", category: "泥头车业务", color: "#aaaaaa", showInPanel: true, type: "point-cluster", filterMultiSelect: true, show: false, lngKey: "lng", latKey: "lat", filterKey: "value", filters: [ { color: "#5181FF", name: "停车点", value: "*", checked: true, totalCount: 0, }, ], }; export const filterAreaLayerConfig: IPolygonOverlayDataOption = { key: "自定义区域过滤", name: "自定义区域过滤", category: "泥头车业务", showInPanel: false, show: true, type: "polygon", filterMultiSelect: false, // colors: ["#5181FF", "#E75151", "#A36FF8", "#F9A629", "#73BFE7", "#5E6AB0", "#48BE0B"], filters: [], filterKey: "", }; export const journeyPathLayerConfig: ISegmentOverlayDataOption = { key: "行程轨迹", name: "行程轨迹(带动画)", category: "泥头车业务", showInPanel: true, show: false, type: "segment-path", filterMultiSelect: true, segmentUidKey: "", filterKey: "", lineArc: false, pathAnimate: true, pathAnimateIcon: "/icon/货车.png", pathAnimateIconSize: 30, pathAnimateHTMLTemplate: (props: any) => { let tooltipString = '