laptop and a wrench

漏洞

Add a disablePan method to the JavaScript 4.x API which is available in JavaScript 3.x

上次发布: September 22, 2021 ArcGIS API for JavaScript
漏洞 ID 编号 BUG-000102171
已提交January 18, 2017
上次修改时间September 22, 2021
适用范围ArcGIS API for JavaScript
找到的版本4.2
服务器平台Windows
客户端平台2012 R2
状态Known Limit

附加信息

There is ongoing research being done on various types of map/scene view interaction, this issue was merged into another one specifically for addressing some of these concerns. There is no set time/release when this is slated for implementation.

解决办法

Add an event handler for the view's "drag" event and use its stopPropagation method.

For example:

var view = new MapView({

container: "viewDiv",

map: map,

zoom: 4,

center: [15, 65]

});

view.on("drag", function (event) {

event.stopPropagation();

});

重现步骤

漏洞 ID: BUG-000102171

软件:

  • ArcGIS API for JavaScript

从 ArcGIS 专家处获得帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项

发现关于本主题的更多内容