Collection.js 786 B

123456789101112131415161718192021222324252627
  1. define("dojox/geo/openlayers/Collection", [ "dojo/_base/kernel", "dojo/_base/declare", "dojox/geo/openlayers/Geometry" ],
  2. function(dojo, declare, Geometry) {
  3. /*=====
  4. var Geometry = dojox.geo.openlayers.Geometry;
  5. =====*/
  6. return declare("dojox.geo.openlayers.Collection", Geometry, {
  7. // summary:
  8. // A collection of geometries. _coordinates_ holds an array of
  9. // geometries.
  10. setGeometries : function(/* Array */g) {
  11. // summary:
  12. // Sets the geometries
  13. // g: Array
  14. // The array of geometries.
  15. this.coordinates = g;
  16. },
  17. // summary:
  18. // Retrieves the geometries.
  19. // returns: Array
  20. // The array of geometries defining this collection.
  21. getGeometries : function() {
  22. return this.coordinates;
  23. }
  24. });
  25. });