Packagecom.mapquest
Classpublic class BestFit
InheritanceBestFit Inheritance MapCommand Inheritance MQObject

Set of features in the Session. For example, if you place 20 points in a FeatureCollection object in your Session, adding a BestFit object to the Session adjusts the MapState object so that the map optimally displays all 20 points.



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 BestFit object.
BestFit
  
getClassName():String
Returns the text name of this class.
BestFit
  
Returns the m_DisplayTypes collection.
BestFit
  
Gets the IncludePrimitives flag
BestFit
  
getKeepCenter():Boolean
Gets the KeepCenter flag
BestFit
  
Returns the version of this class.
BestFit
 Inherited
getProperty(path:String):String
Gets values from xml.
MQObject
  
Returns the ScaleAdjustmentFactor of this object.
BestFit
  
Gets the SnapToZoomLevel flag
BestFit
 Inherited
Create a copy of this object.
MQObject
 Inherited
MQObject
 Inherited
MQObject
  
loadXml(xmlPrm:XML):void
Assigns the xml that relates to this object.
BestFit
 Inherited
readExternal(input:IDataInput):void
MQObject
  
saveXml():XML
Build an xml string that represents this object.
BestFit
  
Sets the m_DisplayTypes collection.
BestFit
 Inherited
Sets the m_Col object.
MapCommand
  
setIncludePrimitives(bFlag:Boolean):void
Sets the IncludePrimitives flag.
BestFit
  
setKeepCenter(bFlag:Boolean):void
Sets the KeepCenter flag.
BestFit
 Inherited
setProperty(path:String, value:Object):String
Sets values in xml.
MQObject
  
setScaleAdjustmentFactor(val:Number):void
Sets the ScaleAdjustmentFactor of this object.
BestFit
  
setSnapToZoomLevel(bFlag:Boolean):void
Sets the SnapToZoomLevel flag.
BestFit
 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
BestFit()constructor
public function BestFit()

Constructs a new BestFit 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.
getDisplayTypes()method 
public function getDisplayTypes():DTCollection

Returns the m_DisplayTypes collection.

Returns
DTCollection — The m_DisplayTypes collection.
getIncludePrimitives()method 
public function getIncludePrimitives():Boolean

Gets the IncludePrimitives flag

Returns
Boolean — true if a IncludePrimitives = 1, false otherwise.
getKeepCenter()method 
public function getKeepCenter():Boolean

Gets the KeepCenter flag

Returns
Boolean — true if a KeepCenter = 1, false otherwise.
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 — strXml the xml to be assigned.
saveXml()method 
public override function saveXml():XML

Build an xml string that represents this object.

Returns
XML — The xml string.
setDisplayTypes()method 
public function setDisplayTypes(col:DTCollection):void

Sets the m_DisplayTypes collection.

Parameters
col:DTCollection — col The collection to set m_DisplayTypes to.
setIncludePrimitives()method 
public function setIncludePrimitives(bFlag:Boolean):void

Sets the IncludePrimitives flag.

Parameters
bFlag:Boolean — bFlag The IncludePrimitives flag
setKeepCenter()method 
public function setKeepCenter(bFlag:Boolean):void

Sets the KeepCenter flag.

Parameters
bFlag:Boolean — bFlag The KeepCenter flag
setScaleAdjustmentFactor()method 
public function setScaleAdjustmentFactor(val:Number):void

Sets the ScaleAdjustmentFactor of this object.

Parameters
val:Number — val 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