Commit fa3c915692098f4bd85264a9322e69f4f823d5a8

Authored by ww
1 parent f1bc89cd

fix: 修复实时轨迹&&历史轨迹marker图片引入问题

... ... @@ -4,6 +4,8 @@ import { AddHistoryTimeTrajectoryAmapConfig } from './index'
4 4 import { chartInitConfig } from '@/settings/designSetting'
5 5 import cloneDeep from 'lodash/cloneDeep'
6 6 import dataJson from './data.json'
  7 +import markImage from '@/assets/external/marker/1.png'
  8 +
7 9
8 10 export type dataJsonType = typeof dataJson //data.json类型
9 11
... ... @@ -62,7 +64,7 @@ export const option = {
62 64 amapLon: 104.108689,
63 65 amapLat: 30.66176,
64 66 amapZindex: 11,
65   - iconMarker: '1.png',
  67 + iconMarker: markImage,
66 68 lineDuration: 2000,
67 69 lineOpacity: 0.5,
68 70 lineShowDir: false,
... ...
... ... @@ -4,6 +4,7 @@ import { AddRealTimeTrajectoryAmapConfig } from './index'
4 4 import { chartInitConfig } from '@/settings/designSetting'
5 5 import cloneDeep from 'lodash/cloneDeep'
6 6 import dataJson from './data.json'
  7 +import markImage from '@/assets/external/marker/1.png'
7 8
8 9 export type dataJsonType = typeof dataJson //data.json类型
9 10
... ... @@ -62,7 +63,7 @@ export const option = {
62 63 amapLon: 104.108689,
63 64 amapLat: 30.66176,
64 65 amapZindex: 11,
65   - iconMarker: '1.png',
  66 + iconMarker: markImage,
66 67 lineOpacity: 0.5,
67 68 lineShowDir: false,
68 69 mpBorderConfig: {
... ...