geos_rfleet

esri.dijit.Scalebar : Issues

Discussion created by geos_rfleet on Nov 4, 2010
Latest reply on Nov 12, 2010 by khutchins-esristaff
I've just plugged in the scalebar dijit and it doesn't really work...at least not at all extents.

Sometimes it displays NaNmi sometimes it shows that the world is only about 120mi around the equator!

Try the sample to see what I mean.

Move the slider all the way to the bottom i.e. zoom right out and you should see the NaN issue, try zooming in a little from that position and you will find it is indeed, a 'small world'.

The problem I have is that at my initial extent (-180,-90,180,90) I get the NaN error when I instantiate the dijit which is throwing an exception in IE such that the dijit doesn't work at all.  FF is more forgiving in that despite the initial error (and subsequent display of NaNmi) the dijit does work at 'compatible' extents should the user zoom to them.

Outcomes