? callback_pointRadius.patch
? cleanup_openlayers.patch
? docs_oa
? fix_multiple.patch
? grouped_rendered.patch
? grouped_rendered.patch.1
? modify_feature.diff
? multilingual.diff
? non_collection_features_825098.patch
? openlayers_views_handling.patch
? overlay_baselayer_unification.patch
? stash.diff
? stash.patch.2
? stash_views_debugging_andzooms.patch
? styles_all.patch
? titles_and_translation.diff
? unification_full.patch
? vector_layer_type_property.patch
? wms_projection.patch
? includes/behaviors/js/.openlayers_behavior_drawfeatures.js.swp
? includes/layer_types/multimap.inc
? includes/layer_types/multimap.js
? includes/layer_types/wms_client.inc
? js/openlayers
? modules/openlayers_cck/includes/behaviors/js/CustomEditingToolbar.js
? modules/openlayers_views/views/.openlayers_views_style_data.inc.swp
Index: includes/behaviors/js/openlayers_behavior_drawfeatures.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/openlayers/includes/behaviors/js/Attic/openlayers_behavior_drawfeatures.js,v
retrieving revision 1.1.2.8
diff -u -p -r1.1.2.8 openlayers_behavior_drawfeatures.js
--- includes/behaviors/js/openlayers_behavior_drawfeatures.js	6 Jun 2010 19:54:28 -0000	1.1.2.8
+++ includes/behaviors/js/openlayers_behavior_drawfeatures.js	11 Jun 2010 22:55:49 -0000
@@ -48,11 +48,19 @@ Drupal.behaviors.openlayers_behavior_dra
       var wktFormat = new OpenLayers.Format.WKT();
       var wkt = openlayers_drawfeature_element.text();
       var features = wktFormat.read(wkt);
-      for(var i in features) {
-        features[i].geometry = features[i].geometry.transform(
+      if ($.isArray(features)) {
+        for(var i in features) {
+          features[i].geometry = features[i].geometry.transform(
+            new OpenLayers.Projection('EPSG:4326'),
+            data.openlayers.projection
+          );
+        }
+      } else {
+        features.geometry = features.geometry.transform(
           new OpenLayers.Projection('EPSG:4326'),
           data.openlayers.projection
         );
+        features = [features];
       }
       dataLayer.addFeatures(features);
     }
