? olviews_2_layer_options.patch
Index: modules/openlayers_views/includes/layer_types/openlayers_views_vector.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/openlayers/modules/openlayers_views/includes/layer_types/Attic/openlayers_views_vector.js,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 openlayers_views_vector.js
--- modules/openlayers_views/includes/layer_types/openlayers_views_vector.js	9 Nov 2009 15:51:47 -0000	1.1.2.1
+++ modules/openlayers_views/includes/layer_types/openlayers_views_vector.js	30 Nov 2009 21:55:48 -0000
@@ -1,9 +1,8 @@
 Drupal.openlayers.layer.openlayers_views_vector = function (name, map, options) {
   var styleMap = Drupal.openlayers.getStyleMap(map, options.name);
     options.projection = new OpenLayers.Projection('EPSG:'+options.projection);
-    //layer.styleMap = styleMap;
-    var styleMap = Drupal.openlayers.getStyleMap(map, options.name);
-    var layer = new OpenLayers.Layer.Vector(name, {'styleMap': styleMap});
+    options.options.styleMap = Drupal.openlayers.getStyleMap(map, options.name);
+    var layer = new OpenLayers.Layer.Vector(name, options.options);
     if (options.features) {
       Drupal.openlayers.addFeatures(map, layer, options.features);
     }
