Packagecom.ammap.mapClasses
Classpublic class ZoomControl
InheritanceZoomControl Inheritance mx.core.UIComponent

Zoom control displays zoom and pan controls on the map



Public Properties
 PropertyDefined by
  fixed : Boolean
if fixed is set to true, user won't be able to drag the zoom control (dragging is only possible by clicking and dragging home icon).
ZoomControl
  maxZoomLevel : Number
Max zoom level, in percents.
ZoomControl
  minZoomLevel : Number
Min zoom level, in percents.
ZoomControl
  panControlEnabled : Boolean
Specifies if pan control is enabled
ZoomControl
  panStepSize : Number
panStepSize specifies by how many percents of a stage width the map will be moved when user clicks on pan arrows
ZoomControl
  zoomControlEnabled : Boolean
Specifies if zoom control is enabled
ZoomControl
  zoomFactor : Number
zoomFactor is a number by which current scale will be multiplied when user clicks on zoom in button or divided when user clicks on zoom-out button
ZoomControl
Public Methods
 MethodDefined by
  
Constructor.
ZoomControl
Styles
 StyleDescriptionDefined by
  
buttonBorderAlpha
Type: Number   CSS Inheritance: yes
Button border opacity
ZoomControl
  
buttonBorderColor
Type: uint   CSS Inheritance: yes
Button border color
ZoomControl
  
buttonBorderThickness
Type: NUmber   CSS Inheritance: yes
Button border thickness
ZoomControl
  
buttonFillAlphas
Type: Array   CSS Inheritance: yes
Button fill opacity array
ZoomControl
  
buttonFillColors
Type: Array   CSS Inheritance: yes
Button fill colors array
ZoomControl
  
buttonIconColor
Type: uint   Format: Color   CSS Inheritance: yes
Button icon color The default value is 0xFFFFFF.
ZoomControl
  
buttonRollOverColor
Type: uint   Format: Color   CSS Inheritance: yes
Button roll-over color
ZoomControl
  
buttonSize
Type: uint   CSS Inheritance: yes
Size of a button
ZoomControl
  
homeIconColor
Type: uint   Format: Color   CSS Inheritance: yes
Home icon color The default value is 0xFFFFFF.
ZoomControl
  
zoomBackgroundAlpha
Type: Number   CSS Inheritance: yes
Background opacity
ZoomControl
  
zoomBackgroundColor
Type: uint   Format: Color   CSS Inheritance: yes
Background color
ZoomControl
  
zoomGridAlpha
Type: Number   CSS Inheritance: yes
Grid opacity
ZoomControl
  
zoomGridColor
Type: uint   Format: Color   CSS Inheritance: yes
Grid color
ZoomControl
  
zoomGridHeight
Type: uint   CSS Inheritance: yes
Height of a grid
ZoomControl
Property detail
fixedproperty
fixed:Boolean  [read-write]

if fixed is set to true, user won't be able to drag the zoom control (dragging is only possible by clicking and dragging home icon).

The default value is false.

Implementation
    public function get fixed():Boolean
    public function set fixed(value:Boolean):void
maxZoomLevelproperty 
maxZoomLevel:Number  [read-write]

Max zoom level, in percents.

The default value is 6400.

Implementation
    public function get maxZoomLevel():Number
    public function set maxZoomLevel(value:Number):void
minZoomLevelproperty 
minZoomLevel:Number  [read-write]

Min zoom level, in percents.

The default value is 100.

Implementation
    public function get minZoomLevel():Number
    public function set minZoomLevel(value:Number):void
panControlEnabledproperty 
panControlEnabled:Boolean  [read-write]

Specifies if pan control is enabled

The default value is true.

Implementation
    public function get panControlEnabled():Boolean
    public function set panControlEnabled(value:Boolean):void
panStepSizeproperty 
panStepSize:Number  [read-write]

panStepSize specifies by how many percents of a stage width the map will be moved when user clicks on pan arrows

The default value is 10.

Implementation
    public function get panStepSize():Number
    public function set panStepSize(value:Number):void
zoomControlEnabledproperty 
zoomControlEnabled:Boolean  [read-write]

Specifies if zoom control is enabled

The default value is true.

Implementation
    public function get zoomControlEnabled():Boolean
    public function set zoomControlEnabled(value:Boolean):void
zoomFactorproperty 
zoomFactor:Number  [read-write]

zoomFactor is a number by which current scale will be multiplied when user clicks on zoom in button or divided when user clicks on zoom-out button

The default value is 2.

Implementation
    public function get zoomFactor():Number
    public function set zoomFactor(value:Number):void
Constructor detail
ZoomControl()constructor
public function ZoomControl()

Constructor.