Quickly moving the mouse over features causes graphic rendering lag.
上次发布: April 2, 2019ArcGIS API for JavaScript
漏洞 ID 编号
BUG-000115454
已提交
July 18, 2018
上次修改时间
June 5, 2024
适用范围
ArcGIS API for JavaScript
找到的版本
3.25
操作系统
N/A
操作系统版本
N/A
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
The app needs to do couple of things to fix the problem:
1 - Clear map.graphics before highlighting a graphic.
southCarolinaCounties.on("mouse-over", function(evt){
map.graphics.clear();
// Highlight graphic
// Show tooltip dialog
});
2 - When mouse-move fires on the map, clear highlight and tooltip if the move does not happen over a graphic.
map.on("mouse-move", function(evt) {
if (!evt.graphic) {
closeDialog();
}
});
解决办法
Clear the graphics on click instead of on mouse-out.