[OpenLayers-Commits] r11810 - sandbox/tschaub/canvas/lib/OpenLayers/Renderer

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Wed Mar 30 17:22:42 EDT 2011


Author: tschaub
Date: 2011-03-30 14:22:42 -0700 (Wed, 30 Mar 2011)
New Revision: 11810

Modified:
   sandbox/tschaub/canvas/lib/OpenLayers/Renderer/Canvas.js
Log:
Removing the workaround for #3114.

Modified: sandbox/tschaub/canvas/lib/OpenLayers/Renderer/Canvas.js
===================================================================
--- sandbox/tschaub/canvas/lib/OpenLayers/Renderer/Canvas.js	2011-03-30 21:19:39 UTC (rev 11809)
+++ sandbox/tschaub/canvas/lib/OpenLayers/Renderer/Canvas.js	2011-03-30 21:22:42 UTC (rev 11810)
@@ -209,15 +209,6 @@
         var numRows = this.root.width;
         var numCols = this.root.height;
 
-        if (x > numRows || y > numCols || x < 0 || y < 0) {
-            // This check is required because setCenter is called three 
-            // times when the first layer is added.  On the first call
-            // the extent and resolution are inconsistent and we get
-            // huge numbers for x and y.
-            // TODO: Fix Map.js and remove this check
-            return;
-        }
-
         var opacity = style.graphicOpacity || style.fillOpacity;
         
         var rgb = this.featureIdToRGB(featureId);



More information about the Commits mailing list