The maxScale and minScale Property are always 0 for MapImageLayer sublayers on ArcGIS API for JavaScript 4.1 and above.
上次发布: June 20, 2017ArcGIS API for JavaScript
漏洞 ID 编号
BUG-000104613
已提交
April 20, 2017
上次修改时间
June 5, 2024
适用范围
ArcGIS API for JavaScript
找到的版本
4.3
操作系统
N/A
操作系统版本
N/A
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
Since the sublayers are manually set and only visible and id are specified, the rest of the properties use default values (0,0)
If you want to keep the minScale/maxScale of the sublayers, you can either do
new MapImageLayer({
sublayers: [{
id: ...,
visible:...,
minScale: ...,
maxScale
}]
})
or
var layer = new MapImageLayer({url: ...});
layer.sublayers.getItemAt(...).visible = ...;