VML flicker when dragging is finished. This very nice patch by sbenthall fixes it. Thanks Seb! r=me (closes #1340)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6169 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -261,14 +261,18 @@ OpenLayers.Layer.Vector = OpenLayers.Class(OpenLayers.Layer, {
|
||||
*/
|
||||
moveTo: function(bounds, zoomChanged, dragging) {
|
||||
OpenLayers.Layer.prototype.moveTo.apply(this, arguments);
|
||||
|
||||
|
||||
if (!dragging) {
|
||||
this.div.style.left = - parseInt(this.map.layerContainerDiv.style.left) + "px";
|
||||
this.div.style.top = - parseInt(this.map.layerContainerDiv.style.top) + "px";
|
||||
this.renderer.root.style.visibility = "hidden";
|
||||
|
||||
this.div.style.left = -parseInt(this.map.layerContainerDiv.style.left) + "px";
|
||||
this.div.style.top = -parseInt(this.map.layerContainerDiv.style.top) + "px";
|
||||
var extent = this.map.getExtent();
|
||||
this.renderer.setExtent(extent);
|
||||
|
||||
this.renderer.root.style.visibility = "visible";
|
||||
}
|
||||
|
||||
|
||||
if (!this.drawn || zoomChanged) {
|
||||
this.drawn = true;
|
||||
for(var i = 0; i < this.features.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user