use inheritance for draw()
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1421 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -35,14 +35,8 @@ OpenLayers.Control.MouseToolbar.prototype =
|
|||||||
},
|
},
|
||||||
|
|
||||||
draw: function() {
|
draw: function() {
|
||||||
OpenLayers.Control.prototype.draw.apply(this, arguments);
|
OpenLayers.Control.MouseDefaults.prototype.draw.apply(this, arguments);
|
||||||
this.buttons = new Object();
|
this.buttons = new Object();
|
||||||
this.map.events.register( "click", this, this.defaultClick );
|
|
||||||
this.map.events.register( "dblclick", this, this.defaultDblClick );
|
|
||||||
this.map.events.register( "mousedown", this, this.defaultMouseDown );
|
|
||||||
this.map.events.register( "mouseup", this, this.defaultMouseUp );
|
|
||||||
this.map.events.register( "mousemove", this, this.defaultMouseMove );
|
|
||||||
this.map.events.register( "mouseout", this, this.defaultMouseOut );
|
|
||||||
var sz = new OpenLayers.Size(28,28);
|
var sz = new OpenLayers.Size(28,28);
|
||||||
var centered = this.position;
|
var centered = this.position;
|
||||||
this._addButton("zoombox", "drag-rectangle-off.png", "drag-rectangle-on.png", centered, sz, "Shift->Drag to zoom to area");
|
this._addButton("zoombox", "drag-rectangle-off.png", "drag-rectangle-on.png", centered, sz, "Shift->Drag to zoom to area");
|
||||||
|
|||||||
Reference in New Issue
Block a user