OpenLayers OpenLayers

Changeset 6169

Show
Ignore:
Timestamp:
02/09/08 12:35:33 (6 months ago)
Author:
ahocevar
Message:

VML flicker when dragging is finished. This very nice patch by sbenthall fixes it. Thanks Seb! r=me (closes #1340)

Files:

Legend:

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

    r6149 r6169  
    262262    moveTo: function(bounds, zoomChanged, dragging) { 
    263263        OpenLayers.Layer.prototype.moveTo.apply(this, arguments); 
    264          
     264 
    265265        if (!dragging) { 
    266             this.div.style.left = - parseInt(this.map.layerContainerDiv.style.left) + "px"; 
    267             this.div.style.top = - parseInt(this.map.layerContainerDiv.style.top) + "px"; 
     266            this.renderer.root.style.visibility = "hidden"; 
     267             
     268            this.div.style.left = -parseInt(this.map.layerContainerDiv.style.left) + "px"; 
     269            this.div.style.top = -parseInt(this.map.layerContainerDiv.style.top) + "px"; 
    268270            var extent = this.map.getExtent(); 
    269271            this.renderer.setExtent(extent); 
    270         } 
    271  
     272             
     273            this.renderer.root.style.visibility = "visible"; 
     274        } 
     275         
    272276        if (!this.drawn || zoomChanged) { 
    273277            this.drawn = true;