[OpenLayers-Commits] r2035 - sandbox/vector/lib/OpenLayers/Layer

commits at openlayers.org commits at openlayers.org
Mon Dec 11 17:54:13 EST 2006


Author: camerons
Date: 2006-12-11 17:54:12 -0500 (Mon, 11 Dec 2006)
New Revision: 2035

Modified:
   sandbox/vector/lib/OpenLayers/Layer/Vector.js
Log:
Get style from Geometry if it is available, otherwise use the Layer style.

Modified: sandbox/vector/lib/OpenLayers/Layer/Vector.js
===================================================================
--- sandbox/vector/lib/OpenLayers/Layer/Vector.js	2006-12-11 13:26:44 UTC (rev 2034)
+++ sandbox/vector/lib/OpenLayers/Layer/Vector.js	2006-12-11 22:54:12 UTC (rev 2035)
@@ -86,7 +86,7 @@
         
         for (var i = 0; i < features.length; i++) {
             var style = features[i].geometry.style || this.style;
-            var feature = this.renderer.drawGeometry(features[i].geometry, this.style);
+            var feature = this.renderer.drawGeometry(features[i].geometry, style);
             
             features[i].toState(OpenLayers.State.INSERT);
             



More information about the Commits mailing list