Rev | Line | |
---|
[483] | 1 | define([ |
---|
| 2 | "dojo/_base/declare", |
---|
| 3 | "./Geometry" |
---|
| 4 | ], function(declare, Geometry){ |
---|
| 5 | |
---|
| 6 | return declare("dojox.geo.openlayers.Collection", Geometry, { |
---|
| 7 | // summary: |
---|
| 8 | // A collection of geometries. |
---|
| 9 | |
---|
| 10 | // coordinates: Array |
---|
| 11 | // An array of geometries. |
---|
| 12 | coordinates:null, |
---|
| 13 | |
---|
| 14 | setGeometries: function(g){ |
---|
| 15 | // summary: |
---|
| 16 | // Sets the geometries |
---|
| 17 | // g: Array |
---|
| 18 | // The array of geometries. |
---|
| 19 | this.coordinates = g; |
---|
| 20 | }, |
---|
| 21 | |
---|
| 22 | getGeometries: function(){ |
---|
| 23 | // summary: |
---|
| 24 | // Returns the geometries. |
---|
| 25 | // returns: |
---|
| 26 | // The array of geometries defining this collection. |
---|
| 27 | return this.coordinates; // Array |
---|
| 28 | } |
---|
| 29 | }); |
---|
| 30 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.