OpenLayers OpenLayers

Ticket #1340: Vector.js.vml-flicker.patch

File Vector.js.vml-flicker.patch, 1.1 kB (added by sbenthall, 1 year ago)

patch for Layer.Vector

  • lib/OpenLayers/Layer/Vector.js

    old new  
    221229     */ 
    222230    moveTo: function(bounds, zoomChanged, dragging) { 
    223231        OpenLayers.Layer.prototype.moveTo.apply(this, arguments); 
    224          
     232 
    225233        if (!dragging) { 
    226             this.div.style.left = - parseInt(this.map.layerContainerDiv.style.left) + "px"; 
    227             this.div.style.top = - parseInt(this.map.layerContainerDiv.style.top) + "px"; 
     234            this.renderer.root.style.visibility = "hidden"; 
     235             
     236            this.div.style.left = -parseInt(this.map.layerContainerDiv.style.left) + "px"; 
     237            this.div.style.top = -parseInt(this.map.layerContainerDiv.style.top) + "px"; 
    228238            var extent = this.map.getExtent(); 
    229239            this.renderer.setExtent(extent); 
     240             
     241            this.renderer.root.style.visibility = "visible"; 
    230242        } 
    231  
     243         
    232244        if (!this.drawn || zoomChanged) { 
    233245            this.drawn = true; 
    234246            for(var i = 0; i < this.features.length; i++) {