Packagecom.afcomponents.umap.overlays
Classpublic class TileLayerOverlay
InheritanceTileLayerOverlay Inheritance MapObjectContainer Inheritance MapObject Inheritance flash.display.Sprite
ImplementsIOverlay

An Overlay wrapper class for ITileLayer interface. With it you can create a tiled ground overlays that will work with most



Public Properties
 PropertyDefined by
 InheritedasDisplayObject : DisplayObject
Returns reference to the object as a DisplayObject instance.
MapObject
  autoCloseInfo : Boolean
Gets or sets the autCloseInfo flag, which indicates whether to close info window automatically when user clicks somewhere on the map.
TileLayerOverlay
  autoInfo : Boolean
Gets or sets the autInfo flag, which indicates whether to open info window automatically upon mouse click.
TileLayerOverlay
 Inheritedcore : UMap
Returns reference to the core UMap object.
MapObject
 Inheritedid : uint
Gets or sets the ID of the object.
MapObject
  info : IInfoWindow
[read-only] Return referens to opened InfoWindow
TileLayerOverlay
 Inheritedname : String
Gets or sets the name of the object.
MapObject
 Inheritedowner : IMapObjectContainer
Returns reference to the owner container object.
MapObject
Public Methods
 MethodDefined by
  
TileLayerOverlay(param:Object)
TileLayerOverlay
 Inherited
addObject(object:IMapObject):void
Adds new IMapObject to the container.
MapObjectContainer
 Inherited
bringForward(object:IMapObject):void
Moves the attached IMapObject forward in the display list.
MapObjectContainer
 Inherited
bringToFront(object:IMapObject):void
Brings the attached IMapObject to the top of the display list.
MapObjectContainer
 Inherited
clearObjects(filter:Class = null):void
Removes all attached objects.
MapObjectContainer
  
dispose():void
Releases all the resources accuired by the object.
TileLayerOverlay
 Inherited
getObject(id_or_name:*, filter:Class = null):IMapObject
Searches for an object with specified id or name.
MapObjectContainer
 Inherited
getObjectById(id:uint, filter:Class = null):IMapObject
Searches for an object with specified id.
MapObjectContainer
 Inherited
getObjectByName(name:String, matchCase:Boolean = false, filter:Class = null):IMapObject
Searches for an object with specified name.
MapObjectContainer
 Inherited
getObjects(filter:Class = null):Array
Returns an array of IMapObjects that where added to the container.
MapObjectContainer
  
hide():void
Hides overlay.
TileLayerOverlay
 Inherited
isOwnerVisible():Boolean
Recursevly checks visibility of parent objects
MapObjectContainer
  
refresh(full:Boolean = false):void
Refreshes overlay position on the map.
TileLayerOverlay
 Inherited
remove():void
Removes the object from the owner container object.
MapObject
 Inherited
removeObject(object:IMapObject):void
Removes IMapObject from the container.
MapObjectContainer
  
Resets all the created segments for the layer.
TileLayerOverlay
 Inherited
sendBackward(object:IMapObject):void
Sends the attached IMapObject backward in the display list.
MapObjectContainer
 Inherited
sendToBack(object:IMapObject):void
Sends the attached IMapObject to the bottom of the display list.
MapObjectContainer
 Inherited
Adds the object to the specified IMapObjectContainer.
MapObjectContainer
  
setScale(factor:Number):void
Sets scaling factor for the layer.
TileLayerOverlay
  
setViewport(width:uint = 0, height:uint = 0):void
Changes the dimensions of the viewport.
TileLayerOverlay
  
show():void
Shows overlay.
TileLayerOverlay
 Inherited
toString():String
Returns a textual representation of the object.
MapObject
  
updateMapType(mapType:IMapType):void
Invoked when map type has been changed.
TileLayerOverlay
  
updatePosition(latlng:LatLng):void
Invoked when map center has been updated.
TileLayerOverlay
  
updateZoom(zoom:Number):void
Invoked when map zoom has been updated.
TileLayerOverlay
Property detail
autoCloseInfoproperty
autoCloseInfo:Boolean  [read-write]

Gets or sets the autCloseInfo flag, which indicates whether to close info window automatically when user clicks somewhere on the map.

Implementation
    public function get autoCloseInfo():Boolean
    public function set autoCloseInfo(value:Boolean):void
autoInfoproperty 
autoInfo:Boolean  [read-write]

Gets or sets the autInfo flag, which indicates whether to open info window automatically upon mouse click.

Implementation
    public function get autoInfo():Boolean
    public function set autoInfo(value:Boolean):void
infoproperty 
info:IInfoWindow  [read-only]

Return referens to opened InfoWindow

Implementation
    public function get info():IInfoWindow
Constructor detail
TileLayerOverlay()constructor
public function TileLayerOverlay(param:Object)

Parameters
param:Object
Method detail
dispose()method
public override function dispose():void

Releases all the resources accuired by the object.

hide()method 
public function hide():void

Hides overlay. Fires OverlayEvent.HIDE & OverlayEvent.CHAGNED events if visibility has been changed.

refresh()method 
public function refresh(full:Boolean = false):void

Refreshes overlay position on the map. If the full paramter is set to true then bitmap coordinates for this overlay should be recalculated.

Parameters
full:Boolean (default = false) — Indicates whether to recalculate bitmap coordinats.
resetSegments()method 
public function resetSegments():void

Resets all the created segments for the layer.

setScale()method 
public function setScale(factor:Number):void

Sets scaling factor for the layer.

Parameters
factor:Number
setViewport()method 
public function setViewport(width:uint = 0, height:uint = 0):void

Changes the dimensions of the viewport.

Parameters
width:uint (default = 0)
 
height:uint (default = 0)
show()method 
public function show():void

Shows overlay. Fires OverlayEvent.SHOW & OverlayEvent.CHAGNED events if visibility has been changed.

updateMapType()method 
public function updateMapType(mapType:IMapType):void

Invoked when map type has been changed.

Parameters
mapType:IMapType — Reference to the new map type.
updatePosition()method 
public function updatePosition(latlng:LatLng):void

Invoked when map center has been updated.

Parameters
latlng:LatLng — Geographical coordinates of the new map center.
updateZoom()method 
public function updateZoom(zoom:Number):void

Invoked when map zoom has been updated.

Parameters
zoom:Number — New zoom level.