small modification to r269 - making sure these get set in the instances and not the class (static).

git-svn-id: http://svn.openlayers.org/trunk/openlayers@272 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-05-22 18:11:49 +00:00
parent be6ecf5dca
commit cd677b332d
2 changed files with 8 additions and 2 deletions

View File

@@ -2,16 +2,18 @@
// default zoom/pan controls
//
OpenLayers.Control.PanZoom = Class.create();
OpenLayers.Control.PanZoom.X = 4;
OpenLayers.Control.PanZoom.Y = 4;
OpenLayers.Control.PanZoom.prototype =
Object.extend( new OpenLayers.Control(), {
/** @type OpenLayers.Pixel */
position: new OpenLayers.Pixel(4,4),
/** @type Array(...) */
buttons: null,
initialize: function() {
OpenLayers.Control.prototype.initialize.apply(this, arguments);
this.position = new OpenLayers.Pixel(OpenLayers.Control.PanZoom.X,
OpenLayers.Control.PanZoom.Y);
},
/**

View File

@@ -5,6 +5,8 @@
// default zoom/pan controls
//
OpenLayers.Control.PanZoomBar = Class.create();
OpenLayers.Control.PanZoomBar.X = 4;
OpenLayers.Control.PanZoomBar.Y = 4;
OpenLayers.Control.PanZoomBar.prototype =
Object.extend( new OpenLayers.Control.PanZoom(), {
// Array(...)
@@ -12,6 +14,8 @@ OpenLayers.Control.PanZoomBar.prototype =
initialize: function() {
OpenLayers.Control.PanZoom.prototype.initialize.apply(this, arguments);
this.position = new OpenLayers.Pixel(OpenLayers.Control.PanZoomBar.X,
OpenLayers.Control.PanZoomBar.Y);
},
/**