dojox/geo/openlayers/LineString (version 1.10)

dojox/geo/openlayers/Geometry

Summary

The dojox.geo.openlayers.LineString geometry. This geometry holds an array of coordinates.

Usage

var foo = new LineString(coords);
dojox/geo/openlayers/Geometry
Parameter Type Description
coords Object

Coordinates of the geometry. {x:x, y:y} object for a point geometry, array of {x:x, y:y} objects for line string geometry, array of geometries for collection geometry.

See the dojox/geo/openlayers/LineString reference documentation for more information.

Property Summary

  • coordinatesThe coordinates of the geometry, Object like {x, y} or Array.
  • shapeThe associated shape when rendered

Method Summary

  • getPoints() Gets the points of this geometry.
  • setPoints(p) Sets the points for this geometry.

Properties

coordinates

The coordinates of the geometry, Object like {x, y} or Array.

shape

The associated shape when rendered

Methods

getPoints()

Gets the points of this geometry.

Returns:any | undefined

The points of this geometry.

setPoints(p)

Sets the points for this geometry.

Parameter Type Description
p Object[]

An array of {x, y} objects

Error in the documentation? Can’t find what you are looking for? Let us know!