dojox
Version:
Dojo eXtensions, a rollup of many useful sub-projects and varying states of maturity – from very stable and robust, to alpha and experimental. See individual projects contain README files for details.
27 lines (23 loc) • 610 B
JavaScript
define([
"dojo/_base/declare",
"./Geometry"
], function(declare, 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: Object
// The point geometry expressed as a {x, y} object.
this.coordinates = p;
},
getPoint: function(){
// summary:
// Gets the point defining this geometry.
// returns:
// The point defining this geometry.
return this.coordinates; // Object
}
});
});