MapQuest Advantage JavaScript API Reference Documentation

Class MQBestFit

Object
   |
   +--MQObject
         |
         +--MQMapCommand
               |
               +--MQBestFit

class MQBestFit
extends MQMapCommand


Calculates the best scale and center point of a map for the given 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.
See:

Defined in mqobjects.js


Field Summary
<private>  MQDTCollection m_DisplayTypes
          Value to represent DT Collection
   
Fields inherited from class MQMapCommand
m_Col
   
Fields inherited from class MQObject
m_xmlDoc, m_xpath
 
Constructor Summary
MQBestFit ()
            Constructs a new MQBestFit object.
 
Method Summary
 String getClassName()
           Returns the text name of this class.
 MQDTCollection getDisplayTypes()
           Returns the m_DisplayTypes collection.
 boolean getIncludePrimitives()
           Gets the IncludePrimitives flag
 boolean getKeepCenter()
           Gets the KeepCenter flag
 int getObjectVersion()
           Returns the version of this class.
 Double getScaleAdjustmentFactor()
           Returns the ScaleAdjustmentFactor of this object.
 boolean getSnapToZoomLevel()
           Gets the SnapToZoomLevel flag
 void loadXml(<String> strXml)
           Assigns the xml that relates to this object.
 String saveXml()
           Build an xml string that represents this object.
 void setDisplayTypes(<MQDTCollection> col)
           Sets the m_DisplayTypes collection.
 void setIncludePrimitives(<Boolean> bFlag)
           Sets the IncludePrimitives flag.
 void setKeepCenter(<Boolean> bFlag)
           Sets the KeepCenter flag.
 void setScaleAdjustmentFactor(<Double> val)
           Sets the ScaleAdjustmentFactor of this object.
 void setSnapToZoomLevel(<Boolean> bFlag)
           Sets the SnapToZoomLevel flag.
 
Methods inherited from class MQMapCommand
getFeatureSpecifiers, setFeatureSpecifiers
   
Methods inherited from class MQObject
getM_XmlDoc, setM_XmlDoc, getM_Xpath, setM_Xpath, setProperty, getProperty, copy, internalCopy
 

Field Detail

m_DisplayTypes

<private> MQDTCollection m_DisplayTypes

Constructor Detail

MQBestFit

MQBestFit()

Method Detail

getClassName

String getClassName()

getDisplayTypes

MQDTCollection getDisplayTypes()

getIncludePrimitives

boolean getIncludePrimitives()

getKeepCenter

boolean getKeepCenter()

getObjectVersion

int getObjectVersion()

getScaleAdjustmentFactor

Double getScaleAdjustmentFactor()

getSnapToZoomLevel

boolean getSnapToZoomLevel()

loadXml

void loadXml(<String> strXml)

saveXml

String saveXml()

setDisplayTypes

void setDisplayTypes(<MQDTCollection> col)

setIncludePrimitives

void setIncludePrimitives(<Boolean> bFlag)

setKeepCenter

void setKeepCenter(<Boolean> bFlag)

setScaleAdjustmentFactor

void setScaleAdjustmentFactor(<Double> val)

setSnapToZoomLevel

void setSnapToZoomLevel(<Boolean> bFlag)

MapQuest Advantage JavaScript API Reference Documentation

Documentation generated by JSDoc on Tue Oct 16 08:04:12 2007