You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
614 B
30 lines
614 B
define([ |
|
"dojo/_base/declare", |
|
"./Geometry" |
|
], function(declare, Geometry){ |
|
|
|
return declare("dojox.geo.openlayers.Collection", Geometry, { |
|
// summary: |
|
// A collection of geometries. |
|
|
|
// coordinates: Array |
|
// An array of geometries. |
|
coordinates:null, |
|
|
|
setGeometries: function(g){ |
|
// summary: |
|
// Sets the geometries |
|
// g: Array |
|
// The array of geometries. |
|
this.coordinates = g; |
|
}, |
|
|
|
getGeometries: function(){ |
|
// summary: |
|
// Returns the geometries. |
|
// returns: |
|
// The array of geometries defining this collection. |
|
return this.coordinates; // Array |
|
} |
|
}); |
|
});
|
|
|