修改当同时播放两个效果时的连续闪烁问题
This commit is contained in:
parent
4b24e87192
commit
37a088d6ac
|
|
@ -204,7 +204,7 @@ const palyDateEvent: any = {
|
|||
// 添加天气运算接口 animationType: 0 回放 1预览
|
||||
addyctqjsGis(map: any, eventOpt?: any) {
|
||||
// 清理UI
|
||||
if (gisImgOpt.weatherType === 3) {
|
||||
if (eventOpt.weatherType === 3) {
|
||||
removeWindLayer(map);
|
||||
|
||||
addWindLayer(map, windDataHandle(eventOpt.data));
|
||||
|
|
|
|||
|
|
@ -308,18 +308,20 @@ function updateTimeLabel(ctime: any) {
|
|||
EventBusTool.getEventBus().publish("playData", {
|
||||
key: "addyctqjsGis",
|
||||
data: res.result,
|
||||
weatherType:params.weatherType
|
||||
});
|
||||
});
|
||||
// 判定风场数据
|
||||
// // 判定风场数据
|
||||
if (weathFlag[3] === true&&gisImgOpt.weatherType!=3) {
|
||||
const params = { ...gisImgOpt, weatherType: 3, startTime: dataRequestOpt.value[currentHourDiff],hour:currentHourDiff };
|
||||
delete params.key;
|
||||
delete params.endTime;
|
||||
playbackSearchData(params, true, (res) => {
|
||||
const params1 = { ...params, weatherType: 3 };
|
||||
delete params1.key;
|
||||
delete params1.endTime;
|
||||
playbackSearchData(params1, true, (res) => {
|
||||
// 往态势传递数据
|
||||
EventBusTool.getEventBus().publish('playData', {
|
||||
key: 'addyctqjsGis',
|
||||
data: res.result,
|
||||
weatherType:3
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -99,14 +99,19 @@ function handleIconClick(item: meteorologyItem) {
|
|||
key: "addyctqjsGis",
|
||||
data: res.result,
|
||||
animationType: 1,
|
||||
weatherType:gisImgOpt.weatherType
|
||||
});
|
||||
});
|
||||
} else {
|
||||
playbackSearchData(gisImgOpt, false, (res) => {
|
||||
const params = { ...gisImgOpt };
|
||||
delete params.key;
|
||||
delete params.endTime;
|
||||
playbackSearchData(params, false, (res) => {
|
||||
// 往态势传递数据
|
||||
EventBusTool.getEventBus().publish("playData", {
|
||||
key: "addyctqjsGis",
|
||||
data: res.result,
|
||||
weatherType:gisImgOpt.weatherType
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@ function weatherPreviewHandle(params: any) {
|
|||
key: 'addyctqjsGis',
|
||||
data: res.result,
|
||||
animationType: 1,
|
||||
weatherType:gisImgOpt.weatherType
|
||||
});
|
||||
dialogVisible.value = false;
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user