source: Dev/branches/rest-dojo-ui/client/dojox/geo/openlayers/LineString.js @ 256

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: 766 bytes
Line 
1define(["dojo/_base/kernel", "dojo/_base/declare", "dojox/geo/openlayers/Geometry"], function(dojo, declare,
2                /* =====
3                var Geometry = dojox.geo.openlayers.Geometry;
4                =====*/                                                                                                                                                                                                                                                                                                                                                                                 Geometry){
5        return declare("dojox.geo.openlayers.LineString", Geometry, {
6                //      summary:
7                //              The `dojox.geo.openlayers.LineString` geometry. This geometry holds an array
8                //              of coordinates.
9
10                setPoints : function(p){
11                        //      summary:
12                        //              Sets the points for this geometry.
13                        //      p : Array
14                        //              An array of {x, y} objects
15                        this.coordinates = p;
16                },
17
18                getPoints : function(){
19                        //      summary:
20                        //              Gets the points of this geometry.
21                        //      returns: Array
22                        //              The points of this geometry.
23                        return this.coordinates;
24                }
25
26        });
27});
Note: See TracBrowser for help on using the repository browser.