Merge all changes from the naturaldocs sandbox. This brings all the work that
has been done in the NaturalDocs branch back to trunk. Thanks to everyone who helped out in making this happen. (I could list people, but the list would be long, and I'm already mentally on vacation.) git-svn-id: http://svn.openlayers.org/trunk/openlayers@3545 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -4,46 +4,68 @@
|
||||
|
||||
|
||||
/**
|
||||
* @class
|
||||
*
|
||||
* @requires OpenLayers/Control.js
|
||||
*
|
||||
* Class: OpenLayers.Control.MousePosition
|
||||
*/
|
||||
OpenLayers.Control.MousePosition = OpenLayers.Class.create();
|
||||
OpenLayers.Control.MousePosition.prototype =
|
||||
OpenLayers.Class.inherit( OpenLayers.Control, {
|
||||
|
||||
/** @type DOMElement */
|
||||
/**
|
||||
* Property: element
|
||||
* {DOMElement}
|
||||
*/
|
||||
element: null,
|
||||
|
||||
/** @type String */
|
||||
/**
|
||||
* APIProperty: prefix
|
||||
*/
|
||||
prefix: '',
|
||||
|
||||
/** @type String */
|
||||
/**
|
||||
* APIProperty: seperator
|
||||
* {String}
|
||||
*/
|
||||
separator: ', ',
|
||||
|
||||
/** @type String */
|
||||
/**
|
||||
* APIProperty: suffix
|
||||
* {String}
|
||||
*/
|
||||
suffix: '',
|
||||
|
||||
/** @type int */
|
||||
/**
|
||||
* APIProperty: numDigits
|
||||
* {Integer}
|
||||
*/
|
||||
numdigits: 5,
|
||||
|
||||
/** @type int */
|
||||
/**
|
||||
* APIProperty: granularity
|
||||
* {Integer}
|
||||
*/
|
||||
granularity: 10,
|
||||
|
||||
/** @type OpenLayers.LonLat */
|
||||
/**
|
||||
* Property: lastXy
|
||||
* {<OpenLayers.LonLat>}
|
||||
*/
|
||||
lastXy: null,
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* Constructor: OpenLayers.Control.MousePosition
|
||||
*
|
||||
* @param {DOMElement} options Options for control.
|
||||
* Parameters:
|
||||
* options - {DOMElement} Options for control.
|
||||
*/
|
||||
initialize: function(options) {
|
||||
OpenLayers.Control.prototype.initialize.apply(this, arguments);
|
||||
},
|
||||
|
||||
/**
|
||||
* @type DOMElement
|
||||
* Method: draw
|
||||
* {DOMElement}
|
||||
*/
|
||||
draw: function() {
|
||||
OpenLayers.Control.prototype.draw.apply(this, arguments);
|
||||
@@ -60,7 +82,7 @@ OpenLayers.Control.MousePosition.prototype =
|
||||
},
|
||||
|
||||
/**
|
||||
*
|
||||
* Method: redraw
|
||||
*/
|
||||
redraw: function(evt) {
|
||||
|
||||
@@ -95,7 +117,7 @@ OpenLayers.Control.MousePosition.prototype =
|
||||
},
|
||||
|
||||
/**
|
||||
*
|
||||
* Method: setMap
|
||||
*/
|
||||
setMap: function() {
|
||||
OpenLayers.Control.prototype.setMap.apply(this, arguments);
|
||||
|
||||
Reference in New Issue
Block a user