Packagecom.mapquest
Classpublic class BestFitLL
InheritanceBestFitLL Inheritance MapCommand Inheritance MQObject

Calculates the best scale and center point of a map for the given collection Lat/Lngs. Adding a BestFitLL object to the Session adjusts the MapState object so that the map optimally displays all Lat/Lngs in the LatLngCollection set in the BestFitLL object.



Public Properties
 PropertyDefined by
 InheritedCLASS_NAME : String = "MQObject"
[static]
MQObject
Protected Properties
 PropertyDefined by
 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 BestFitLL object.
BestFitLL
  
getClassName():String
Returns the text name of this class.
BestFitLL
  
getKeepCenter():Boolean
Gets the KeepCenter flag
BestFitLL
  
Returns the m_LatLng collection.
BestFitLL
  
Returns the version of this class.
BestFitLL
 Inherited
getProperty(path:String):String
Gets values from xml.
MQObject
  
Returns the ScaleAdjustmentFactor of this object.
BestFitLL
  
Gets the SnapToZoomLevel flag
BestFitLL
 Inherited
Create a copy of this object.
MQObject
 Inherited
MQObject
 Inherited
MQObject
  
loadXml(xmlPrm:XML):void
Assigns the xml that relates to this object.
BestFitLL
 Inherited
readExternal(input:IDataInput):void
MQObject
  
saveXml():XML
Build an xml that represents this object.
BestFitLL
 Inherited
Sets the m_Col object.
MapCommand
  
setKeepCenter(bFlag:Boolean):void
Sets the KeepCenter flag.
BestFitLL
  
Sets the m_LatLng collection.
BestFitLL
 Inherited
setProperty(path:String, value:Object):String
Sets values in xml.
MQObject
  
setScaleAdjustmentFactor(val:Number):void
Sets the ScaleAdjustmentFactor of this object.
BestFitLL
  
setSnapToZoomLevel(bFlag:Boolean):void
Sets the SnapToZoomLevel flag.
BestFitLL
 Inherited
setXpath(xpath:String):void
Sets the m_xpath object.
MQObject
 Inherited
writeExternal(output:IDataOutput):void
MQObject
Protected Methods
 MethodDefined by
 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
BestFitLL()constructor
public function BestFitLL()

Constructs a new BestFitLL object.

See also

Method detail
getClassName()method
public override function getClassName():String

Returns the text name of this class.

Returns
String — The text name of this class.
getKeepCenter()method 
public function getKeepCenter():Boolean

Gets the KeepCenter flag

Returns
Boolean — true if a KeepCenter = 1, false otherwise.
getLatLngs()method 
public function getLatLngs():LatLngCollection

Returns the m_LatLng collection.

Returns
LatLngCollection — The m_LatLng collection.
getObjectVersion()method 
public override function getObjectVersion():Number

Returns the version of this class.

Returns
Number — The version of this class.
getScaleAdjustmentFactor()method 
public function getScaleAdjustmentFactor():Number

Returns the ScaleAdjustmentFactor of this object.

Returns
Number — The new ScaleAdjustmentFactor of this object.
getSnapToZoomLevel()method 
public function getSnapToZoomLevel():Boolean

Gets the SnapToZoomLevel flag

Returns
Boolean — true if a SnapToZoomLevel = 1, false otherwise.
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 an xml that represents this object.

Returns
XML — The xml
setKeepCenter()method 
public function setKeepCenter(bFlag:Boolean):void

Sets the KeepCenter flag.

Parameters
bFlag:Boolean — bFlag The KeepCenter flag
setLatLngs()method 
public function setLatLngs(col:LatLngCollection):void

Sets the m_LatLng collection.

Parameters
col:LatLngCollection — col The collection to set m_LatLng to.
setScaleAdjustmentFactor()method 
public function setScaleAdjustmentFactor(val:Number):void

Sets the ScaleAdjustmentFactor of this object.

Parameters
val:Number — The new ScaleAdjustmentFactor of this object.
setSnapToZoomLevel()method 
public function setSnapToZoomLevel(bFlag:Boolean):void

Sets the SnapToZoomLevel flag.

Parameters
bFlag:Boolean — bFlag The SnapToZoomLevel flag