|
MapQuest Advantage JavaScript API Reference Documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--MQObject
|
+--MQMapCommand
|
+--MQBestFit
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:
| 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 |
<private> MQDTCollection m_DisplayTypes
| Constructor Detail |
MQBestFit()
| Method Detail |
String getClassName()
MQDTCollection getDisplayTypes()
boolean getIncludePrimitives()
boolean getKeepCenter()
int getObjectVersion()
Double getScaleAdjustmentFactor()
boolean getSnapToZoomLevel()
void loadXml(<String> strXml)
strXml - the xml to be assigned.
String saveXml()
void setDisplayTypes(<MQDTCollection> col)
col - The collection to set m_DisplayTypes to.
void setIncludePrimitives(<Boolean> bFlag)
bFlag - The IncludePrimitives flag
void setKeepCenter(<Boolean> bFlag)
bFlag - The KeepCenter flag
void setScaleAdjustmentFactor(<Double> val)
val - The new ScaleAdjustmentFactor of this object.
void setSnapToZoomLevel(<Boolean> bFlag)
bFlag - The SnapToZoomLevel flag
|
MapQuest Advantage JavaScript API Reference Documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||