diff options
| author | Tristan Zur <tzur@web.web.ccwn.org> | 2014-03-27 22:27:47 +0100 |
|---|---|---|
| committer | Tristan Zur <tzur@web.web.ccwn.org> | 2014-03-27 22:27:47 +0100 |
| commit | b62676ca5d3d6f6ba3f019ea3f99722e165a98d8 (patch) | |
| tree | 86722cb80f07d4569f90088eeaea2fc2f6e2ef94 /js/dojo/dojox/geo/openlayers/Geometry.js | |
Diffstat (limited to 'js/dojo/dojox/geo/openlayers/Geometry.js')
| -rw-r--r-- | js/dojo/dojox/geo/openlayers/Geometry.js | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/js/dojo/dojox/geo/openlayers/Geometry.js b/js/dojo/dojox/geo/openlayers/Geometry.js new file mode 100644 index 0000000..8905dee --- /dev/null +++ b/js/dojo/dojox/geo/openlayers/Geometry.js @@ -0,0 +1,37 @@ +//>>built +define("dojox/geo/openlayers/Geometry", ["dojo/_base/kernel", "dojo/_base/declare"], function(dojo, declare){ + + return declare("dojox.geo.openlayers.Geometry", null, { + // summary: + // A Geometry handles description of shapes to be rendered in a GfxLayer + // using a GeometryFeature feature. + // A Geometry can be + // - A point geometry of type dojox.geo.openlayers.Point. Coordinates are a an + // Object {x, y} + // - A line string geometry of type dojox.geo.openlayers.LineString. Coordinates are + // an array of {x, y} objects + // - A collection geometry of type dojox.geo.openlayers.Collection. Coordinates are an array of geometries. + + // summary: + // The coordinates of the geometry. + // coordinates: {x, y} | Array + coordinates : null, + + // summary: + // The associated shape when rendered + // shape : dojox.gfx.Shape + // The shape + // tags: + // internal + shape : null, + + constructor : function(coords){ + // summary: + // Constructs a new geometry + // coords: {x, y} + // Coordinates of the geometry. {x:<x>, y:<y>} object for a point geometry, array of {x:<x>, y:<y>} + // objects for line string geometry, array of geometries for collection geometry. + this.coordinates = coords; + } + }); +}); |
