diff --git a/lib/OpenLayers/Control/Graticule.js b/lib/OpenLayers/Control/Graticule.js index b36b2ec509..1020bce5cb 100644 --- a/lib/OpenLayers/Control/Graticule.js +++ b/lib/OpenLayers/Control/Graticule.js @@ -155,7 +155,6 @@ OpenLayers.Control.Graticule = OpenLayers.Class(OpenLayers.Control, { if (!mapBounds) { return; } - var mapRect = mapBounds.toGeometry(); //clear out the old grid this.gratLayer.destroyFeatures(); @@ -210,7 +209,7 @@ OpenLayers.Control.Graticule = OpenLayers.Class(OpenLayers.Control, { * goes from the center in both directions to the edge. */ //get the central longitude line, increment the latitude - var iter = 0 + var iter = 0; var centerLonPoints = [mapCenterLL.clone()]; var newPoint = mapCenterLL.clone(); var mapXY; @@ -227,7 +226,7 @@ OpenLayers.Control.Graticule = OpenLayers.Class(OpenLayers.Control, { } while (mapBounds.containsPixel(mapXY) && ++iter<1000); //get the central latitude line, increment the longitude - iter = 0 + iter = 0; var centerLatPoints = [mapCenterLL.clone()]; newPoint = mapCenterLL.clone(); do {