summaryrefslogtreecommitdiff
path: root/js/dojo-1.7.2/dojox/geo/openlayers/Collection.js
blob: 25983b276b8b55b52bc521a94dbcf90c737a77c3 (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/Collection", [ "dojo/_base/kernel", "dojo/_base/declare", "dojox/geo/openlayers/Geometry" ],
		function(dojo, declare, Geometry) {
			/*===== 
			var Geometry = dojox.geo.openlayers.Geometry; 
			=====*/
			return declare("dojox.geo.openlayers.Collection", Geometry, {
				// summary:
				// A collection of geometries. _coordinates_ holds an array of
				// geometries.

				setGeometries : function(/* Array */g) {
					// summary:
					// Sets the geometries
					// g: Array
					// The array of geometries.
					this.coordinates = g;
				},

				// summary:
				// Retrieves the geometries.
				// returns: Array
				// The array of geometries defining this collection.
				getGeometries : function() {
					return this.coordinates;
				}
			});
		});