dojo.require("esri.dijit.VisibleScaleRangeSlider")
Description
(Added at v3.13)
A widget that sets the displayed visible scale values.
Samples
Search for
samples that use this class.
Constructors
CSS
esri/dijit/VisibleScaleRangeSlider | Download source
Properties
| layer | Layer | Setting the layer will update the suggested scale range, minScale and maxScale. |
| map | Map | Setting this property will update the slider's minimum/maximum values and current scale indicator. |
| maxScale | Number | The current maxScale value. |
| maximum | Number | Read-only: The maxScale bound in the slider range. |
| minScale | Number | The current minScale value. |
| minimum | Number | Read-only: The minScale bound in the slider range. |
Methods
| startup() | None | Finalizes the creation of the widget. |
Events
[ On Style Events | Connect Style Event ]
All On Style event listeners receive a single event object. Additionally, the event object also contains a 'target' property whose value is the object which fired the event.
Constructor Details
Creates a new VisibleScaleRangeSlider widget.
Parameters:
<Object> params |
Required |
Set of parameters used to specify the VisibleScaleRangeSlider widget options. |
<Node | String> srcNodeRef |
Required |
Reference or ID of the HTMLElement where the widget should be rendered. |
params properties:
<Layer> layer |
Optional |
Layer used to determine the suggested scale range and set the minScale, maxScale values. The layer is used to set the min/max scale values. |
<Map> map |
Required |
Reference to the map. Needed to show the current scale and to set the slider's minimum/maximum. |
<String> region |
Optional |
Region of preview scale thumbnails. Default is 'en-US'. |
Property Details
Setting the layer will update the suggested scale range, minScale and maxScale.
Default value:
Setting this property will update the slider's minimum/maximum values and current scale indicator.
Default value:
The current maxScale value. Default is 0.
Default value: 0
Read-only: The maxScale bound in the slider range
Default value:
The current minScale value. Default is 0.
Default value: 0
Read-only: The minScale bound in the slider range.
Default value:
Method Details
Finalizes the creation of the widget.
Event Details
[ On Style Events | Connect Style Event ]
Dispatched whenever minScale or maxScale changes.
Event Object Properties:
<Number> maxScale |
The maximum scale for the slider. |
<Number> minScale |
The minimum scale for the slider. |