MapQuest Advantage JavaScript API Reference Documentation

Class MQBestFitLL

Object
   |
   +--MQObject
         |
         +--MQMapCommand
               |
               +--MQBestFitLL

class MQBestFitLL
extends MQMapCommand


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.
See:

Defined in mqobjects.js


Field Summary
<private>  MQLatLngCollection m_LatLng
          Value to represent LatLng Collection
   
Fields inherited from class MQMapCommand
m_Col
   
Fields inherited from class MQObject
m_xmlDoc, m_xpath
 
Constructor Summary
MQBestFitLL ()
            Constructs a new MQBestFitLL object.
 
Method Summary
 String getClassName()
           Returns the text name of this class.
 boolean getKeepCenter()
           Gets the KeepCenter flag
 MQLatLngCollection getLatLngs()
           Returns the m_LatLng collection.
 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 setKeepCenter(<Boolean> bFlag)
           Sets the KeepCenter flag.
 void setLatLngs(<MQLatLngCollection> col)
           Sets the m_LatLng collection.
 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_LatLng

<private> MQLatLngCollection m_LatLng

Constructor Detail

MQBestFitLL

MQBestFitLL()

Method Detail

getClassName

String getClassName()

getKeepCenter

boolean getKeepCenter()

getLatLngs

MQLatLngCollection getLatLngs()

getObjectVersion

int getObjectVersion()

getScaleAdjustmentFactor

Double getScaleAdjustmentFactor()

getSnapToZoomLevel

boolean getSnapToZoomLevel()

loadXml

void loadXml(<String> strXml)

saveXml

String saveXml()

setKeepCenter

void setKeepCenter(<Boolean> bFlag)

setLatLngs

void setLatLngs(<MQLatLngCollection> col)

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