修复地图定位点不更新显示的bug
parent
4af0cbad96
commit
f2ac10c0e3
|
@ -62,7 +62,7 @@ const option = reactive({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// //给区域赋值
|
// //给区域赋值
|
||||||
data: [{}],
|
data: [],
|
||||||
showEffectOn: 'render',//配置何时显示特效。可选:'render' 绘制完成后显示特效。'emphasis' 高亮(hover)的时候显示特效。
|
showEffectOn: 'render',//配置何时显示特效。可选:'render' 绘制完成后显示特效。'emphasis' 高亮(hover)的时候显示特效。
|
||||||
rippleEffect: {//涟漪特效相关配置。
|
rippleEffect: {//涟漪特效相关配置。
|
||||||
brushType: 'stroke'//波纹的绘制方式,可选 'stroke' 和 'fill'
|
brushType: 'stroke'//波纹的绘制方式,可选 'stroke' 和 'fill'
|
||||||
|
@ -73,7 +73,7 @@ const option = reactive({
|
||||||
});
|
});
|
||||||
|
|
||||||
const update = (longitude: number, latitude: number) => {
|
const update = (longitude: number, latitude: number) => {
|
||||||
option.series[1].data[0].value = [longitude, latitude]
|
option.series[0].data[0] = [longitude, latitude]
|
||||||
}
|
}
|
||||||
|
|
||||||
defineExpose({ update })
|
defineExpose({ update })
|
||||||
|
|
Loading…
Reference in New Issue