Packagecom.esri.ags.controls.navigationClasses
Classpublic class NavigationSlider
InheritanceNavigationSlider Inheritance mx.controls.VSlider

The NavigationSlider class represents a slider of a Navigation control. The NavigationSlider class can only be used within the context of a Navigation control. You can create a subclass of the NavigationSlider class and use it with a Navigation control by setting the navigationSliderClass property of the Navigation control to your subclass.

See also

com.esri.ags.controls.Navigation
com.esri.ags.controls.navigationClasses.NavigationMinusButton
com.esri.ags.controls.navigationClasses.NavigationPlusButton


Public Properties
 PropertyDefined by
  formatter : NumberFormatter
Number formatter to assist tooltip text generation.
NavigationSlider
  map : Map
The map reference.
NavigationSlider
Public Methods
 MethodDefined by
  
Creates a new NavigationSlider object.
NavigationSlider
Protected Methods
 MethodDefined by
  
changeHandler(event:SliderEvent):void
The handler of a slider change event.
NavigationSlider
  
The handler of a map extent change event.
NavigationSlider
  
formatDataTip(value:Number):String
Formats the data tip text based on the level of the map.
NavigationSlider
Styles
 StyleDescriptionDefined by
  
length
Type: Number   CSS Inheritance: no
The length in pixels [added in version 1.2]. The default value is 160 pixels.
NavigationSlider
  
showScaleInDataTip
Type: Boolean   CSS Inheritance: no
If true, the slider's data tip displays the tile level's scale in the form 1:[scale]. If false, the slider's data tip displays the tile level counted from 1 (not zero). Note that that is different from Map.level which starts at 0. The slider is only shown if the Map has lods. The default value is true.
NavigationSlider
  
tickSpacing
Type: Number   CSS Inheritance: no
The tick spacing [added in version 1.2]. The default value is undefined.
NavigationSlider
Property detail
formatterproperty
public var formatter:NumberFormatter

Number formatter to assist tooltip text generation.

mapproperty 
map:Map  [read-write]

The map reference.

Implementation
    public function get map():Map
    public function set map(value:Map):void
Constructor detail
NavigationSlider()constructor
public function NavigationSlider()

Creates a new NavigationSlider object.

Method detail
changeHandler()method
protected function changeHandler(event:SliderEvent):void

The handler of a slider change event. Here the map level is set to the slider value.

Parameters
event:SliderEvent — an instance of SliderEvent.
extentChangeHandler()method 
protected function extentChangeHandler(event:ExtentEvent):void

The handler of a map extent change event. Here the value of the slider is set to the event lod level.

Parameters
event:ExtentEvent — an instance of ExtentEvent.
formatDataTip()method 
protected function formatDataTip(value:Number):String

Formats the data tip text based on the level of the map.

Parameters
value:Number — The map level.

Returns
String — the Data tip text.

See also