Last change
on this file since 256 was
256,
checked in by hendrikvanantwerpen, 13 years ago
|
Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).
|
File size:
704 bytes
|
Line | |
---|
1 | define(["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 | |
---|
10 | setPoint : function(p){ |
---|
11 | // summary: |
---|
12 | // Sets the point for this geometry. |
---|
13 | // p : {x, y} Object |
---|
14 | // The point geometry. |
---|
15 | this.coordinates = p; |
---|
16 | }, |
---|
17 | |
---|
18 | getPoint : function(){ |
---|
19 | // summary: |
---|
20 | // Gets the point defining this geometry. |
---|
21 | // returns: {x, y} Object |
---|
22 | // The point defining this geometry. |
---|
23 | return this.coordinates; |
---|
24 | } |
---|
25 | }); |
---|
26 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.