wujingjing
2025-02-26 948c5662b643593c5d0d50140775affb8791e7fd
修改背景切换
已修改2个文件
14 ■■■■ 文件已修改
src/components/chat/smallChat/index.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/model/map/OLMap.ts 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/chat/smallChat/index.vue
@@ -307,9 +307,9 @@
    refreshAssistantMessage({ value: `成功`, isError: false });
};
const handleSetBackgroundLayer = (formData: { backgroundLayerId: string }) => {
    if (!formData.backgroundLayerId) return;
    props.olMap.setSourceType(Number(formData.backgroundLayerId));
const handleSetBackgroundLayer = (formData: { LayerId: string }) => {
    if (!formData.LayerId) return;
    props.olMap.setSourceType(formData.LayerId as GaoDeSourceType);
    refreshAssistantMessage({ value: `成功`, isError: false });
};
src/model/map/OLMap.ts
@@ -38,13 +38,13 @@
export type LangType = 'zh_cn' | 'en';
export const enum GaoDeSourceType {
    /** @description 默认地图 */
    Default = 0,
    Default = 'default',
    /** @description 影像地图 */
    Satellite = 1,
    Satellite = 'satellite',
    /** @description 矢量地图 */
    Vector = 2,
    Vector = 'standard',
    /** @description 影像路网 */
    SatelliteRoad = 3,
    SatelliteRoad = 'road_network',
}
export const enum OverlayType {
    Marker = 'marker',