Change Layer.EventPane to override Layer.display() rather than Layer.setVisibility(). Also, add setZIndex() there to update the pane's z-index when the div's changes.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1613 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -66,14 +66,17 @@ OpenLayers.Layer.EventPane.prototype =
|
||||
},
|
||||
|
||||
/**
|
||||
* @param {Boolean} visible
|
||||
* @param {Boolean} noEvent
|
||||
* @param {Boolean} display
|
||||
*/
|
||||
setVisibility: function(visible, noEvent) {
|
||||
OpenLayers.Layer.prototype.setVisibility.apply(this, arguments);
|
||||
|
||||
display: function(display) {
|
||||
OpenLayers.Layer.prototype.display.apply(this, arguments);
|
||||
this.pane.style.display = this.div.style.display;
|
||||
},
|
||||
|
||||
setZIndex: function (zIdx) {
|
||||
OpenLayers.Layer.prototype.setZIndex.apply(this, arguments);
|
||||
this.pane.style.zIndex = parseInt(this.div.style.zIndex) + 1;
|
||||
},
|
||||
|
||||
/** @final @type String */
|
||||
CLASS_NAME: "OpenLayers.Layer.EventPane"
|
||||
|
||||
Reference in New Issue
Block a user