Changeset 1144
- Timestamp:
- 08/09/06 00:36:39 (2 years ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Control.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Events.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Layer.js (modified) (2 diffs)
- trunk/openlayers/lib/OpenLayers/Layer/Grid.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Layer/HTTPRequest.js (modified) (3 diffs)
- trunk/openlayers/lib/OpenLayers/Layer/Markers.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Layer/Text.js (modified) (2 diffs)
- trunk/openlayers/lib/OpenLayers/Layer/WFS.js (modified) (3 diffs)
- trunk/openlayers/lib/OpenLayers/Layer/WMS.js (modified) (3 diffs)
- trunk/openlayers/lib/OpenLayers/Layer/WMS/Untiled.js (modified) (2 diffs)
- trunk/openlayers/lib/OpenLayers/Map.js (modified) (3 diffs)
- trunk/openlayers/lib/OpenLayers/Util.js (modified) (2 diffs)
- trunk/openlayers/tests/test_Layer_WMS.html (modified) (1 diff)
- trunk/openlayers/tests/test_Map.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Control.js
r961 r1144 22 22 * @constructor 23 23 * 24 * @param { Hash} options24 * @param {Object} options 25 25 */ 26 26 initialize: function (options) { trunk/openlayers/lib/OpenLayers/Events.js
r1142 r1144 17 17 ], 18 18 19 /** @type Hash of Array(Function): events listener functions */ 19 /** Hashtable of Array(Function): events listener functions 20 * @type Object */ 20 21 listeners: null, 21 22 trunk/openlayers/lib/OpenLayers/Layer.js
r1137 r1144 61 61 * 62 62 * @param {String} name 63 * @param {Object} options Hash of extra options to tag onto the layer63 * @param {Object} options Hashtable of extra options to tag onto the layer 64 64 */ 65 65 initialize: function(name, options) { … … 127 127 128 128 /** 129 * @param { Hash} newOptions129 * @param {Object} newOptions 130 130 */ 131 131 addOptions: function (newOptions) { trunk/openlayers/lib/OpenLayers/Layer/Grid.js
r1141 r1144 30 30 * @param {String} url 31 31 * @param {Object} params 32 * @param {Object} options Hash of extra options to tag onto the layer32 * @param {Object} options Hashtable of extra options to tag onto the layer 33 33 */ 34 34 initialize: function(name, url, params, options) { trunk/openlayers/lib/OpenLayers/Layer/HTTPRequest.js
r1143 r1144 15 15 url: null, 16 16 17 /** @type Hash */ 17 /** Hashtable of key/value parameters 18 * @type Object */ 18 19 params: null, 19 20 … … 23 24 * @param {String} name 24 25 * @param {String} url 25 * @param { hash} params26 * @param {Object} options Hash of extra options to tag onto the layer26 * @param {Object} params 27 * @param {Object} options Hashtable of extra options to tag onto the layer 27 28 */ 28 29 initialize: function(name, url, params, options) { … … 115 116 var requestString = url; 116 117 117 // create a new params hash with all the layer params and the118 // create a new params hashtable with all the layer params and the 118 119 // new params together. then convert to string 119 120 var allParams = Object.extend(new Object(), this.params); trunk/openlayers/lib/OpenLayers/Layer/Markers.js
r1136 r1144 24 24 * 25 25 * @param {String} name 26 * @param {Object} options Hash of extra options to tag onto the layer26 * @param {Object} options Hashtable of extra options to tag onto the layer 27 27 */ 28 28 initialize: function(name, options) { trunk/openlayers/lib/OpenLayers/Layer/Text.js
r1136 r1144 17 17 isBaseLayer: false, 18 18 19 /** store url of text file - this should be specified in the "options" hash 19 /** store url of text file - this should be specified in the 20 * "options" hashtable 20 21 * @type str */ 21 22 location:null, … … 32 33 * @param {String} name 33 34 * @param {String} location 34 * @param {Object} options Hash of extra options to tag onto the layer35 * @param {Object} options Hashtable of extra options to tag onto the layer 35 36 */ 36 37 initialize: function(name, options) { trunk/openlayers/lib/OpenLayers/Layer/WFS.js
r1143 r1144 31 31 tileClass: OpenLayers.Tile.WFS, 32 32 33 /** @final @type hash */ 33 /** Hashtable of default key/value parameters 34 * @final @type Object */ 34 35 DEFAULT_PARAMS: { service: "WFS", 35 36 version: "1.0.0", … … 43 44 * @param {String} name 44 45 * @param {String} url 45 * @param { hash} params46 * @param {Object} options Hash of extra options to tag onto the layer46 * @param {Object} params 47 * @param {Object} options Hashtable of extra options to tag onto the layer 47 48 */ 48 49 initialize: function(name, url, params, options) { … … 157 158 * Once params have been changed, we will need to re-init our tiles 158 159 * 159 * @param {Object} params Hash of new params to use160 * @param {Object} params Hashtable of new params to use 160 161 */ 161 162 mergeNewParams:function(params) { trunk/openlayers/lib/OpenLayers/Layer/WMS.js
r1143 r1144 10 10 Object.extend( new OpenLayers.Layer.Grid(), { 11 11 12 /** @final @type hash */ 12 /** Hashtable of default parameter key/value pairs 13 * @final @type Object */ 13 14 DEFAULT_PARAMS: { service: "WMS", 14 15 version: "1.1.1", … … 32 33 * @param {String} name 33 34 * @param {String} url 34 * @param { hash} params35 * @param {Object} options Hash of extra options to tag onto the layer35 * @param {Object} params 36 * @param {Object} options Hashtable of extra options to tag onto the layer 36 37 */ 37 38 initialize: function(name, url, params, options) { … … 112 113 * Once params have been changed, we will need to re-init our tiles 113 114 * 114 * @param {Object} params Hash of new params to use115 * @param {Object} params Hashtable of new params to use 115 116 */ 116 117 mergeNewParams:function(params) { trunk/openlayers/lib/OpenLayers/Layer/WMS/Untiled.js
r1143 r1144 12 12 Object.extend( new OpenLayers.Layer.HTTPRequest(), { 13 13 14 /** @final @type hash */ 14 /** Hashtable of default parameter key/value pairs 15 * @final @type Object */ 15 16 DEFAULT_PARAMS: { service: "WMS", 16 17 version: "1.1.1", … … 36 37 * @param {String} name 37 38 * @param {String} url 38 * @param { hash} params39 * @param {Object} params 39 40 */ 40 41 initialize: function(name, url, params) { trunk/openlayers/lib/OpenLayers/Map.js
r1096 r1144 15 15 /** base z-indexes for different classes of thing 16 16 * 17 * @type Hash17 * @type Object 18 18 */ 19 19 Z_INDEX_BASE: { Layer: 100, Popup: 200, Control: 1000 }, … … 110 110 * 111 111 * @param {DOMElement} div 112 * @param {Object} options Hash of extra options to tag onto the map112 * @param {Object} options Hashtable of extra options to tag onto the map 113 113 */ 114 114 initialize: function (div, options) { … … 192 192 * @private 193 193 * 194 * @param {Object} options Hash of options to tag to the map194 * @param {Object} options Hashtable of options to tag to the map 195 195 */ 196 196 setOptions: function(options) { trunk/openlayers/lib/OpenLayers/Util.js
r1137 r1144 905 905 906 906 907 /** Creates a new hash and copies over all the keys from the907 /** Creates a new hashtable and copies over all the keys from the 908 908 * passed-in object, but storing them under an uppercased 909 909 * version of the key at which they were stored. … … 922 922 }; 923 923 924 /** Takes a hash and copies any keys that don't exist from925 * another hash , by analogy with Object.extend() from924 /** Takes a hashtable and copies any keys that don't exist from 925 * another hashtable, by analogy with Object.extend() from 926 926 * Prototype.js. 927 927 * trunk/openlayers/tests/test_Layer_WMS.html
r1138 r1144 124 124 newParams.CHICKPEAS = 151; 125 125 126 t.eq( layer.params.CHICKPEAS, "image/png", "mergeNewParams() makes clean copy of hash ");126 t.eq( layer.params.CHICKPEAS, "image/png", "mergeNewParams() makes clean copy of hashtable"); 127 127 } 128 128 trunk/openlayers/tests/test_Map.html
r1139 r1144 63 63 t.plan(2); 64 64 map = new OpenLayers.Map($('map'), {maxZoomLevel: 5, maxResolution: 3.14159}); 65 t.eq( map.maxZoomLevel, 5, "map.maxZoomLevel set correctly via options hash " );66 t.eq( map.maxResolution, 3.14159, "map.maxResolution set correctly via options hash " );65 t.eq( map.maxZoomLevel, 5, "map.maxZoomLevel set correctly via options hashtable" ); 66 t.eq( map.maxResolution, 3.14159, "map.maxResolution set correctly via options hashtable" ); 67 67 } 68 68 function test_05_Map_center(t) {
