diff options
Diffstat (limited to 'js/dojo/dojox/geo/openlayers/LineString.js')
| -rw-r--r-- | js/dojo/dojox/geo/openlayers/LineString.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/js/dojo/dojox/geo/openlayers/LineString.js b/js/dojo/dojox/geo/openlayers/LineString.js new file mode 100644 index 0000000..d5d1c0e --- /dev/null +++ b/js/dojo/dojox/geo/openlayers/LineString.js @@ -0,0 +1,28 @@ +//>>built +define("dojox/geo/openlayers/LineString", ["dojo/_base/kernel", "dojo/_base/declare", "dojox/geo/openlayers/Geometry"], function(dojo, declare, + /* ===== + var Geometry = dojox.geo.openlayers.Geometry; + =====*/ Geometry){ + return declare("dojox.geo.openlayers.LineString", Geometry, { + // summary: + // The `dojox.geo.openlayers.LineString` geometry. This geometry holds an array + // of coordinates. + + setPoints : function(p){ + // summary: + // Sets the points for this geometry. + // p : Array + // An array of {x, y} objects + this.coordinates = p; + }, + + getPoints : function(){ + // summary: + // Gets the points of this geometry. + // returns: Array + // The points of this geometry. + return this.coordinates; + } + + }); +}); |
