Last change
on this file since 256 was
256,
checked in by hendrikvanantwerpen, 13 years ago
|
Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).
|
File size:
751 bytes
|
Line | |
---|
1 | define([ "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 | |
---|
11 | setGeometries : function(/* Array */g) { |
---|
12 | // summary: |
---|
13 | // Sets the geometries |
---|
14 | // g: Array |
---|
15 | // The array of geometries. |
---|
16 | this.coordinates = g; |
---|
17 | }, |
---|
18 | |
---|
19 | // summary: |
---|
20 | // Retrieves the geometries. |
---|
21 | // returns: Array |
---|
22 | // The array of geometries defining this collection. |
---|
23 | getGeometries : function() { |
---|
24 | return this.coordinates; |
---|
25 | } |
---|
26 | }); |
---|
27 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.