diff -r 81296fe2b191 includes/layer_types/js/raw.js
--- includes/layer_types/js/raw.js	Thu Sep 02 09:55:43 2010 -0400
+++ includes/layer_types/js/raw.js	Fri Sep 03 13:43:06 2010 -0400
@@ -6,9 +6,12 @@
 Drupal.openlayers.layer.openlayers_raw = function(title, map, 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;
+  if (!options.options) {
+    options.options = new Array();
+  }
+  options.options.drupalID = options.drupalID;
   var layer = new OpenLayers.Layer.Vector(title, options.options);
-  
+
   // Add fetures if there are any
   if (options.features) {
     Drupal.openlayers.addFeatures(map, layer, options.features);
