laptop and a wrench

Bug

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

Last Published: August 25, 2014 ArcGIS API for JavaScript
Bug ID Number NIM064427
SubmittedJanuary 24, 2011
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version found2.0
Program languageJavaScript
Operating SystemWindows OS
Operating System Version2003
Version FixedArcGIS.c
StatusFixed

Workaround

Call map.resize after creating the scalebar.var scalebar = new esri.dijit.Scalebar({map: map, scalebarUnit:'english'}); map.resize();

Steps to Reproduce

Bug ID: NIM064427

Software:

  • ArcGIS API for JavaScript

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options