redraw on vector layers should set zoomChanged to true in the moveTo call (refs #305)

This commit is contained in:
Éric Lemoine
2012-03-09 23:40:34 +01:00
parent 1a444589e0
commit c693884f5f
2 changed files with 29 additions and 1 deletions
+4 -1
View File
@@ -537,6 +537,9 @@ OpenLayers.Layer.Vector = OpenLayers.Class(OpenLayers.Layer, {
if (OpenLayers.Renderer.NG && this.renderer instanceof OpenLayers.Renderer.NG) {
this.drawn = false;
}
this.resolution = null; // this is to force Layer.redraw set
// zoomChanged to true in the moveTo
// call
return OpenLayers.Layer.prototype.redraw.apply(this, arguments);
},
@@ -1023,4 +1026,4 @@ OpenLayers.Layer.Vector = OpenLayers.Class(OpenLayers.Layer, {
},
CLASS_NAME: "OpenLayers.Layer.Vector"
});
});