Changeset 1188
- Timestamp:
- 10/10/08 16:48:16 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/camptocamp/MapFishAeai/client/mfbase/mapfish/widgets/recenter/Base.js
r1187 r1188 81 81 /** 82 82 * Method: initComponent 83 *84 83 * Overrides super-class initComponent method. Builds the recentering form. 85 84 */ … … 92 91 /** 93 92 * Method: fillComponent 94 *95 93 * Called by initComponent to create the component's sub-elements. To be 96 94 * implemented by child classes. … … 111 109 /** 112 110 * Method: addScaleCombo 113 *114 111 * Adds a scale combobox in the form 115 112 */ … … 145 142 /** 146 143 * Method: recenter 147 *148 144 * Recentering action. implemented by child classes. 149 145 */ … … 152 148 /** 153 149 * Method: recenterOnCoords 154 *155 150 * Recenters on given coordinates and zoom level 151 * 152 * Parameters: 153 * {Float} - easting coordinate 154 * {Float} - northing coordinate 155 * {Integer} - zoom level (optional) 156 156 */ 157 157 recenterOnCoords: function(x, y, zoom) { … … 184 184 /** 185 185 * Method: prepareVectorLayer 186 *187 186 * Adds a layer for displaying the center symbol. If it is already set, removes 188 187 * existing features. … … 215 214 * Method: getZoomByName 216 215 * 216 * Parameters: 217 * {String} - scale label 218 * 217 219 * Returns: 218 220 * {Integer} - zoom level matching the given scale label … … 230 232 /** 231 233 * Method: showError 232 *233 234 * Displays an error message 235 * 236 * Parameters: 237 * {String} - message 238 * {String} - box title 234 239 */ 235 240 showError: function(msg, title) { … … 240 245 /** 241 246 * Method: formateScale 242 *243 247 * Builds scale label according to the given value 248 * 249 * Parameters: 250 * {Integer} - scale 251 * 252 * Returns: 253 * {String} - scale label 244 254 */ 245 255 formateScale: function(scale) { sandbox/camptocamp/MapFishAeai/client/mfbase/mapfish/widgets/recenter/Coords.js
r1187 r1188 65 65 /** 66 66 * Method: fillComponent 67 *68 67 * Called by initComponent to create the component's sub-elements. 69 68 */ … … 91 90 /** 92 91 * Method: recenter 93 *94 92 * Recenters map using user-provided coordinates and scale. 95 93 */ … … 114 112 /** 115 113 * Method: checkCoords 114 * Checks that submitted coordinates are well-formatted and within the map bounds. 116 115 * 117 * Checks that submitted coordinates are well-formatted and within the map bounds. 116 * Parameters: 117 * {Float} - easting coordinate 118 * {Float} - northing coordinate 119 * 118 120 * Returns: 119 121 * {Boolean}