Commit 04bbf9b64e27833acf82298e3b7116ba0403fc29
Merge branch 'fix/map-track-marker-image' into 'main_dev'
fix: 修复实时轨迹&&历史轨迹marker图片引入问题 See merge request yunteng/thingskit-view!175
Showing
7 changed files
with
5 additions
and
2 deletions
src/assets/external/marker/car/1.png
0 → 100644
5.85 KB
src/assets/external/marker/car/2.png
0 → 100644
5.92 KB
src/assets/external/marker/car/3.png
0 → 100644
5.92 KB
src/assets/external/marker/car/4.png
0 → 100644
5.94 KB
src/assets/external/marker/car/5.png
0 → 100644
5.95 KB
| ... | ... | @@ -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: { | ... | ... |