|
@@ -344,8 +344,8 @@ export default {
|
|
],
|
|
],
|
|
geo: {
|
|
geo: {
|
|
map: opt.mapName,
|
|
map: opt.mapName,
|
|
- // roam: true, //是否缩放--在移动端无效
|
|
|
|
- zoom: 1,
|
|
|
|
|
|
+ roam: true, //是否缩放--在移动端无效
|
|
|
|
+ zoom: 0.8,
|
|
// selectedMode:true, //多选地图区域
|
|
// selectedMode:true, //多选地图区域
|
|
label: {
|
|
label: {
|
|
normal: {
|
|
normal: {
|
|
@@ -564,9 +564,32 @@ export default {
|
|
// 数据展示
|
|
// 数据展示
|
|
data: data
|
|
data: data
|
|
});
|
|
});
|
|
|
|
+ let timeOut4 = null
|
|
|
|
+ clearInterval(timeOut4)
|
|
|
|
+ myChart.clear();
|
|
if (option) {
|
|
if (option) {
|
|
myChart.setOption(option);
|
|
myChart.setOption(option);
|
|
}
|
|
}
|
|
|
|
+ var currentIndex = -1;
|
|
|
|
+ timeOut4 = setInterval(() => {
|
|
|
|
+ var dataLen = option.series[0].data.length;
|
|
|
|
+ myChart.dispatchAction({
|
|
|
|
+ type: 'downplay',
|
|
|
|
+ seriesIndex: 0,
|
|
|
|
+ dataIndex: currentIndex
|
|
|
|
+ });
|
|
|
|
+ currentIndex = (currentIndex + 1) % dataLen;
|
|
|
|
+ myChart.dispatchAction({
|
|
|
|
+ type: 'highlight',
|
|
|
|
+ seriesIndex: 0,
|
|
|
|
+ dataIndex: currentIndex,
|
|
|
|
+ });
|
|
|
|
+ myChart.dispatchAction({
|
|
|
|
+ type: 'showTip',
|
|
|
|
+ seriesIndex: 0,
|
|
|
|
+ dataIndex: currentIndex
|
|
|
|
+ });
|
|
|
|
+ }, 1500)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|