MapQuest Advantage JavaScript API Reference Documentation

Class MQPolygonPrimitive

Object
   |
   +--MQObject
         |
         +--MQPrimitive
               |
               +--MQLinePrimitive
                     |
                     +--MQPolygonPrimitive

class MQPolygonPrimitive
extends MQLinePrimitive


Describes polygons to be placed on a map. The polygon is initially defined with a collection of points. These points are the X,Y coordinates of the vertices of the polygon. The coordinates are converted into a latitude/longitude points so the annotation can be placed in the same geographical location after the map is manipulated.
See:

Defined in mqobjects.js


Field Summary
<private>  MQColorStyle m_FillColor
          Value to represent the fill color style to be used
<private>  MQFillStyle m_FillStyle
          Value to represent the color style to be used
   
Fields inherited from class MQLinePrimitive
m_Color, m_Style, m_XYArray, m_LLArray
   
Fields inherited from class MQPrimitive
m_DrawTrigger, m_CoordinateType
   
Fields inherited from class MQObject
m_xmlDoc, m_xpath
 
Constructor Summary
MQPolygonPrimitive ()
            Constructs a new MQPolygonPrimitive object.
 
Method Summary
 String getClassName()
           Returns the text name of this class.
 MQColorStyle getFillColor()
           Gets the m_FillColor
 MQFillStyle getFillStyle()
           Gets the m_FillStyle
 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 setFillColor(<MQColorStyle> obj)
           Sets the m_FillColor
 void setFillStyle(<MQFillStyle> obj)
           Sets the m_FillStyle
 
Methods inherited from class MQLinePrimitive
getColor, setColor, getStyle, setStyle, getPoints, getLatLngs, setLatLngs, setWidth, getWidth
   
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_FillColor

<private> MQColorStyle m_FillColor

m_FillStyle

<private> MQFillStyle m_FillStyle

Constructor Detail

MQPolygonPrimitive

MQPolygonPrimitive()

Method Detail

getClassName

String getClassName()

getFillColor

MQColorStyle getFillColor()

getFillStyle

MQFillStyle getFillStyle()

getObjectVersion

int getObjectVersion()

loadXml

void loadXml(<String> strXml)

saveXml

String saveXml()

setFillColor

void setFillColor(<MQColorStyle> obj)

setFillStyle

void setFillStyle(<MQFillStyle> obj)

MapQuest Advantage JavaScript API Reference Documentation

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