OpenLayers.Geometry.Curve - OpenLayers

# OpenLayers. Geometry. Curve

A Curve is a MultiPoint, whose points are assumed to be connected. To this end, we provide a “getLength()” function, which iterates through the points, summing the distances between them.

#### Inherits

- OpenLayers.Geometry.MultiPoint

Summary

OpenLayers. Geometry. Curve | A Curve is a MultiPoint, whose points are assumed to be connected.
Properties |
componentTypes | {Array(String)} An array of class names representing the types of components that the collection can include.
Constructor |
OpenLayers. Geometry. Curve |
Functions |
getLength | {Float} The length of the curve

### Properties

### componentTypes

{Array(String)} An array of class names representing the types of components that the collection can include. A null value means the component types are not restricted.

### Constructor

### OpenLayers. Geometry. Curve

#### Parameters

point | {Array(OpenLayers.Geometry.Point)}

### Functions

### getLength

> getLength: function()

#### Returns

{Float} The length of the curve

> getLength: function()

{Float} The length of the curve
MultiPoint is a collection of Points.
Point geometry class.
Close