MousePosition: numDigits inconsistency, reported by kthy, patch by kthy, additional test by me, r=me (closes #1544)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@7163 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Éric Lemoine
2008-05-13 20:52:01 +00:00
parent bc56ec9afa
commit e02e7504c5
2 changed files with 19 additions and 9 deletions

View File

@@ -40,7 +40,7 @@ OpenLayers.Control.MousePosition = OpenLayers.Class(OpenLayers.Control, {
* APIProperty: numDigits
* {Integer}
*/
numdigits: 5,
numDigits: 5,
/**
* APIProperty: granularity
@@ -144,7 +144,7 @@ OpenLayers.Control.MousePosition = OpenLayers.Class(OpenLayers.Control, {
* lonLat - {<OpenLayers.LonLat>} Location to display
*/
formatOutput: function(lonLat) {
var digits = parseInt(this.numdigits);
var digits = parseInt(this.numDigits);
var newHtml =
this.prefix +
lonLat.lon.toFixed(digits) +