OpenLayers. Geometry. MultiPoint

MultiPoint is a collection of Points.  Create a new instance with the OpenLayers.Geometry.MultiPoint constructor.

Inherits from

Functions

OpenLayers. Geometry. MultiPoint

Create a new MultiPoint Geometry

Parameters

componentsArray({OpenLayers.Geometry.Point})

Return

{OpenLayers.Geometry.MultiPoint}

addPoint

addPoint: function(point,
index)

Wrapper for OpenLayers.Geometry.Collection.addComponent

Parameters

point{OpenLayers.Geometry.Point} Point to be added
index{Integer} Optional index

addPoint

Wrapper for OpenLayers.Geometry.Collection.removeComponent

Parameters

point{OpenLayers.Geometry.Point} Point to be removed

Constants

CLASS_NAME

{String} Name of class.

addPoint: function(point,
index)
Wrapper for OpenLayers.Geometry.Collection.addComponent
addComponent: function(component,
index)
Add a new component (geometry) to the collection.
removeComponent: function(component)
Remove a component from this geometry.
Create a new MultiPoint Geometry
A Collection is exactly what it sounds like: A collection of different Geometries.
A Geometry is a description of a geographic object.
Point geometry class.