Unable to add or edit features using the Editor toolbar in an application built with the JavaScript Application Program Interface (API) if the map object contains a Web Map Tile Service (WMTS) layer.
上次发布: June 18, 2015ArcGIS API for JavaScript
漏洞 ID 编号
BUG-000087251
已提交
April 27, 2015
上次修改时间
June 3, 2025
适用范围
ArcGIS API for JavaScript
找到的版本
3.13
操作系统
Windows OS
修正版本
3.14
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
解决办法
The workflow outlined in the following code snippet allows the Editor widget to function correctly:
var wmtsLayer = new WMTSLayer("<URL to your layer>", options);
//Create a URL Object
var url = {"path":"<URL to your layer>", "query":null};
//Wait until the WMTS Layer has loaded, then change its _url parameter to the above object
wmtsLayer.on("load", function() {
//Set the WMTS layer _url variable to the variable created
wmtsLayer._url = url;
//Add the WMTS layer to the map
map.addLayer(wmtsLayer);