Packagecom.esri.ags.components
Classpublic class Navigation
InheritanceNavigation Inheritance spark.components.supportClasses.SkinnableComponent

The default navigation component of the map. By default this zoom slider will be visible, but you can change this using the Map.zoomSliderVisible property. You can modify the look and feel using basic CSS.

Default look and feel Custom data tips Basic inline CSS styling
Default Navigation    Custom data tips (live sample)    CSS styled Navigation
Table 1: Examples of Navigation components.

See also

com.esri.ags.Map.zoomSliderVisible
Live sample - Styling labels on ZoomSlider


Public Properties
 PropertyDefined By
  map : Map
The map reference.
Navigation
Public Methods
 MethodDefined By
  
Creates a new Navigation component.
Navigation
Styles
 Style Description Defined By
  
left
Type: Number CSS Inheritance: no
The horizontal distance in pixels from the left edge of the map. The default value is 20 pixels.
Navigation
  
top
Type: Number CSS Inheritance: no
The vertical distance in pixels from the top edge of the map. The default value is 20 pixels.
Navigation
Skin Parts

This component uses skins made up of skin parts. Do not set the skin parts directly. The component's skin sets the skin parts.


 Skin Part Description Defined By
  
slider:spark.components.supportClasses.SliderBase
Required: false Part Type: Static
An optional skin part for the slider
Navigation
  
zoomInButton:spark.components.supportClasses.ButtonBase
Required: false Part Type: Static
An optional skin part for the zoomIn button
Navigation
  
zoomOutButton:spark.components.supportClasses.ButtonBase
Required: false Part Type: Static
An optional skin part for the zoomOut button
Navigation
Skin States

To skin the component, implement a skin that defines the following states. Although you must implement all skin states, a skin state can be empty. An empty skin state specifies no changes to the default skin state.


 Skin State Description Defined By
  
disabled
The disabled state of the Navigation component. Navigation
  
disabledWithSlider
The state of the navigation component when the map has a set of LODs and is disabled. Navigation
  
normal
The default (i.e., "normal ") state of the Navigation component. Navigation
  
normalWithSlider
The state of the navigation component when the map has a set of LODs. Navigation
Property Detail
mapproperty
map:Map

The map reference.

This property can be used as the source for data binding.


Implementation
    public function get map():Map
    public function set map(value:Map):void
Constructor Detail
Navigation()Constructor
public function Navigation()

Creates a new Navigation component.