summaryrefslogtreecommitdiff
path: root/js/dojo/dojox/geo/openlayers/Point.js
blob: 51db5a1d4b432573b6d12a1a0bb66577f3fd9b4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;
		}
	});
});