Changeset 3391
- Timestamp:
- 06/20/07 20:13:19 (2 years ago)
- Files:
-
- sandbox/tschaub/naturaldocs/lib/OpenLayers/Feature.js (modified) (2 diffs)
- sandbox/tschaub/naturaldocs/lib/OpenLayers/Geometry/MultiPoint.js (modified) (2 diffs)
- sandbox/tschaub/naturaldocs/lib/OpenLayers/Geometry/Point.js (modified) (8 diffs)
- sandbox/tschaub/naturaldocs/lib/OpenLayers/Geometry/Polygon.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/tschaub/naturaldocs/lib/OpenLayers/Feature.js
r3373 r3391 5 5 6 6 /** 7 * @class 7 * Class: OpenLayers.Feature 8 * Features are combinations of geography and attributes. The OpenLayers.Feature 9 * class specifically combines a marker and a lonlat. 8 10 * 9 11 * @requires OpenLayers/Util.js … … 13 15 OpenLayers.Feature.prototype= { 14 16 15 /** @type OpenLayers.Events */ 16 events:null, 17 18 /** @type OpenLayers.Layer */ 19 layer: null, 20 21 /** @type String */ 22 id: null, 23 24 /** @type OpenLayers.LonLat */ 25 lonlat:null, 26 27 /** @type Object */ 28 data:null, 29 30 /** @type OpenLayers.Marker */ 31 marker: null, 32 33 /** @type OpenLayers.Popup */ 34 popup: null, 17 /** 18 * Property: events 19 * {<OpenLayers.Events>} 20 */ 21 events: null, 35 22 36 23 /** 37 * @constructor 24 * Property: layer 25 * {<OpenLayers.Layer>} 26 */ 27 layer: null, 28 29 /** 30 * Property: id 31 * {String} 32 */ 33 id: null, 34 35 /** 36 * Property: lonlat 37 * {<OpenLayers.LonLat>} 38 */ 39 lonlat: null, 40 41 /** 42 * Property: data 43 * {Object} 44 */ 45 data: null, 46 47 /** 48 * Property: marker 49 * {<OpenLayers.Marker>} 50 */ 51 marker: null, 52 53 /** 54 * Property: popup 55 * {<OpenLayers.Popup>} 56 */ 57 popup: null, 58 59 /** 60 * Constructor: OpenLayers.Feature 61 * Constructor for features. 62 * 63 * Parameters: 64 * layer - {<OpenLayers.Layer>} 65 * lonlat - {<OpenLayers.LonLat>} 66 * data - {Object} 38 67 * 39 * @param {OpenLayers.Layer} layer 40 * @param {OpenLayers.LonLat} lonlat 41 * @param {Object} data 68 * Return: 69 * {<OpenLayers.Feature>} 42 70 */ 43 71 initialize: function(layer, lonlat, data) { sandbox/tschaub/naturaldocs/lib/OpenLayers/Geometry/MultiPoint.js
r2931 r3391 4 4 5 5 /** 6 * @class 7 * 6 * @requires OpenLayers/Geometry/Collection.js 7 * 8 * Class: OpenLayers.Geometry.MultiPoint 8 9 * MultiPoint is a collection of Points. 9 * 10 * @requires OpenLayers/Geometry/Collection.js 10 * 11 * Inherits from: 12 * - <OpenLayers.Geometry.Collection> 13 * - <OpenLayers.Geometry> 11 14 */ 12 15 OpenLayers.Geometry.MultiPoint = OpenLayers.Class.create(); … … 23 26 24 27 /** 25 * @constructor 28 * Constructor: OpenLayers.Geometry.MultiPoint 29 * Create a new MultiPoint Geometry 26 30 * 27 * @param {Array(OpenLayers.Geometry.Point)} components 31 * Parameters: 32 * components - Array({<OpenLayers.Geometry.Point>}) 33 * 34 * Return: 35 * {<OpenLayers.Geometry.MultiPoint>} 28 36 */ 29 37 initialize: function(components) { sandbox/tschaub/naturaldocs/lib/OpenLayers/Geometry/Point.js
r2945 r3391 4 4 5 5 /** 6 * @class 6 * @requires OpenLayers/Geometry.js 7 * 8 * Class: OpenLayers.Geometry.Point 9 * Point geometry class. 7 10 * 8 * @requires OpenLayers/Geometry.js 11 * Inherits from: 12 * - <OpenLayers.Geometry> 9 13 */ 10 14 OpenLayers.Geometry.Point = OpenLayers.Class.create(); … … 12 16 OpenLayers.Class.inherit(OpenLayers.Geometry, { 13 17 14 /** @type float */ 15 x: null, 18 /** 19 * Property: x 20 * {float} 21 */ 22 x: null, 16 23 17 /** @type float */ 18 y: null, 24 /** 25 * Property: y 26 * {float} 27 */ 28 y: null, 19 29 20 30 /** 21 * @constructor 31 * Constructor: OpenLayers.Geometry.Point 32 * Construct a point geometry. 22 33 * 23 * @param {float} x 24 * @param {float} y 34 * Parameters: 35 * x - {float} 36 * y - {float} 37 * 38 * Return: 39 * {<OpenLayers.Geometry.Point>} 25 40 */ 26 41 initialize: function(x, y) { … … 32 47 33 48 /** 34 * @returns An exact clone of this OpenLayers.Geometry.Point 35 * @type OpenLayers.Geometry.Point 49 * Method: clone 50 * 51 * Return: 52 * {<OpenLayers.Geometry.Point>} An exact clone of this OpenLayers.Geometry.Point 36 53 */ 37 54 clone: function(obj) { … … 46 63 }, 47 64 48 /** Create a new Bounds based on the lon/lat 49 * 65 /** 66 * Method: calculateBounds 67 * Create a new Bounds based on the lon/lat 50 68 */ 51 69 calculateBounds: function () { … … 55 73 56 74 /** 57 * @param {OpenLayers.Geometry.Point} point 75 * Method: distanceTo 76 * 77 * Parameters: 78 * point - {OpenLayers.Geometry.Point} 58 79 */ 59 80 distanceTo: function(point) { … … 70 91 71 92 /** 72 * @param {OpenLayers.Geometry} xy 73 * @returns Boolean value indicating whether the passed-in 74 * OpenLayers.Geometryobject has the same components as this 93 * Method: equals 94 * 95 * Parameters: 96 * xy - {OpenLayers.Geometry} 97 * 98 * Return: 99 * {Boolean} Boolean value indicating whether the passed-in 100 * {<OpenLayers.Geometry>} object has the same components as this 75 101 * note that if ll passed in is null, returns false 76 102 * 77 * @type bool78 103 */ 79 104 equals:function(geom) { … … 87 112 88 113 /** 89 * @return Shortened String representation of Point object. 114 * Method: toShortString 115 * 116 * Return: 117 * {String} Shortened String representation of Point object. 90 118 * (ex. <i>"5, 42"</i>) 91 * @type String92 119 */ 93 120 toShortString: function() { … … 96 123 97 124 /** 125 * Method: move 98 126 * Moves a point in place 99 * @param {Float} x 100 * @param {Float} y 127 * 128 * Parameters: 129 * x - {Float} 130 * y - {Float} 101 131 */ 102 132 move: function(x, y) { sandbox/tschaub/naturaldocs/lib/OpenLayers/Geometry/Polygon.js
r2931 r3391 4 4 5 5 /** 6 * @ class6 * @requires OpenLayers/Geometry/Collection.js 7 7 * 8 * Class: OpenLayers.Geometry.Polygon 8 9 * Polygon is a collection of Geometry.LinearRings. 9 10 * 10 * The first ring (this.component[0])is the outer bounds of the polygon and 11 * all subsequent rings (this.component[1-n]) are internal holes. 12 * 13 * @requires OpenLayers/Geometry/Collection.js 11 * Inherits from: 12 * - <OpenLayers.Geometry.Collection> 13 * - <OpenLayers.Geometry> 14 14 */ 15 15 OpenLayers.Geometry.Polygon = OpenLayers.Class.create(); … … 26 26 27 27 /** 28 * @constructor 28 * Constructor: OpenLayers.Geometry.Polygon 29 * Constructor for a Polygon geometry. 30 * The first ring (this.component[0])is the outer bounds of the polygon and 31 * all subsequent rings (this.component[1-n]) are internal holes. 29 32 * 30 * @param {Array(OpenLayers.Geometry.LinearRing)} 33 * 34 * Parameters: 35 * components - Array({<OpenLayers.Geometry.LinearRing>}) 36 * 37 * Return: 38 * {<OpenLayers.Geometry.Polygon>} 31 39 */ 32 40 initialize: function(components) { … … 35 43 }, 36 44 37 /** Calculated by subtracting the areas of the internal holes from the 45 /** 46 * Method: getArea 47 * Calculated by subtracting the areas of the internal holes from the 38 48 * area of the outer hole. 39 49 * 40 * @returns The area of the geometry41 * @type float50 * Return: 51 * {float} The area of the geometry 42 52 */ 43 53 getArea: function() {
