| 1 | define([ |
| 2 | "dojo/_base/declare", |
| 3 | "./Geometry" |
| 4 | ], function(declare, Geometry){ |
| 5 | |
| 6 | return declare("dojox.geo.openlayers.Point", Geometry, { |
| 7 | // summary: |
| 8 | // A Point geometry handles description of points to be rendered in a GfxLayer |
| 9 | |
| 10 | setPoint: function(p){ |
| 11 | // summary: |
| 12 | // Sets the point for this geometry. |
| 13 | // p: Object |
| 14 | // The point geometry expressed as a {x, y} object. |
| 15 | this.coordinates = p; |
| 16 | }, |
| 17 | |
| 18 | getPoint: function(){ |
| 19 | // summary: |
| 20 | // Gets the point defining this geometry. |
| 21 | // returns: |
| 22 | // The point defining this geometry. |
| 23 | return this.coordinates; // Object |
| 24 | } |
| 25 | }); |
| 26 | }); |