Packagecom.esri.ags.toolbars
Classpublic class Navigation
InheritanceNavigation Inheritance com.esri.ags.toolbars.BaseToolbar

Toolbar that supports basic navigation, such as pan and zoom.

See also

Live Sample - using NavigationToolbar.


Public Properties
 PropertyDefined by
  isFirstExtent : Boolean
[read-only] When "true", map is at the first extent.
Navigation
  isLastExtent : Boolean
[read-only] When "true", map is at the last extent.
Navigation
  map : Map
The Map that the toolbar is associated with.
Navigation
Public Methods
 MethodDefined by
  
Navigation(map:Map = null)
Creates a new Navigation object.
Navigation
  
activate(navType:String, enableGraphicsLayerMouseEvents:Boolean = false):void
Activates the toolbar for map navigation.
Navigation
  
deactivate():void
Deactivates the toolbar and reactivates map navigation.
Navigation
  
Zoom to full extent of base layer.
Navigation
  
Zoom to next extent in extent history.
Navigation
  
Zoom to previous extent in extent history.
Navigation
Events
 EventSummaryDefined by
   Fires when the extent of the map has changed.Navigation
Public Constants
 ConstantDefined by
  PAN : String = "pan"
[static] Map is panned.
Navigation
  ZOOM_IN : String = "zoomin"
[static] Map zooms in.
Navigation
  ZOOM_OUT : String = "zoomout"
[static] Map zooms out.
Navigation
Property detail
isFirstExtentproperty
isFirstExtent:Boolean  [read-only]

When "true", map is at the first extent.

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

Implementation
    public function get isFirstExtent():Boolean
isLastExtentproperty 
isLastExtent:Boolean  [read-only]

When "true", map is at the last extent.

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

Implementation
    public function get isLastExtent():Boolean
mapproperty 
map:Map  [read-write]

The Map that the toolbar is associated with.

Implementation
    public function get map():Map
    public function set map(value:Map):void
Constructor detail
Navigation()constructor
public function Navigation(map:Map = null)

Creates a new Navigation object.

Parameters
map:Map (default = null) — The Map that the toolbar should be associated with.
Method detail
activate()method
public function activate(navType:String, enableGraphicsLayerMouseEvents:Boolean = false):void

Activates the toolbar for map navigation. Activating the toolbar overrides default map navigation.

Parameters
navType:String — The navigation type - either PAN, ZOOM_IN, or ZOOM_OUT.
 
enableGraphicsLayerMouseEvents:Boolean (default = false) — If true, allows GraphicsLayer to listen for MouseEvents while toolbar is active.
deactivate()method 
public function deactivate():void

Deactivates the toolbar and reactivates map navigation.

zoomToFullExtent()method 
public function zoomToFullExtent():void

Zoom to full extent of base layer.

zoomToNextExtent()method 
public function zoomToNextExtent():void

Zoom to next extent in extent history.

zoomToPrevExtent()method 
public function zoomToPrevExtent():void

Zoom to previous extent in extent history.

Event detail
extentChangeevent 
Event object type: com.esri.ags.events.ExtentEvent
ExtentEvent.type property = com.esri.ags.events.ExtentEvent.EXTENT_CHANGE

Fires when the extent of the map has changed.

Defines the value of the type property of an extentChange event object.

Constant detail
PANconstant
public static const PAN:String = "pan"

Map is panned.

ZOOM_INconstant 
public static const ZOOM_IN:String = "zoomin"

Map zooms in.

ZOOM_OUTconstant 
public static const ZOOM_OUT:String = "zoomout"

Map zooms out.