Class Index | File Index

Classes


Class adf.ScaleBar


Defined in: ScaleBar.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
adf.ScaleBar(id, container, width, height, renderer)
adf.ScaleBar provides a client side based scalebar widget for displaying the map scale.
Method Summary
Method Attributes Method Name and Description
 
init(container)
This method initializes the ScaleBar onto the container.
Class Detail
adf.ScaleBar(id, container, width, height, renderer)
adf.ScaleBar provides a client side based scalebar widget for displaying the map scale. It can be rndered in different styles using these renderers available out of the box adf.SteppedScaleLineRenderer adf.SingleDivisionScaleBar, adf.AlternatingScaleBarRenderer adf.DoubleAlternatingScaleBarRenderer
 var myscaleBar = new adf.ScaleBar("myId", adfdojo.create("div", {class:"esriScaleBar"}, adf.body()),
                                    300, 100, new adf.SteppedScaleLineRenderer());
 myscaleBar.renderer.render(100,10000,"kilo meters");
Parameters:
id
id of this scalbar instance
container
the container div this scalbar is added to
width
height
renderer
Method Detail
init(container)
This method initializes the ScaleBar onto the container.
Parameters:
{DOMNode} container

Documentation generated by JsDoc Toolkit 2.1.0 on Mon May 17 2010 13:45:43 GMT-0700 (PDT)