Yahoo! UI Library

CHZERO  1.0.0

Yahoo! UI Library > CHZERO > OpenLayers.Geometry.Polygon
Search:
 
Filters

Class OpenLayers.Geometry.Polygon - extends OpenLayers.Geometry.Collection

OpenLayers.Geometry.Polygon
Polygon is a collection of Geometry.LinearRings.

Constructor

OpenLayers.Geometry.Polygon ( components )
Parameters:
components <Array(OpenLayers.Geometry.LinearRing)>

Properties inherited from OpenLayers.Geometry.Collection:

Methods

createRegularPolygon

void createRegularPolygon ( origin , radius , sides , rotation )
Parameters:
origin <OpenLayers.Geometry.Point>
radius <Float>
sides <Integer>
rotation <Float>

distanceTo

Number | Object distanceTo ( geometry , options )
Parameters:
geometry <OpenLayers.Geometry>
options <Object>
Returns: Number | Object
distance

getArea

Float getArea ( )
Returns: Float
area

getGeodesicArea

Float getGeodesicArea ( projection )
Parameters:
projection <OpenLayers.Projection>
Returns: Float
geodesic area

intersects

Boolean intersects ( geometry )
Parameters:
geometry <OpenLayers.Geometry>
Returns: Boolean
intersects


Copyright © 2012 Yahoo! Inc. All rights reserved.