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);
},
/**