Packagecom.mapquest
Classpublic class LatLngCollection
InheritanceLatLngCollection Inheritance MQObjectCollection Inheritance MQObject
ImplementsIPointLLCollection

The first LatLng in the collection is expected to be a latlng but the rest are assumed to be deltas from the first. When adding the latlngs or loading from xml the user will need to make the calculations.

See also

LatLng
DistanceUnits


Public Properties
 PropertyDefined by
 InheritedCLASS_NAME : String = "MQObject"
[static]
MQObject
Protected Properties
 PropertyDefined by
 InheriteditemXpath : String = "Item"
Value to represent the xpath of items in this collections
MQObjectCollection
 Inheritedm_items : Array
Value to represent collection
MQObjectCollection
 InheritedobjectVersion : Number = 0
Value to represent the version of this object
MQObject
 Inheritedxml : XML = null
MQObject
 Inheritedxpath : String
MQObject
Public Methods
 MethodDefined by
  
Constructs a new LatLngCollection object.
LatLngCollection
 Inherited
add(obj:MQObject):int
Adds this object to the array if it has not reached the maximum size.
MQObjectCollection
 Inherited
addInteger(integer:int):int
Adds this integer to the array if it has not reached the maximum size.
MQObjectCollection
  
addPointLL(obj:IPointLL):void
LatLngCollection
 Inherited
addString(str:String):int
Adds this string to the array if it has not reached the maximum size.
MQObjectCollection
 Inherited
append(collection:MQObjectCollection):void
Append a collection to this one
MQObjectCollection
 Inherited
contains(item:MQObject):Boolean
Check if the array contains a specific object
MQObjectCollection
  
LatLngCollection
 Inherited
get(i:Number):*
Get the item at postion i
MQObjectCollection
 Inherited
getAt(i:Number):*
MQObjectCollection
 Inherited
getById(strId:String):MQObject
Return the object, if it exists, with the id strId
MQObjectCollection
  
getClassName():String
Returns the text name of this class.
LatLngCollection
 Inherited
getItemXpath():String
Returns the m_itemXpath string.
MQObjectCollection
  
Returns the version of this class.
LatLngCollection
  
getPointLL(i:Number):IPointLL
LatLngCollection
 Inherited
getProperty(path:String):String
Gets values from xml.
MQObject
 Inherited
getSize():int
Get the maximum size.
MQObjectCollection
 Inherited
Accessor method for ValidClassName
MQObjectCollection
 Inherited
Create a copy of this object.
MQObject
 Inherited
MQObject
 Inherited
MQObject
 Inherited
isValidObject(obj:Object):Boolean
Is this object a valid object for this collection.
MQObjectCollection
  
loadXml(xmlPrm:XML):void
Assigns the xml that relates to this object.
LatLngCollection
 Inherited
readExternal(input:IDataInput):void
MQObject
 Inherited
remove(iIndex:int):*
Remove the item at postion iIndex
MQObjectCollection
 Inherited
removeAll():void
Remove all the items in the array
MQObjectCollection
 Inherited
removeItem(item:MQObject):void
Remove an item by it's pointer.
MQObjectCollection
  
saveXml():XML
Build xml that represents this object.
LatLngCollection
 Inherited
set(i:Number, newO:MQObject):MQObject
Replace an object at position i and return the old object.
MQObjectCollection
 Inherited
setItemXpath(itemXpath:String):void
Sets the m_itemXpath string.
MQObjectCollection
 Inherited
setProperty(path:String, value:Object):String
Sets values in xml.
MQObject
 Inherited
setValidClassName(className:String):void
Accessor method for ValidClassName
MQObjectCollection
 Inherited
setXpath(xpath:String):void
Sets the m_xpath object.
MQObject
 Inherited
writeExternal(output:IDataOutput):void
MQObject
Protected Methods
 MethodDefined by
 Inherited
getItems():Array
Accessor method for m_items
MQObjectCollection
 Inherited
getXML():XML
Returns the m_xmlDoc object.
MQObject
 Inherited
getXpath():String
Returns the xpath string.
MQObject
 Inherited
setXML(xml:XML):void
Sets the m_xmlDoc object.
MQObject
Constructor detail
LatLngCollection()constructor
public function LatLngCollection()

Constructs a new LatLngCollection object.

Method detail
addPointLL()method
public function addPointLL(obj:IPointLL):voidParameters
obj:IPointLL
containsPointLL()method 
public function containsPointLL(obj:IPointLL):BooleanParameters
obj:IPointLL

Returns
Boolean
getClassName()method 
public override function getClassName():String

Returns the text name of this class.

Returns
String — The text name of this class.
getObjectVersion()method 
public override function getObjectVersion():Number

Returns the version of this class.

Returns
Number — The version of this class.
getPointLL()method 
public function getPointLL(i:Number):IPointLLParameters
i:Number

Returns
IPointLL
loadXml()method 
public override function loadXml(xmlPrm:XML):void

Assigns the xml that relates to this object.

Parameters
xmlPrm:XML — the xml to be assigned.
saveXml()method 
public override function saveXml():XML

Build xml that represents this object.

Returns
XML — The xml.