Packagenet.systemeD.halcyon.connection
Classpublic class Trace
InheritanceTrace Inheritance flash.events.EventDispatcher

Implements trace objects loaded from the OSM API. See also potlatch2's utils GpxImporter.as and Importer.as classes, which can handle loading GPX files (and other formats) from arbitrary urls.



Public Properties
 PropertyDefined by
  description : String
[read-only]
Trace
  filename : String
[read-only]
Trace
  id : Number
[read-only]
Trace
  tagsText : String
[read-only]
Trace
Public Methods
 MethodDefined by
  
Trace(masterConnection:XMLConnection)
Create a new trace.
Trace
  
addToMap():void
Trace
  
fromXML(xml:XML):Trace
Create a new trace, from the XML description given by the user/traces call.
Trace
  
Trace
Property detail
descriptionproperty
description:String  [read-only]Implementation
    public function get description():String
filenameproperty 
filename:String  [read-only]Implementation
    public function get filename():String
idproperty 
id:Number  [read-only]Implementation
    public function get id():Number
tagsTextproperty 
tagsText:String  [read-only]Implementation
    public function get tagsText():String
Constructor detail
Trace()constructor
public function Trace(masterConnection:XMLConnection)

Create a new trace.

Parameters
masterConnection:XMLConnection — The authenticated connection to communicate with the server
Method detail
addToMap()method
public function addToMap():void
fromXML()method 
public function fromXML(xml:XML):Trace

Create a new trace, from the XML description given by the user/traces call. This only creates the object itself, the actual trace contents (trkseg etc) are lazily downloaded later.

Parameters
xml:XML

Returns
Trace
removeFromMap()method 
public function removeFromMap():void