Point.js 734 B

1234567891011121314151617181920212223242526
  1. define("dojox/geo/openlayers/Point", ["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.Point", Geometry, {
  7. // summary:
  8. // A Point geometry handles description of points to be rendered in a GfxLayer
  9. setPoint : function(p){
  10. // summary:
  11. // Sets the point for this geometry.
  12. // p : {x, y} Object
  13. // The point geometry.
  14. this.coordinates = p;
  15. },
  16. getPoint : function(){
  17. // summary:
  18. // Gets the point defining this geometry.
  19. // returns: {x, y} Object
  20. // The point defining this geometry.
  21. return this.coordinates;
  22. }
  23. });
  24. });