Permalink
Browse files

Changed Pan control to inherit from OpenLayers.Control.Button.

  • Loading branch information...
1 parent 56d7cee commit d86c1b6c9ce591dafeea8c09510e327f630a6e37 @marcjansen committed Apr 17, 2012
Showing with 2 additions and 10 deletions.
  1. +2 −10 lib/OpenLayers/Control/Pan.js
@@ -4,7 +4,7 @@
* full text of the license. */
/**
- * @requires OpenLayers/Control.js
+ * @requires OpenLayers/Control/Button.js
*/
/**
@@ -15,7 +15,7 @@
* Inherits from:
* - <OpenLayers.Control>
*/
-OpenLayers.Control.Pan = OpenLayers.Class(OpenLayers.Control, {
+OpenLayers.Control.Pan = OpenLayers.Class(OpenLayers.Control.Button, {
/**
* APIProperty: slideFactor
@@ -41,14 +41,6 @@ OpenLayers.Control.Pan = OpenLayers.Class(OpenLayers.Control, {
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
* Control which handles the panning (in any of the cardinal directions)
* of the map by a set px distance.

0 comments on commit d86c1b6

Please sign in to comment.