Changeset 5906
- Timestamp:
- 01/26/08 21:26:36 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Control/MousePosition.js
r5614 r5906 131 131 } 132 132 133 var newHtml = this.formatOutput(lonLat); 134 135 if (newHtml != this.element.innerHTML) { 136 this.element.innerHTML = newHtml; 137 } 138 }, 139 140 /** 141 * Method: formatOutput 142 * Override to provide custom display output 143 * 144 * Parameters: 145 * lonLat - {<OpenLayers.LonLat>} Location to display 146 */ 147 formatOutput: function(lonLat) { 133 148 var digits = parseInt(this.numdigits); 134 149 var newHtml = … … 138 153 lonLat.lat.toFixed(digits) + 139 154 this.suffix; 140 141 if (newHtml != this.element.innerHTML) { 142 this.element.innerHTML = newHtml; 143 } 144 }, 155 return newHtml; 156 }, 145 157 146 158 /**
