Ticket #778: mp.patch
| File mp.patch, 1.1 kB (added by kleptog, 1 year ago) |
|---|
-
lib/OpenLayers/Control/MousePosition.js
old new 130 130 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 = 135 150 this.prefix + … … 137 152 this.separator + 138 153 lonLat.lat.toFixed(digits) + 139 154 this.suffix; 155 return newHtml; 156 }, 140 157 141 if (newHtml != this.element.innerHTML) {142 this.element.innerHTML = newHtml;143 }144 },145 146 158 /** 147 159 * Method: setMap 148 160 */
