From af6307fd9bc9e1061af331fdb7cb2780c492cad1 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Tue, 24 Oct 2006 14:45:20 +0000 Subject: [PATCH] Jeff Dege offered better/more clear documentation for the MousePosition control, and an updated default granularity to make it more useful by default. Closes #372. git-svn-id: http://svn.openlayers.org/trunk/openlayers@1719 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- doc/Control.MousePosition.txt | 2 +- lib/OpenLayers/Control/MousePosition.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/Control.MousePosition.txt b/doc/Control.MousePosition.txt index 9b3e8564ec..3025453210 100644 --- a/doc/Control.MousePosition.txt +++ b/doc/Control.MousePosition.txt @@ -13,7 +13,7 @@ A small control which displays the Longitude and Latitude of the current mouse p separator -- html to separate the longitude and latitude values (default: '
') suffix -- html to follow the latitude value (default: '') numdigits -- number of digits to the right of the decimal (default: 5) - granularity -- a change of how many pixels is considered a mouse move (default: 1) + granularity -- Don't refresh display if mouse has moved more than this (default: 10) prefix, separator, and suffix are used to format the lon/lat values. diff --git a/lib/OpenLayers/Control/MousePosition.js b/lib/OpenLayers/Control/MousePosition.js index 05ac00200a..a8d7650387 100644 --- a/lib/OpenLayers/Control/MousePosition.js +++ b/lib/OpenLayers/Control/MousePosition.js @@ -27,7 +27,7 @@ OpenLayers.Control.MousePosition.prototype = numdigits: 5, /** @type int */ - granularity: 1, + granularity: 10, /** @type OpenLayers.LonLat */ lastXy: null,