Scale bar doesn’t show correct reading on initial load however, after any navigation activity, shows correct reading.
http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/widget_scalebar.html
上次发布: August 25, 2014ArcGIS API for JavaScript
漏洞 ID 编号
NIM064427
已提交
January 24, 2011
上次修改时间
June 5, 2024
适用范围
ArcGIS API for JavaScript
找到的版本
2.0
编程语言
JavaScript
操作系统
Windows OS
操作系统版本
2003
修正版本
ArcGIS.c
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
解决办法
Call map.resize after creating the scalebar.var scalebar = new esri.dijit.Scalebar({map: map, scalebarUnit:'english'}); map.resize();