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:
1.2 KB
|
Line | |
---|
1 | define(["dojo/_base/kernel", "dojo/_base/declare"], function(dojo, declare){ |
---|
2 | |
---|
3 | return declare("dojox.geo.openlayers.Geometry", null, { |
---|
4 | // summary: |
---|
5 | // A Geometry handles description of shapes to be rendered in a GfxLayer |
---|
6 | // using a GeometryFeature feature. |
---|
7 | // A Geometry can be |
---|
8 | // - A point geometry of type dojox.geo.openlayers.Point. Coordinates are a an |
---|
9 | // Object {x, y} |
---|
10 | // - A line string geometry of type dojox.geo.openlayers.LineString. Coordinates are |
---|
11 | // an array of {x, y} objects |
---|
12 | // - A collection geometry of type dojox.geo.openlayers.Collection. Coordinates are an array of geometries. |
---|
13 | |
---|
14 | // summary: |
---|
15 | // The coordinates of the geometry. |
---|
16 | // coordinates: {x, y} | Array |
---|
17 | coordinates : null, |
---|
18 | |
---|
19 | // summary: |
---|
20 | // The associated shape when rendered |
---|
21 | // shape : dojox.gfx.Shape |
---|
22 | // The shape |
---|
23 | // tags: |
---|
24 | // internal |
---|
25 | shape : null, |
---|
26 | |
---|
27 | constructor : function(coords){ |
---|
28 | // summary: |
---|
29 | // Constructs a new geometry |
---|
30 | // coords: {x, y} |
---|
31 | // Coordinates of the geometry. {x:<x>, y:<y>} object for a point geometry, array of {x:<x>, y:<y>} |
---|
32 | // objects for line string geometry, array of geometries for collection geometry. |
---|
33 | this.coordinates = coords; |
---|
34 | } |
---|
35 | }); |
---|
36 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.