OpenLayers OpenLayers

Changeset 1207

Show
Ignore:
Timestamp:
08/14/06 21:48:55 (2 years ago)
Author:
sderle
Message:

altered VirtualEarth to subclass EventPane.

Files:

Legend:

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

    r1206 r1207  
    22 * See http://svn.openlayers.org/trunk/openlayers/license.txt for the full 
    33 * text of the license. */ 
     4// @require: OpenLayers/Layer/EventPane.js 
    45 
    56if (typeof GMap2 != "undefined") { 
  • trunk/openlayers/lib/OpenLayers/Layer/VirtualEarth.js

    r1206 r1207  
    22 * See http://svn.openlayers.org/trunk/openlayers/license.txt for the full 
    33 * text of the license. */ 
     4// @require: OpenLayers/Layer/EventPane.js 
    45 
    56/** 
    67 * @class  
    7  *  
    8  * @requires OpenLayers/Layer.js 
    98 */ 
    109OpenLayers.Layer.VirtualEarth = Class.create(); 
    1110OpenLayers.Layer.VirtualEarth.prototype =  
    12   Object.extend( new OpenLayers.Layer(), { 
    13  
    14     /** Virtual Earth layer is always a base layer.  
    15      *  
    16      * @type Boolean 
    17      */ 
    18     isBaseLayer: true, 
    19  
    20     /** @type Boolean */ 
    21     isFixed: true, 
    22  
     11  Object.extend( new OpenLayers.Layer.EventPane(), { 
    2312    /** @type VEMap */ 
    2413    vemap: null, 
     
    3019     */ 
    3120    initialize:function(name) { 
    32         OpenLayers.Layer.prototype.initialize.apply(this, arguments); 
     21        OpenLayers.Layer.EventPane.prototype.initialize.apply(this, arguments); 
    3322    }, 
    3423 
     
    3726     */ 
    3827    setMap:function(map) { 
    39         OpenLayers.Layer.prototype.setMap.apply(this, arguments); 
     28        OpenLayers.Layer.EventPane.prototype.setMap.apply(this, arguments); 
    4029 
    4130        // once our layer has been added to the map, we can load the vemap 
     
    9786     
    9887            // catch pans and zooms from VE Map 
    99             this.vemap.AttachEvent("onendcontinuouspan",  
    100                                    this.catchPanZoom.bindAsEventListener(this));  
    101             this.vemap.AttachEvent("onendzoom",  
    102                                    this.catchPanZoom.bindAsEventListener(this));  
     88            //this.vemap.AttachEvent("onendcontinuouspan",  
     89            //                       this.catchPanZoom.bindAsEventListener(this));  
     90            //this.vemap.AttachEvent("onendzoom",  
     91            //                       this.catchPanZoom.bindAsEventListener(this));  
    10392        } 
    10493