diff options
| author | Tristan Zur <tzur@web.web.ccwn.org> | 2014-03-27 22:27:47 +0100 |
|---|---|---|
| committer | Tristan Zur <tzur@web.web.ccwn.org> | 2014-03-27 22:27:47 +0100 |
| commit | b62676ca5d3d6f6ba3f019ea3f99722e165a98d8 (patch) | |
| tree | 86722cb80f07d4569f90088eeaea2fc2f6e2ef94 /js/dojo/dojox/geo/openlayers/Point.js | |
Diffstat (limited to 'js/dojo/dojox/geo/openlayers/Point.js')
| -rw-r--r-- | js/dojo/dojox/geo/openlayers/Point.js | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/js/dojo/dojox/geo/openlayers/Point.js b/js/dojo/dojox/geo/openlayers/Point.js new file mode 100644 index 0000000..51db5a1 --- /dev/null +++ b/js/dojo/dojox/geo/openlayers/Point.js @@ -0,0 +1,27 @@ +//>>built +define("dojox/geo/openlayers/Point", ["dojo/_base/kernel", "dojo/_base/declare", "dojox/geo/openlayers/Geometry"], + function(dojo, declare, Geometry){ + /*===== + var Geometry = dojox.geo.openlayers.Geometry; + =====*/ + return declare("dojox.geo.openlayers.Point", Geometry, { + // summary: + // A Point geometry handles description of points to be rendered in a GfxLayer + + setPoint : function(p){ + // summary: + // Sets the point for this geometry. + // p : {x, y} Object + // The point geometry. + this.coordinates = p; + }, + + getPoint : function(){ + // summary: + // Gets the point defining this geometry. + // returns: {x, y} Object + // The point defining this geometry. + return this.coordinates; + } + }); +}); |
