Changed Pan control to inherit from OpenLayers.Control.Button.
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
* full text of the license. */
|
* full text of the license. */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @requires OpenLayers/Control.js
|
* @requires OpenLayers/Control/Button.js
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
* Inherits from:
|
* Inherits from:
|
||||||
* - <OpenLayers.Control>
|
* - <OpenLayers.Control>
|
||||||
*/
|
*/
|
||||||
OpenLayers.Control.Pan = OpenLayers.Class(OpenLayers.Control, {
|
OpenLayers.Control.Pan = OpenLayers.Class(OpenLayers.Control.Button, {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* APIProperty: slideFactor
|
* APIProperty: slideFactor
|
||||||
@@ -40,14 +40,6 @@ OpenLayers.Control.Pan = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
*/
|
*/
|
||||||
direction: null,
|
direction: null,
|
||||||
|
|
||||||
/**
|
|
||||||
* Property: type
|
|
||||||
* {String} The type of <OpenLayers.Control> -- When added to a
|
|
||||||
* <Control.Panel>, 'type' is used by the panel to determine how to
|
|
||||||
* handle our events.
|
|
||||||
*/
|
|
||||||
type: OpenLayers.Control.TYPE_BUTTON,
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor: OpenLayers.Control.Pan
|
* Constructor: OpenLayers.Control.Pan
|
||||||
* Control which handles the panning (in any of the cardinal directions)
|
* Control which handles the panning (in any of the cardinal directions)
|
||||||
|
|||||||
Reference in New Issue
Block a user