OpenLayers OpenLayers

Changeset 1229

Show
Ignore:
Timestamp:
08/16/06 01:48:09 (2 years ago)
Author:
euzuro
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Layer/VirtualEarth.js

    r1208 r1229  
    1010OpenLayers.Layer.VirtualEarth.prototype =  
    1111  Object.extend( new OpenLayers.Layer.EventPane(), { 
     12 
    1213    /** @type VEMap */ 
    1314    vemap: null, 
     
    8485 
    8586            this.vemap.HideDashboard(); 
    86      
    87             // catch pans and zooms from VE Map 
    88             //this.vemap.AttachEvent("onendcontinuouspan",  
    89             //                       this.catchPanZoom.bindAsEventListener(this));  
    90             //this.vemap.AttachEvent("onendzoom",  
    91             //                       this.catchPanZoom.bindAsEventListener(this));  
    9287        } 
    9388  
     
    143138        this.div.appendChild(div); 
    144139    }, 
    145      
    146     /** 
    147      * @param {Event} e 
    148      */ 
    149     catchPanZoom: function(e) {  
    150          
    151         var veCenter = this.vemap.GetCenter(); 
    152         var veZoom = this.vemap.GetZoomLevel(); 
    153          
    154         var olCenter = this.getOLLonLatFromVELatLong(veCenter); 
    155         var olZoom = this.getOLZoomFromVEZoom(veZoom); 
    156          
    157         this.map.setCenter(olCenter, olZoom); 
    158     }, 
    159  
    160140 
    161141