Adjusting ScaleBar height when creating via JavaScript

3766
0
08-01-2014 01:38 PM
NathanLindley
New Contributor

Any ideas on how to accomplish this?  I have seen the VB/C# ways to do it in the codebehind, but we are creating the map with JavaScript on page load.

 

I tried:

 

            var scalebar = new esri.dijit.Scalebar({ map: map, attachTo: "bottom-left", scalebarStyle: "line" });
           

scalebar.Height = 40;

 

but it doesn't seem to effect the size at all.

 

Any comments are greatly appreciated.

 

Thanks and have a good day!

0 Kudos
0 Replies