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

commits at openlayers.org commits at openlayers.org
Mon Mar 5 12:32:57 EST 2007


Author: sderle
Date: 2007-03-05 12:32:55 -0500 (Mon, 05 Mar 2007)
New Revision: 2319

Modified:
   sandbox/vector-2.4/lib/OpenLayers/Renderer/SVG.js
   sandbox/vector-2.4/lib/OpenLayers/Renderer/VML.js
Log:
Correct typo: getLenth -> getLength.

Modified: sandbox/vector-2.4/lib/OpenLayers/Renderer/SVG.js
===================================================================
--- sandbox/vector-2.4/lib/OpenLayers/Renderer/SVG.js	2007-03-05 17:16:01 UTC (rev 2318)
+++ sandbox/vector-2.4/lib/OpenLayers/Renderer/SVG.js	2007-03-05 17:32:55 UTC (rev 2319)
@@ -68,11 +68,11 @@
             
             for (var i = 0; i < childNodesLength; i++) {
                 var node = this.root.childNodes[i];
-                var strokeWidth = this._getLenthFromResolutions(node.getAttributeNS(null, "stroke-width"), 
+                var strokeWidth = this._getLengthFromResolutions(node.getAttributeNS(null, "stroke-width"), 
                                                                 lastResolution, this.resolution);
                 node.setAttributeNS(null, "stroke-width", strokeWidth);
                 if (node.geometry && node.geometry.x != null && node.geometry.y != null) {
-                    var radius = this._getLenthFromResolutions(node.getAttributeNS(null, "r"), 
+                    var radius = this._getLengthFromResolutions(node.getAttributeNS(null, "r"), 
                                                                lastResolution, this.resolution);
                     node.setAttributeNS(null, "r", radius);
                 }
@@ -153,7 +153,7 @@
         node.setAttributeNS(null, "cx", geometry.x);
         node.setAttributeNS(null, "cy", geometry.y);
 
-        node.setAttributeNS(null, "r", this._getLenthFromResolutions(style.pointRadius, 
+        node.setAttributeNS(null, "r", this._getLengthFromResolutions(style.pointRadius, 
                                                                      1, this.resolution));
         
         this._setStyle(node, style, true, true);
@@ -341,7 +341,7 @@
         if (isStroked) {
             node.setAttributeNS(null, "stroke", style.strokeColor);
             node.setAttributeNS(null, "stroke-opacity", style.strokeOpacity);
-            node.setAttributeNS(null, "stroke-width", this._getLenthFromResolutions(style.strokeWidth, 1, this.resolution));
+            node.setAttributeNS(null, "stroke-width", this._getLengthFromResolutions(style.strokeWidth, 1, this.resolution));
         } else {
             node.setAttributeNS(null, "stroke", "none");
         }
@@ -357,7 +357,7 @@
         return node;
     },
         
-    _getLenthFromResolutions: function(length, currentResolution, newResolution) {
+    _getLengthFromResolutions: function(length, currentResolution, newResolution) {
         return newResolution * (length / currentResolution);
     },
    

Modified: sandbox/vector-2.4/lib/OpenLayers/Renderer/VML.js
===================================================================
--- sandbox/vector-2.4/lib/OpenLayers/Renderer/VML.js	2007-03-05 17:16:01 UTC (rev 2318)
+++ sandbox/vector-2.4/lib/OpenLayers/Renderer/VML.js	2007-03-05 17:32:55 UTC (rev 2319)
@@ -71,7 +71,7 @@
         	for (var i = 0; i < childNodesLength; i++) {
                 var node = this.root.childNodes[i];
                 if (node.geometry && node.geometry.x != null && node.geometry.y != null) {
-                	var radius = this._getLenthFromResolutions((parseInt(node.style.width) / 2), 
+                	var radius = this._getLengthFromResolutions((parseInt(node.style.width) / 2), 
                                                                lastResolution, this.resolution);
                     node.style.width = radius * 2;
         			node.style.height = radius * 2;
@@ -157,7 +157,7 @@
 		// draw the circle around a center point instead of using
 		// the top left.
 
-        var radius = this._getLenthFromResolutions(style.pointRadius, 1, this.resolution);
+        var radius = this._getLengthFromResolutions(style.pointRadius, 1, this.resolution);
 
         var path = this._nodeFactory("v:path", geometry.id+"_path");
         node.setAttribute("coordsize", "10 10");
@@ -528,7 +528,7 @@
     },
 
 
-    _getLenthFromResolutions: function(length, currentResolution, newResolution) {
+    _getLengthFromResolutions: function(length, currentResolution, newResolution) {
         return newResolution * (length / currentResolution);
     },
 



More information about the Commits mailing list