Changeset 1229
- Timestamp:
- 08/16/06 01:48:09 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Layer/VirtualEarth.js
r1208 r1229 10 10 OpenLayers.Layer.VirtualEarth.prototype = 11 11 Object.extend( new OpenLayers.Layer.EventPane(), { 12 12 13 /** @type VEMap */ 13 14 vemap: null, … … 84 85 85 86 this.vemap.HideDashboard(); 86 87 // catch pans and zooms from VE Map88 //this.vemap.AttachEvent("onendcontinuouspan",89 // this.catchPanZoom.bindAsEventListener(this));90 //this.vemap.AttachEvent("onendzoom",91 // this.catchPanZoom.bindAsEventListener(this));92 87 } 93 88 … … 143 138 this.div.appendChild(div); 144 139 }, 145 146 /**147 * @param {Event} e148 */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 160 140 161 141
