? 710514-activated-layers-02.patch
? 710514-activated-layers-03.patch
? dependency-detection.patch
? dependency_detection.patch
? display_projection_fix.patch
? docs_oa
? features_dependencies.patch
? maptiler_layer_type.patch
? modify_feature.diff
? multilingual.diff
? openlayers-maxextent.patch
? overlay_baselayer_unification.patch
? rmup.sh
? stash.diff
? titles_and_translation.diff
? unification_full.patch
? vector_layer_type_property.patch
? wms_and_dependencies.patch
? 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_ui/includes/.openlayers_ui.styles.inc.swp
Index: openlayers.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/openlayers/openlayers.module,v
retrieving revision 1.69.2.64
diff -u -p -r1.69.2.64 openlayers.module
--- openlayers.module	29 Apr 2010 20:58:37 -0000	1.69.2.64
+++ openlayers.module	30 Apr 2010 14:39:52 -0000
@@ -70,6 +70,32 @@ function openlayers_ctools_plugin_api($m
 }
 
 /**
+ * Implementation of hook_features_export().
+ */
+function openlayers_layers_features_export($data, &$export, $module_name = '') {
+  $modules = module_implements('openlayers_layer_types');
+  $layer = openlayers_layer_load(current($data));
+
+  /*
+   * ensure that modules which provide layer types are
+   * included as dependencies when the layers those 
+   * layer types generate are exported
+   */
+  foreach ($modules as $module) {
+    $layer_types = module_invoke($module, 'openlayers_layer_types');
+    $export['features']['openlayers'][current($data)] = current($data);;
+
+    foreach ($layer_types as $layer_type_name => $layer_type) {
+      if ($layer->data['layer_type'] == $layer_type_name) {
+        $export['dependencies'][$module] = $module;
+      }
+    }
+  }
+
+  return array();
+}
+
+/**
  * Include necessary CSS and JS for OpenLayers.
  *
  * @ingroup openlayers_api
