[OpenLayers-Commits] r2323 - sandbox/vector-2.4/lib/OpenLayers/Renderer

commits at openlayers.org commits at openlayers.org
Mon Mar 5 12:43:04 EST 2007


Author: sderle
Date: 2007-03-05 12:43:02 -0500 (Mon, 05 Mar 2007)
New Revision: 2323

Modified:
   sandbox/vector-2.4/lib/OpenLayers/Renderer/SVG.js
Log:
Minor formatting/commentary fixes to SVG.js.

Modified: sandbox/vector-2.4/lib/OpenLayers/Renderer/SVG.js
===================================================================
--- sandbox/vector-2.4/lib/OpenLayers/Renderer/SVG.js	2007-03-05 17:40:58 UTC (rev 2322)
+++ sandbox/vector-2.4/lib/OpenLayers/Renderer/SVG.js	2007-03-05 17:43:02 UTC (rev 2323)
@@ -22,6 +22,8 @@
         this.container = $(element);
         
         this.root = this._nodeFactory("g", this.container.id + "_root");
+
+        // flip the SVG display Y axis upside down so it matches the display Y axis of the map
         this.root.setAttributeNS(null, "transform", "scale(1, -1)");
         
         this.svgRoot = this._nodeFactory("svg", this.container.id + "_svgRoot");
@@ -208,11 +210,11 @@
 
         var d = "";
         for (var j = 0; j < geometry.components.length; j++) {
-        	var linearRing = geometry.components[j];
-        	d += " M";
-        	for (var i = 0; i < linearRing.path.length; i++) {
+            var linearRing = geometry.components[j];
+            d += " M";
+            for (var i = 0; i < linearRing.path.length; i++) {
                 d += " " + linearRing.path[i];
-	        }
+            }
         }
         d += " z";
         



More information about the Commits mailing list