[OpenLayers-Commits] r2077 - in sandbox/vector: examples lib/OpenLayers/Layer

commits at openlayers.org commits at openlayers.org
Sun Dec 17 08:12:40 EST 2006


Author: crschmidt
Date: 2006-12-17 08:12:39 -0500 (Sun, 17 Dec 2006)
New Revision: 2077

Modified:
   sandbox/vector/examples/wfs-T.html
   sandbox/vector/lib/OpenLayers/Layer/Vector.js
Log:
Revert previous commit. 


Modified: sandbox/vector/examples/wfs-T.html
===================================================================
--- sandbox/vector/examples/wfs-T.html	2006-12-17 13:07:32 UTC (rev 2076)
+++ sandbox/vector/examples/wfs-T.html	2006-12-17 13:12:39 UTC (rev 2077)
@@ -38,7 +38,7 @@
             line = new OpenLayers.Layer.WFS("Line",
                 "/geoserver/wfs",
                 {typename: "line", geometry_column: 'the_geom', maxZoomLevel : 4},
-                {featureClass: OpenLayers.Feature.WFS, style: new OpenLayers.Style({strokeColor: "red"}), 'redrawWhileMoving': false});
+                {featureClass: OpenLayers.Feature.WFS, style: new OpenLayers.Style({strokeColor: "red"})});
             map.addLayer(line);
             if (!map.getCenter()) {
             map.setCenter(new OpenLayers.LonLat(0, 45), 6);

Modified: sandbox/vector/lib/OpenLayers/Layer/Vector.js
===================================================================
--- sandbox/vector/lib/OpenLayers/Layer/Vector.js	2006-12-17 13:07:32 UTC (rev 2076)
+++ sandbox/vector/lib/OpenLayers/Layer/Vector.js	2006-12-17 13:12:39 UTC (rev 2077)
@@ -16,8 +16,6 @@
 
     /** @type Boolean */
     isFixed: true,
-
-    redrawWhileMoving: true,
 	
     /** @type Boolean */
 	isVector: true,
@@ -142,13 +140,11 @@
     },
 
     moveTo:function(bounds, zoomChanged, minor) {
-        if (!minor && !this.redrawWhileMoving) {
-            OpenLayers.Layer.prototype.moveTo.apply(this, arguments);
-            this.renderer.createRoot(this.div);
-            this.renderer.setSize(this.map.getSize().w, this.map.getSize().h);
-            this.renderer.setExtent(this.map.getExtent().left, this.map.getExtent().top, 
+        OpenLayers.Layer.prototype.moveTo.apply(this, arguments);
+        this.renderer.createRoot(this.div);
+        this.renderer.setSize(this.map.getSize().w, this.map.getSize().h);
+        this.renderer.setExtent(this.map.getExtent().left, this.map.getExtent().top, 
                                 this.map.getExtent().getWidth(), this.map.getExtent().getHeight());
-        }   
     },
     
     



More information about the Commits mailing list