| Package | com.ammap.mapClasses |
| Class | public class ZoomControl |
| Inheritance | ZoomControl mx.core.UIComponent |
| Property | Defined 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 | ||
| Method | Defined by | ||
|---|---|---|---|
|
Constructor.
| ZoomControl | ||
| fixed | property |
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.
public function get fixed():Boolean
public function set fixed(value:Boolean):void
| maxZoomLevel | property |
maxZoomLevel:Number [read-write]Max zoom level, in percents.
The default value is 6400.
public function get maxZoomLevel():Number
public function set maxZoomLevel(value:Number):void
| minZoomLevel | property |
minZoomLevel:Number [read-write]Min zoom level, in percents.
The default value is 100.
public function get minZoomLevel():Number
public function set minZoomLevel(value:Number):void
| panControlEnabled | property |
panControlEnabled:Boolean [read-write]Specifies if pan control is enabled
The default value is true.
public function get panControlEnabled():Boolean
public function set panControlEnabled(value:Boolean):void
| panStepSize | property |
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.
public function get panStepSize():Number
public function set panStepSize(value:Number):void
| zoomControlEnabled | property |
zoomControlEnabled:Boolean [read-write]Specifies if zoom control is enabled
The default value is true.
public function get zoomControlEnabled():Boolean
public function set zoomControlEnabled(value:Boolean):void
| zoomFactor | property |
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.
public function get zoomFactor():Number
public function set zoomFactor(value:Number):void
| ZoomControl | () | constructor |
public function ZoomControl()Constructor.