? image_path.patch
? includes/.openlayers.admin.inc.swp
Index: includes/openlayers.form.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/openlayers/includes/openlayers.form.inc,v
retrieving revision 1.23
diff -u -p -r1.23 openlayers.form.inc
--- includes/openlayers.form.inc	9 Jun 2009 07:19:17 -0000	1.23
+++ includes/openlayers.form.inc	18 Jun 2009 15:34:04 -0000
@@ -161,6 +161,12 @@ function _openlayers_map_form($form_stat
     '#default_value' => $defaults['height'],
     '#maxlength' => 128,
   );
+  $form['image_path'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Image Path'),
+    '#description' => t('The path to a directory for OpenLayers to look for UI graphics. If blank, default graphics are used.'),
+    '#default_value' => $defaults['image_path'], 
+  );
   
   // Map center properties
   $form['center'] = array(
@@ -587,4 +593,4 @@ function _openlayers_form_center_map($de
   drupal_add_js($passvalues, 'setting');
   // Render map
   return openlayers_render_map($centermap_def);
-}
\ No newline at end of file
+}
Index: js/openlayers.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/openlayers/js/openlayers.js,v
retrieving revision 1.40
diff -u -p -r1.40 openlayers.js
--- js/openlayers.js	30 May 2009 19:29:07 -0000	1.40
+++ js/openlayers.js	18 Jun 2009 15:34:05 -0000
@@ -84,7 +84,10 @@ OL.renderMap = function(map) {
   
   // Create base map options
   var options = OL.createMapOptions(map.options, map.controls, map.id);
-  
+
+  if(map.image_path) {
+    OpenLayers.ImgPath = map.image_path;
+  } 
   // Store map in our registry of active OpenLayers objects
   OL.maps[map.id].map = new OpenLayers.Map(map.id, options);
   
@@ -407,4 +410,4 @@ Drupal.theme.prototype.mapControls = fun
   var newcontainer = $('<div></div>');
   newcontainer.addClass('openlayers-controls').attr('id', 'openlayers-controls-' + mapid).css('position', 'relative').css('top', '-' + height);
   return newcontainer;
-}
\ No newline at end of file
+}
