Ticket #1340: Vector.js.vml-flicker.patch
| File Vector.js.vml-flicker.patch, 1.1 kB (added by sbenthall, 1 year ago) |
|---|
-
lib/OpenLayers/Layer/Vector.js
old new 221 229 */ 222 230 moveTo: function(bounds, zoomChanged, dragging) { 223 231 OpenLayers.Layer.prototype.moveTo.apply(this, arguments); 224 232 225 233 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"; 228 238 var extent = this.map.getExtent(); 229 239 this.renderer.setExtent(extent); 240 241 this.renderer.root.style.visibility = "visible"; 230 242 } 231 243 232 244 if (!this.drawn || zoomChanged) { 233 245 this.drawn = true; 234 246 for(var i = 0; i < this.features.length; i++) {
