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
This commit is contained in:
@@ -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: '<br />')
|
||||
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.
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ OpenLayers.Control.MousePosition.prototype =
|
||||
numdigits: 5,
|
||||
|
||||
/** @type int */
|
||||
granularity: 1,
|
||||
granularity: 10,
|
||||
|
||||
/** @type OpenLayers.LonLat */
|
||||
lastXy: null,
|
||||
|
||||
Reference in New Issue
Block a user