| Package | com.afcomponents.umap.overlays |
| Class | public class RouteLayer |
| Inheritance | RouteLayer Layer MapObjectContainer MapObject flash.display.Sprite |
See also
| Property | Defined by | ||
|---|---|---|---|
![]() | asDisplayObject : 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.
| Layer | |
![]() | autoInfo : Boolean
Gets or sets the autInfo flag, which indicates whether to open info window automatically upon mouse click.
| Layer | |
| CONNECT_POLYLINE_STYLE : GeometryStyle
[static]
| RouteLayer | ||
![]() | core : UMap
Returns reference to the core UMap object.
| MapObject | |
![]() | description : String
Gets or sets the description text for the layer.
| Layer | |
![]() | id : uint
Gets or sets the ID of the object.
| MapObject | |
![]() | info : IInfoWindow
Return referens to opened InfoWindow
| Layer | |
![]() | infoParam : Object
Gets or sets the info window param object.
| Layer | |
![]() | infoStyle : Object
Gets or sets the info window style object associated with the Overlay.
| Layer | |
| MARKER_STYLE : Object [static]
| RouteLayer | ||
| message : String [read-only]
| RouteLayer | ||
| mode : String | RouteLayer | ||
![]() | name : String
Gets or sets the name of the object.
| Layer | |
![]() | owner : IMapObjectContainer
Returns reference to the owner container object.
| MapObject | |
| PIN_FADING_TIMEOUT : uint = 1000 [static]
| RouteLayer | ||
| PIN_ICON : Object [static]
| RouteLayer | ||
| pins : Array [read-only]
| RouteLayer | ||
| polylineDrag : Boolean | RouteLayer | ||
| ROUTE_POLYLINE_STYLE : GeometryStyle
[static]
| RouteLayer | ||
| state : String [read-only]
| RouteLayer | ||
![]() | visible : Boolean
Gets or sets the Layer's visibility.
| Layer | |
| Property | Defined by | ||
|---|---|---|---|
| _connectLine : Polyline | RouteLayer | ||
| _destMarker : Marker | RouteLayer | ||
| _error : String | RouteLayer | ||
| _manager : RouteManager | RouteLayer | ||
| _markers : Layer | RouteLayer | ||
| _message : String | RouteLayer | ||
| _mode : String | RouteLayer | ||
| _pin : Object | RouteLayer | ||
| _pins : Array | RouteLayer | ||
| _pinTimeout : uint | RouteLayer | ||
| _polylineDrag : Boolean | RouteLayer | ||
| _results : RouteResults | RouteLayer | ||
| _route_idx : uint | RouteLayer | ||
| _routes : Array | RouteLayer | ||
| _srcMarker : Marker | RouteLayer | ||
| _state : String | RouteLayer | ||
| Method | Defined by | ||
|---|---|---|---|
|
RouteLayer(param:Object = null)
| RouteLayer | ||
![]() |
addObject(object:IMapObject):void
Adds new IMapObject to the container.
| MapObjectContainer | |
![]() |
Adds new IOverlay to this Layer, invalidates and refreshes it.
| Layer | |
![]() |
bringForward(object:IMapObject):void
Moves the attached IMapObject forward in the display list.
| MapObjectContainer | |
![]() |
bringToFront(object:IMapObject):void
Brings the attached IMapObject to the top of the display list.
| MapObjectContainer | |
|
clearAll():void
| RouteLayer | ||
![]() |
clearObjects(filter:Class = null):void
Removes all attached objects.
| MapObjectContainer | |
![]() |
clearOverlays():void
Removes all attached overlays from the layer.
| Layer | |
|
clearPins():void
| RouteLayer | ||
|
clearResults(idx:uint = 0):void
| RouteLayer | ||
![]() |
Creates an exact copy of this Layer with the attached Overlays and returns it to the user.
| Layer | |
|
createMarker(param:Object, index:uint = 0):Marker
| RouteLayer | ||
![]() |
dispose():void
Releases all the resources accuired by the object.
| Layer | |
![]() |
[static]
Creates new Layer from XML object in KML 2.1 format.
| Layer | |
![]() |
Retruns Overlay bounds in geographical coordinates.
| Layer | |
![]() |
getBoundsXY(zoom:Number = 0):Bounds
Retruns Overlay bounds in bitmap coordinates.
| Layer | |
|
getDirections(options:Object = null):void
| RouteLayer | ||
![]() |
getObject(id_or_name:*, filter:Class = null):IMapObject
Searches for an object with specified id or name.
| MapObjectContainer | |
![]() |
getObjectById(id:uint, filter:Class = null):IMapObject
Searches for an object with specified id.
| MapObjectContainer | |
![]() |
getObjectByName(name:String, matchCase:Boolean = false, filter:Class = null):IMapObject
Searches for an object with specified name.
| MapObjectContainer | |
![]() |
getObjects(filter:Class = null):Array
Returns an array of IMapObjects that where added to the container.
| MapObjectContainer | |
![]() |
getOverlay(id_or_name:*):IOverlay
Searches for an IOverlay object with specified id or name.
| Layer | |
![]() |
getOverlays():Array
Returns an array of IOverlay objects that where added to the Layer.
| Layer | |
![]() |
hide():void
Hides the Layer.
| Layer | |
![]() |
invalidate():void
Schedules the Layer for invalidation in 1 frame after this call.
| Layer | |
![]() |
isOwnerVisible():Boolean
Recursevly checks visibility of parent objects
| MapObjectContainer | |
|
messageFromState(state:String = null):String
| RouteLayer | ||
![]() |
redraw():void
Invalidates Overlays attached to the Layer.
| Layer | |
![]() |
refresh(full:Boolean = false):void
Refreshes the position of the Overlays attached to the Layer.
| Layer | |
![]() |
remove():void
Removes the object from the owner container object.
| MapObject | |
|
removeMarker(marker:Marker):void
| RouteLayer | ||
![]() |
removeObject(object:IMapObject):void
Removes IMapObject from the container.
| MapObjectContainer | |
![]() |
removeOverlay(overlay:IOverlay):void
Removes target IOverlay from the Layer.
| Layer | |
|
search(options:Object = null):void
| RouteLayer | ||
![]() |
sendBackward(object:IMapObject):void
Sends the attached IMapObject backward in the display list.
| MapObjectContainer | |
![]() |
sendToBack(object:IMapObject):void
Sends the attached IMapObject to the bottom of the display list.
| MapObjectContainer | |
| RouteLayer | |||
![]() |
setOwner(owner:IMapObjectContainer):void
Adds the object to the specified IMapObjectContainer.
| Layer | |
|
setState(state:String):void
| RouteLayer | ||
![]() |
show():void
Shows the Layer.
| Layer | |
|
startWizard():void
| RouteLayer | ||
|
stopWizard():void
| RouteLayer | ||
![]() |
toString():String
Returns a textual representation of the object.
| MapObject | |
![]() |
toXML(full:Boolean = true, afcTags:Boolean = false):XML
Builds an XML object in KML 2.1 format that describes the Overlay & it's style.
| Layer | |
![]() |
updateMapType(mapType:IMapType):void
Invoked when map type has been changed.
| Layer | |
![]() |
updatePosition(latlng:LatLng):void
Invoked when the map position has been updated.
| Layer | |
![]() |
updateZoom(zoom:Number):void
Invoked when map the zoom has been updated.
| Layer | |
| Method | Defined by | ||
|---|---|---|---|
|
connectPins():void
| RouteLayer | ||
|
createPin():Object
| RouteLayer | ||
|
enterPinState(pin:Object, state:String):void
| RouteLayer | ||
|
enterState(state:String):void
| RouteLayer | ||
|
getPinPosition(pin:Object):LatLng
| RouteLayer | ||
|
getPinState(pin:Object):String
| RouteLayer | ||
|
hitTestPins(tx:int, ty:int):Boolean
| RouteLayer | ||
|
hitTestRoute(tx:int, ty:int):Boolean
| RouteLayer | ||
|
leavePinState(pin:Object, state:String):void
| RouteLayer | ||
|
leaveState(state:String):void
| RouteLayer | ||
| RouteLayer | |||
|
pinFadingTimeout():void
| RouteLayer | ||
|
refreshPinIndex():void
| RouteLayer | ||
|
setErrorState(message:String = ""):void
| RouteLayer | ||
|
setPinState(pin:Object, state:String):void
| RouteLayer | ||
| Constant | Defined by | ||
|---|---|---|---|
| MODE_MANUAL : String = "manual" [static]
| RouteLayer | ||
| MODE_WIZARD : String = "wizard" [static]
| RouteLayer | ||
| STATE_BROWSE : String = "browse" [static]
| RouteLayer | ||
| STATE_DRAGGING : String = "dragging" [static]
| RouteLayer | ||
| STATE_ERROR : String = "error" [static]
| RouteLayer | ||
| STATE_IDLE : String = "idle" [static]
| RouteLayer | ||
| STATE_MANUAL : String = "manual" [static]
| RouteLayer | ||
| STATE_POINTS : String = "points" [static]
| RouteLayer | ||
| STATE_SEARCH : String = "search" [static]
| RouteLayer | ||
| Constant | Defined by | ||
|---|---|---|---|
| PIN_STATE_DRAGGING : String = "pinDragging" [static]
| RouteLayer | ||
| PIN_STATE_FADING : String = "pinFading" [static]
| RouteLayer | ||
| PIN_STATE_FIXED : String = "pinFixed" [static]
| RouteLayer | ||
| PIN_STATE_INVISIBLE : String = "pinInivisible" [static]
| RouteLayer | ||
| PIN_STATE_NULL : String = "pinNull" [static]
| RouteLayer | ||
| PIN_STATE_VISIBLE : String = "pinVisible" [static]
| RouteLayer | ||
| _connectLine | property |
protected var _connectLine:Polyline
| CONNECT_POLYLINE_STYLE | property |
public static var CONNECT_POLYLINE_STYLE:GeometryStyle
| _destMarker | property |
protected var _destMarker:Marker
| _error | property |
protected var _error:String
| _manager | property |
protected var _manager:RouteManager
| _markers | property |
protected var _markers:Layer
| MARKER_STYLE | property |
public static var MARKER_STYLE:Object
| _message | property |
protected var _message:String
| message | property |
message:String [read-only]Implementation
public function get message():String
| _mode | property |
protected var _mode:String
| mode | property |
mode:String [read-write]Implementation
public function get mode():String
public function set mode(value:String):void
| _pin | property |
protected var _pin:Object
| PIN_FADING_TIMEOUT | property |
public static var PIN_FADING_TIMEOUT:uint = 1000
| PIN_ICON | property |
public static var PIN_ICON:Object
| _pins | property |
protected var _pins:Array
| pins | property |
pins:Array [read-only]Implementation
public function get pins():Array
| _pinTimeout | property |
protected var _pinTimeout:uint
| _polylineDrag | property |
protected var _polylineDrag:Boolean
| polylineDrag | property |
polylineDrag:Boolean [read-write]Implementation
public function get polylineDrag():Boolean
public function set polylineDrag(value:Boolean):void
| _results | property |
protected var _results:RouteResults
| _route_idx | property |
protected var _route_idx:uint
| ROUTE_POLYLINE_STYLE | property |
public static var ROUTE_POLYLINE_STYLE:GeometryStyle
| _routes | property |
protected var _routes:Array
| _srcMarker | property |
protected var _srcMarker:Marker
| _state | property |
protected var _state:String
| state | property |
state:String [read-only]Implementation
public function get state():String
| RouteLayer | () | constructor |
public function RouteLayer(param:Object = null)Parameters
param:Object (default = null) |
| clearAll | () | method |
public function clearAll():void
| clearPins | () | method |
public function clearPins():void
| clearResults | () | method |
public function clearResults(idx:uint = 0):voidParameters
idx:uint (default = 0) |
| connectPins | () | method |
protected function connectPins():void
| createMarker | () | method |
public function createMarker(param:Object, index:uint = 0):MarkerParameters
param:Object |
|
index:uint (default = 0) |
Marker |
| createPin | () | method |
protected function createPin():Object
Returns
Object |
| enterPinState | () | method |
protected function enterPinState(pin:Object, state:String):voidParameters
pin:Object |
|
state:String |
| enterState | () | method |
protected function enterState(state:String):voidParameters
state:String |
| getDirections | () | method |
public function getDirections(options:Object = null):voidParameters
options:Object (default = null) |
| getPinPosition | () | method |
| getPinState | () | method |
protected function getPinState(pin:Object):StringParameters
pin:Object |
String |
| hitTestPins | () | method |
protected function hitTestPins(tx:int, ty:int):BooleanParameters
tx:int |
|
ty:int |
Boolean |
| hitTestRoute | () | method |
protected function hitTestRoute(tx:int, ty:int):BooleanParameters
tx:int |
|
ty:int |
Boolean |
| leavePinState | () | method |
protected function leavePinState(pin:Object, state:String):voidParameters
pin:Object |
|
state:String |
| leaveState | () | method |
protected function leaveState(state:String):voidParameters
state:String |
| mapClick | () | method |
| messageFromState | () | method |
public function messageFromState(state:String = null):StringParameters
state:String (default = null) |
String |
| pinFadingTimeout | () | method |
protected function pinFadingTimeout():void
| refreshPinIndex | () | method |
protected function refreshPinIndex():void
| removeMarker | () | method |
| search | () | method |
public function search(options:Object = null):voidParameters
options:Object (default = null) |
| setErrorState | () | method |
protected function setErrorState(message:String = ""):voidParameters
message:String (default = "") |
| setMarker | () | method |
public function setMarker(marker:Marker, index:uint = 0):voidParameters
marker:Marker |
|
index:uint (default = 0) |
| setPinState | () | method |
protected function setPinState(pin:Object, state:String):voidParameters
pin:Object |
|
state:String |
| setState | () | method |
public function setState(state:String):voidParameters
state:String |
| startWizard | () | method |
public function startWizard():void
| stopWizard | () | method |
public function stopWizard():void
| MODE_MANUAL | constant |
public static const MODE_MANUAL:String = "manual"
| MODE_WIZARD | constant |
public static const MODE_WIZARD:String = "wizard"
| PIN_STATE_DRAGGING | constant |
protected static const PIN_STATE_DRAGGING:String = "pinDragging"
| PIN_STATE_FADING | constant |
protected static const PIN_STATE_FADING:String = "pinFading"
| PIN_STATE_FIXED | constant |
protected static const PIN_STATE_FIXED:String = "pinFixed"
| PIN_STATE_INVISIBLE | constant |
protected static const PIN_STATE_INVISIBLE:String = "pinInivisible"
| PIN_STATE_NULL | constant |
protected static const PIN_STATE_NULL:String = "pinNull"
| PIN_STATE_VISIBLE | constant |
protected static const PIN_STATE_VISIBLE:String = "pinVisible"
| STATE_BROWSE | constant |
public static const STATE_BROWSE:String = "browse"
| STATE_DRAGGING | constant |
public static const STATE_DRAGGING:String = "dragging"
| STATE_ERROR | constant |
public static const STATE_ERROR:String = "error"
| STATE_IDLE | constant |
public static const STATE_IDLE:String = "idle"
| STATE_MANUAL | constant |
public static const STATE_MANUAL:String = "manual"
| STATE_POINTS | constant |
public static const STATE_POINTS:String = "points"
| STATE_SEARCH | constant |
public static const STATE_SEARCH:String = "search"