cyarrow

scalebarUnit - Changing the units

Discussion created by cyarrow on Feb 10, 2011
Latest reply on Nov 17, 2011 by jeff.pace
I'm wondering if anyone knows how to alter the units in Javascript API from 'english' (which gives miles) to kilometers?

var scalebar = new esri.dijit.Scalebar({
            map: map,
            scalebarUnit:'english'
          });

I have tried using 'metric'. No luck! Any help on this one?

Outcomes