? 872008-openlayers-raw-layer-style.patch
Index: includes/layer_types/js/raw.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/openlayers/includes/layer_types/js/Attic/raw.js,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 raw.js
--- includes/layer_types/js/raw.js	30 May 2010 21:46:15 -0000	1.1.2.1
+++ includes/layer_types/js/raw.js	2 Aug 2010 21:10:13 -0000
@@ -4,15 +4,20 @@
  * OpenLayers Raw Layer Handler
  */
 Drupal.openlayers.layer.openlayers_raw = function(title, map, options) {
+  options.options = options.options || {}
+
   // Note, so that we do not pass all the features along to the Layer
   // options, we use the options.options to give to Layer
   // options.options.drupalID = options.drupalID;
   var layer = new OpenLayers.Layer.Vector(title, options.options);
-  
-  // Add fetures if there are any
+
+  // Get style map
+  options.options.styleMap = Drupal.openlayers.getStyleMap(map, options.drupalID);
+
+  // Add features if there are any
   if (options.features) {
     Drupal.openlayers.addFeatures(map, layer, options.features);
   }
-  
+
   return layer;
 };
