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.

Inherits from

Summary
A LineString is a Curve which, once two points have been added to it, can never be less than two points long.
Create a new LineString geometry
Only allows removal of a point if there are three or more points in the linestring.

Constructor

OpenLayers. Geometry. LineString

Create a new LineString geometry

Parameters

points{Array(OpenLayers.Geometry.Point)} An array of points used to generate the linestring

Functions

removeComponent

removeComponent: function(point)

Only allows removal of a point if there are three or more points in the linestring.  (otherwise the result would be just a single point)

Parameters

point{OpenLayers.Geometry.Point} The point to be removed
removeComponent: function(point)
Only allows removal of a point if there are three or more points in the linestring.
A Curve is a MultiPoint, whose points are assumed to be connected.
Point geometry class.