MapQuest Advantage JavaScript API Reference Documentation

Class MQLinePrimitive

Object
   |
   +--MQObject
         |
         +--MQPrimitive
               |
               +--MQLinePrimitive
Direct Known Subclasses:
MQPolygonPrimitive

class MQLinePrimitive
extends MQPrimitive


Describes linear annotations to be placed on the map. The line is converted into latitude/longitude points so it can be placed in the same geographical location after the map is manipulated.
See:

Defined in mqobjects.js


Field Summary
<private>  MQColorStyle m_Color
          Value to represent the color style to be used
<private>  MQLatLngCollection m_LLArray
          The MQLatLngCollection of coordinates of the Line.
<private>  MQPenStyle m_Style
          Value to represent the pen style to be used
<private>  MQPointCollection m_XYArray
          The MQPointCollection of coordinates of the Line.
   
Fields inherited from class MQPrimitive
m_DrawTrigger, m_CoordinateType
   
Fields inherited from class MQObject
m_xmlDoc, m_xpath
 
Constructor Summary
MQLinePrimitive ()
            Constructs a new MQLinePrimitive object.
 
Method Summary
 String getClassName()
           Returns the text name of this class.
 MQColorStyle getColor()
           Gets the m_Color
 MQLatLngCollection getLatLngs()
           Gets the m_LLArray
 int getObjectVersion()
           Returns the version of this class.
 MQPointCollection getPoints()
           Gets the m_XYArray
 MQPenStyle getStyle()
           Gets the m_Style
 int getWidth()
           Returns the value representing the width of this object.
 void loadXml(<String> strXml)
           Assigns the xml that relates to this object.
 String saveXml()
           Build an xml string that represents this object.
 void setColor(<MQColorStyle> obj)
           Sets the m_Color
 void setLatLngs(<MQLatLngCollection> obj)
           Sets the m_LLArray
 void setStyle(<MQPenStyle> obj)
           Sets the m_Style
 void setWidth(<int> width)
           Sets the value representing the width of this object.
 
Methods inherited from class MQPrimitive
getDrawTrigger, setDrawTrigger, getCoordinateType, setCoordinateType, setKey, getKey, setOpacity, getOpacity
   
Methods inherited from class MQObject
getM_XmlDoc, setM_XmlDoc, getM_Xpath, setM_Xpath, setProperty, getProperty, copy, internalCopy
 

Field Detail

m_Color

<private> MQColorStyle m_Color

m_LLArray

<private> MQLatLngCollection m_LLArray

m_Style

<private> MQPenStyle m_Style

m_XYArray

<private> MQPointCollection m_XYArray

Constructor Detail

MQLinePrimitive

MQLinePrimitive()

Method Detail

getClassName

String getClassName()

getColor

MQColorStyle getColor()

getLatLngs

MQLatLngCollection getLatLngs()

getObjectVersion

int getObjectVersion()

getPoints

MQPointCollection getPoints()

getStyle

MQPenStyle getStyle()

getWidth

int getWidth()

loadXml

void loadXml(<String> strXml)

saveXml

String saveXml()

setColor

void setColor(<MQColorStyle> obj)

setLatLngs

void setLatLngs(<MQLatLngCollection> obj)

setStyle

void setStyle(<MQPenStyle> obj)

setWidth

void setWidth(<int> width)

MapQuest Advantage JavaScript API Reference Documentation

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