Rev | Line | |
---|
[483] | 1 | define([ |
---|
| 2 | "dojo/_base/declare", |
---|
| 3 | "./Geometry" |
---|
| 4 | ], function(declare, Geometry){ |
---|
| 5 | |
---|
| 6 | return declare("dojox.geo.openlayers.LineString", Geometry, { |
---|
| 7 | // summary: |
---|
| 8 | // The `dojox.geo.openlayers.LineString` geometry. This geometry holds an array |
---|
| 9 | // of coordinates. |
---|
| 10 | |
---|
| 11 | setPoints: function(p){ |
---|
| 12 | // summary: |
---|
| 13 | // Sets the points for this geometry. |
---|
| 14 | // p: Object[] |
---|
| 15 | // An array of {x, y} objects |
---|
| 16 | this.coordinates = p; |
---|
| 17 | }, |
---|
| 18 | |
---|
| 19 | getPoints: function(){ |
---|
| 20 | // summary: |
---|
| 21 | // Gets the points of this geometry. |
---|
| 22 | // returns: |
---|
| 23 | // The points of this geometry. |
---|
| 24 | return this.coordinates; // Object[] |
---|
| 25 | } |
---|
| 26 | |
---|
| 27 | }); |
---|
| 28 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.