From c7cb7744e7821a8348722192f2fadbf06f409bee Mon Sep 17 00:00:00 2001 From: euzuro Date: Wed, 16 Aug 2006 05:48:09 +0000 Subject: [PATCH] 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 --- lib/OpenLayers/Layer/VirtualEarth.js | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/lib/OpenLayers/Layer/VirtualEarth.js b/lib/OpenLayers/Layer/VirtualEarth.js index f256d6e04d..db7b4afe7e 100644 --- a/lib/OpenLayers/Layer/VirtualEarth.js +++ b/lib/OpenLayers/Layer/VirtualEarth.js @@ -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); - }, - /********************************************************/