Yahoo! UI Library

CHZERO  1.0.0

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

Class OpenLayers.Geometry.LineString - extends OpenLayers.Geometry.Curve

Known Subclasses:
OpenLayers.Geometry.LinearRing
OpenLayers.Geometry.LineString
A LineString is a Curve which, once two points have been added to it, can never be less than two points long.

Constructor

OpenLayers.Geometry.LineString ( points )
Parameters:
points <Array(OpenLayers.Geometry.Point)>

Properties inherited from OpenLayers.Geometry.Collection:

Methods

distanceTo

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

getVertices

Array getVertices ( nodes )
Parameters:
nodes <Boolean>
Returns: Array
vertices

intersects

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

removeComponents

Boolean removeComponents ( components )
Parameters:
components <Array(OpenLayers.Geometry)>
Returns: Boolean
was removed

simplify

OpenLayers.Geometry.LineString simplify ( tolerance )
Parameters:
tolerance <number>
Returns: OpenLayers.Geometry.LineString
LineString


Copyright © 2012 Yahoo! Inc. All rights reserved.