summaryrefslogtreecommitdiff
path: root/js/dojo/dojox/geo/openlayers/LineString.js
blob: d5d1c0eff48c934ba3c691a6b77a960330ae445c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//>>built
define("dojox/geo/openlayers/LineString", ["dojo/_base/kernel", "dojo/_base/declare", "dojox/geo/openlayers/Geometry"], function(dojo, declare,
		/* ===== 
		var Geometry = dojox.geo.openlayers.Geometry; 
		=====*/																																															Geometry){
	return declare("dojox.geo.openlayers.LineString", Geometry, {
		//	summary:
		//		The `dojox.geo.openlayers.LineString` geometry. This geometry holds an array
		//		of coordinates.

		setPoints : function(p){
			//	summary:
			//		Sets the points for this geometry.
			//	p : Array
			//		An array of {x, y} objects
			this.coordinates = p;
		},

		getPoints : function(){
			//	summary:
			//		Gets the points of this geometry.
			//	returns: Array
			//		The points of this geometry.
			return this.coordinates;
		}

	});
});