Double clicking overview map expand/contract button zooms. #478. Patch
from tschaub. (Thx tschaub!) git-svn-id: http://svn.openlayers.org/trunk/openlayers@2189 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -162,6 +162,11 @@ OpenLayers.Control.OverviewMap.prototype =
|
||||
OpenLayers.Event.observe(this.maximizeDiv,
|
||||
'click',
|
||||
this.maximizeControl.bindAsEventListener(this));
|
||||
OpenLayers.Event.observe(this.maximizeDiv,
|
||||
'dblclick',
|
||||
function(e) {
|
||||
OpenLayers.Event.stop(e);
|
||||
});
|
||||
this.div.appendChild(this.maximizeDiv);
|
||||
|
||||
// minimize button div
|
||||
@@ -177,7 +182,11 @@ OpenLayers.Control.OverviewMap.prototype =
|
||||
OpenLayers.Event.observe(this.minimizeDiv,
|
||||
'click',
|
||||
this.minimizeControl.bindAsEventListener(this));
|
||||
|
||||
OpenLayers.Event.observe(this.minimizeDiv,
|
||||
'dblclick',
|
||||
function(e) {
|
||||
OpenLayers.Event.stop(e);
|
||||
});
|
||||
this.div.appendChild(this.minimizeDiv);
|
||||
|
||||
this.minimizeControl();
|
||||
|
||||
Reference in New Issue
Block a user