summaryrefslogtreecommitdiff
path: root/js/dojo/dojox/geo/openlayers/Collection.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/dojo/dojox/geo/openlayers/Collection.js')
-rw-r--r--js/dojo/dojox/geo/openlayers/Collection.js28
1 files changed, 28 insertions, 0 deletions
diff --git a/js/dojo/dojox/geo/openlayers/Collection.js b/js/dojo/dojox/geo/openlayers/Collection.js
new file mode 100644
index 0000000..25983b2
--- /dev/null
+++ b/js/dojo/dojox/geo/openlayers/Collection.js
@@ -0,0 +1,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;
+ }
+ });
+ });