Class adf.ScaleBar
Defined in: ScaleBar.js.
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 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