if we are going subclass from EventPane, then there is no need to bother with catching VE events...

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1229 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-08-16 05:48:09 +00:00
parent f3c12c729d
commit c7cb7744e7

View File

@@ -9,6 +9,7 @@
OpenLayers.Layer.VirtualEarth = Class.create();
OpenLayers.Layer.VirtualEarth.prototype =
Object.extend( new OpenLayers.Layer.EventPane(), {
/** @type VEMap */
vemap: null,
@@ -83,12 +84,6 @@ OpenLayers.Layer.VirtualEarth.prototype =
}
this.vemap.HideDashboard();
// catch pans and zooms from VE Map
//this.vemap.AttachEvent("onendcontinuouspan",
// this.catchPanZoom.bindAsEventListener(this));
//this.vemap.AttachEvent("onendzoom",
// this.catchPanZoom.bindAsEventListener(this));
}
},
@@ -142,21 +137,6 @@ OpenLayers.Layer.VirtualEarth.prototype =
div.innerHTML = html;
this.div.appendChild(div);
},
/**
* @param {Event} e
*/
catchPanZoom: function(e) {
var veCenter = this.vemap.GetCenter();
var veZoom = this.vemap.GetZoomLevel();
var olCenter = this.getOLLonLatFromVELatLong(veCenter);
var olZoom = this.getOLZoomFromVEZoom(veZoom);
this.map.setCenter(olCenter, olZoom);
},
/********************************************************/