Class DMCPoly
Object
|
+--DMCPoly
-
Direct Known Subclasses:
-
DMCLineString, DMCPolygon
- class
DMCPoly
Defined in APIJS.js
|
Field Summary |
Object |
points
|
string |
TYPE
Geometry type of the object |
|
Constructor Summary |
DMCPoly(pointArray, type)
|
points
Object points
TYPE
string TYPE
Geometry type of the object
DMCPoly
DMCPoly(pointArray, type)
getArea
int getArea()
Returns the area of the line string. Always 0
Returns:
the area of the line string. Always 0
getBounds
DMCBounds getBounds()
Returns a DMCBounds that contains the polygon
Returns:
a DMCBounds that contains the polygon
getHandles
Object getHandles()
getLength
int getLength()
Returns the length of the line string
Returns:
the length of the line string
getPoints
DMCPoint[] getPoints()
Returns all the points that comprise the line string.
Returns:
all the points that comprise the line string.
getVertex
DMCPoint getVertex( <int> index)
Returns the vertex at the specified index
getVertexCount
int getVertexCount()
Returns the vertext count
insertVertex
Object insertVertex(newPt, index)
modifyByHandle
Object modifyByHandle(handle, newPosPt, anchorPt)
projectToPixels
Object projectToPixels(map)
setPoints
void setPoints(<DMCPoint[]> pts)
Sets the points that comprise the line string.
Documentation generated by
JSDoc on Mon Nov 24 17:54:35 2008