MapQuest Advantage JavaScript API Reference Documentation

Class MQCenter

Object
   |
   +--MQObject
         |
         +--MQMapCommand
               |
               +--MQCenter

class MQCenter
extends MQMapCommand


Centers a map based on a mouse click. The new center point is calculated in pixels and stored in the X and Y coordinates of this object.
See:

Defined in mqobjects.js


Field Summary
<private>  MQPoint m_Center
          Value to represent center of the map
   
Fields inherited from class MQMapCommand
m_Col
   
Fields inherited from class MQObject
m_xmlDoc, m_xpath
 
Constructor Summary
MQCenter ()
            Constructs a new MQCenter object.
 
Method Summary
 MQPoint getCenter()
           Returns the m_Center.
 String getClassName()
           Returns the text name of this class.
 int getObjectVersion()
           Returns the version of this class.
 void loadXml(<String> strXml)
           Assigns the xml that relates to this object.
 String saveXml()
           Build an xml string that represents this object.
 void setCenter(<MQPoint> pt)
           Sets the m_Center.
 
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_Center

<private> MQPoint m_Center

Constructor Detail

MQCenter

MQCenter()

Method Detail

getCenter

MQPoint getCenter()

getClassName

String getClassName()

getObjectVersion

int getObjectVersion()

loadXml

void loadXml(<String> strXml)

saveXml

String saveXml()

setCenter

void setCenter(<MQPoint> pt)

MapQuest Advantage JavaScript API Reference Documentation

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