Packageorg.omoa
Classpublic class MapFrame
InheritanceMapFrame Inheritance flash.display.Sprite

A MapFrame, a map may have more than one, is the visible instance of a map on the screen.



Public Properties
 PropertyDefined By
  bgColor : int
[write-only]
MapFrame
  bounds : BoundingBox
MapFrame
  center : Point
MapFrame
  centerX : Number
MapFrame
  centerY : Number
MapFrame
  height : Number
[override]
MapFrame
  logo : OmoaLogo
MapFrame
  navigation : NavigationButtons
MapFrame
  projection : IProjection
MapFrame
  scale : Number
MapFrame
  transformation : Transform = null
MapFrame
  viewportBounds : BoundingBox
MapFrame
  width : Number
[override]
MapFrame
Public Methods
 MethodDefined By
  
MapFrame(map:Map = null)
MapFrame
  
addLayer(layer:ILayer):void
MapFrame
  
addOverlay(overlay:IOverlay):void
MapFrame
  
MapFrame
  
fitToFrame(e:Event = null):void
MapFrame
  
getLayer(index:int):ILayer
MapFrame
  
getLayerSpriteByID(layerID:String):Sprite
MapFrame
  
moveCenterByScreenCoordinates(x:Number, y:Number):void
MapFrame
  
moveEast(e:Event = null):void
MapFrame
  
moveNorth(e:Event = null):void
MapFrame
  
moveSouth(e:Event = null):void
MapFrame
  
moveWest(e:Event = null):void
MapFrame
  
removeOverlay(overlay:IOverlay):void
MapFrame
  
renderLayer(layerID:String):void
MapFrame
  
MapFrame
  
reRender():void
MapFrame
  
resize(widthNew:Number, heightNew:Number):void
MapFrame
  
setCenterByMapCoordinates(x:Number, y:Number):void
MapFrame
  
setCenterByScreenCoordinates(x:Number, y:Number):void
MapFrame
  
setCenterByStageCoordinates(x:Number, y:Number):void
MapFrame
  
setMap(map:Map):void
MapFrame
  
startDrag(lockCenter:Boolean = false, bounds:Rectangle = null):void
[override]
MapFrame
  
stopDrag():void
[override]
MapFrame
  
zoom(factor:Number = 0.7):void
MapFrame
  
zoomIn(e:Event = null):void
MapFrame
  
zoomOut(e:Event = null):void
MapFrame
Property Detail
bgColorproperty
bgColor:int  [write-only]


Implementation
    public function set bgColor(value:int):void
boundsproperty 
public var bounds:BoundingBox

centerproperty 
public var center:Point

centerXproperty 
centerX:Number


Implementation
    public function get centerX():Number
    public function set centerX(value:Number):void
centerYproperty 
centerY:Number


Implementation
    public function get centerY():Number
    public function set centerY(value:Number):void
heightproperty 
height:Number[override]


Implementation
    public function get height():Number
    public function set height(value:Number):void
logoproperty 
public var logo:OmoaLogo

navigationproperty 
public var navigation:NavigationButtons

projectionproperty 
public var projection:IProjection

scaleproperty 
scale:Number


Implementation
    public function get scale():Number
    public function set scale(value:Number):void
transformationproperty 
public var transformation:Transform = null

viewportBoundsproperty 
public var viewportBounds:BoundingBox

widthproperty 
width:Number[override]


Implementation
    public function get width():Number
    public function set width(value:Number):void
Constructor Detail
MapFrame()Constructor
public function MapFrame(map:Map = null)



Parameters
map:Map (default = null)
Method Detail
addLayer()method
public function addLayer(layer:ILayer):void

Parameters

layer:ILayer

addOverlay()method 
public function addOverlay(overlay:IOverlay):void

Parameters

overlay:IOverlay

countLayers()method 
public function countLayers():int

Returns
int
fitToFrame()method 
public function fitToFrame(e:Event = null):void

Parameters

e:Event (default = null)

getLayer()method 
public function getLayer(index:int):ILayer

Parameters

index:int

Returns
ILayer
getLayerSpriteByID()method 
public function getLayerSpriteByID(layerID:String):Sprite

Parameters

layerID:String

Returns
Sprite
moveCenterByScreenCoordinates()method 
public function moveCenterByScreenCoordinates(x:Number, y:Number):void

Parameters

x:Number
 
y:Number

moveEast()method 
public function moveEast(e:Event = null):void

Parameters

e:Event (default = null)

moveNorth()method 
public function moveNorth(e:Event = null):void

Parameters

e:Event (default = null)

moveSouth()method 
public function moveSouth(e:Event = null):void

Parameters

e:Event (default = null)

moveWest()method 
public function moveWest(e:Event = null):void

Parameters

e:Event (default = null)

removeOverlay()method 
public function removeOverlay(overlay:IOverlay):void

Parameters

overlay:IOverlay

renderLayer()method 
public function renderLayer(layerID:String):void

Parameters

layerID:String

renderOverlays()method 
public function renderOverlays():void

reRender()method 
public function reRender():void

resize()method 
public function resize(widthNew:Number, heightNew:Number):void

Parameters

widthNew:Number
 
heightNew:Number

setCenterByMapCoordinates()method 
public function setCenterByMapCoordinates(x:Number, y:Number):void

Parameters

x:Number
 
y:Number

setCenterByScreenCoordinates()method 
public function setCenterByScreenCoordinates(x:Number, y:Number):void

Parameters

x:Number
 
y:Number

setCenterByStageCoordinates()method 
public function setCenterByStageCoordinates(x:Number, y:Number):void

Parameters

x:Number
 
y:Number

setMap()method 
public function setMap(map:Map):void

Parameters

map:Map

startDrag()method 
override public function startDrag(lockCenter:Boolean = false, bounds:Rectangle = null):void

Parameters

lockCenter:Boolean (default = false)
 
bounds:Rectangle (default = null)

stopDrag()method 
override public function stopDrag():void

zoom()method 
public function zoom(factor:Number = 0.7):void

Parameters

factor:Number (default = 0.7)

zoomIn()method 
public function zoomIn(e:Event = null):void

Parameters

e:Event (default = null)

zoomOut()method 
public function zoomOut(e:Event = null):void

Parameters

e:Event (default = null)