Index: includes/behaviors/openlayers_behavior_fullscreen.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/openlayers/includes/behaviors/Attic/openlayers_behavior_fullscreen.inc,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 openlayers_behavior_fullscreen.inc
--- includes/behaviors/openlayers_behavior_fullscreen.inc	2 Feb 2010 18:44:45 -0000	1.1.2.1
+++ includes/behaviors/openlayers_behavior_fullscreen.inc	15 Jul 2010 10:18:31 -0000
@@ -15,7 +15,21 @@ class openlayers_behavior_fullscreen ext
    */
   function options_init() {
     return array(
-      'input_fields' => '',
+      'activated' => FALSE
+    );
+  }
+
+  /**
+   * Provide form for configurations per map.
+   */
+  function options_form($defaults) {
+    return array(
+      'activated' => array(
+        '#title' => t('Initially activated'),
+        '#type' => 'checkbox',
+        '#description' => t('Select to be in fullscreen by default.'),
+        '#default_value' => isset($defaults['activated']) ?  $defaults['activated'] : FALSE
+      )
     );
   }
 
Index: includes/behaviors/js/openlayers_behavior_fullscreen.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/openlayers/includes/behaviors/js/Attic/openlayers_behavior_fullscreen.js,v
retrieving revision 1.1.2.5
diff -u -p -r1.1.2.5 openlayers_behavior_fullscreen.js
--- includes/behaviors/js/openlayers_behavior_fullscreen.js	4 Jul 2010 18:25:11 -0000	1.1.2.5
+++ includes/behaviors/js/openlayers_behavior_fullscreen.js	15 Jul 2010 10:18:31 -0000
@@ -11,25 +11,31 @@
 Drupal.behaviors.openlayers_behavior_fullscreen = function(context) {
   var fullscreen_panel, data = $(context).data('openlayers');
   if (data && data.map.behaviors['openlayers_behavior_fullscreen']) {
+    var opts = data.map.behaviors['openlayers_behavior_fullscreen'];
     fullscreen_panel = new OpenLayers.Control.Panel(
       {
         displayClass: "openlayers_behavior_fullscreen_button_panel"
       }
     );
     data.openlayers.addControl(fullscreen_panel);
+    var toggler = OpenLayers.Function.bind(openlayers_behavior_fullscreen_toggle, data);
     var button = new OpenLayers.Control.Button({
       displayClass: "openlayers_behavior_fullscreen_button", 
       title: "Fullscreen", 
-      trigger: openlayers_behavior_fullscreen_toggle
+      trigger: toggler
     });
     fullscreen_panel.addControls([button]);
+    if ( opts['activated'] ) toggler();
   }
 }
 
-openlayers_behavior_fullscreen_toggle = function(context) {
-  $map = $(this.map.div);
-  extent = $map.data('openlayers').openlayers.getExtent();
-  
+openlayers_behavior_fullscreen_toggle = function() {
+
+  var map = this.openlayers;
+
+  $map = $(this.openlayers.div);
+  extent = map.getExtent();
+
   $map.parent().toggleClass('openlayers_map_fullscreen');
   $map.toggleClass('openlayers_map_fullscreen');
   $map.data('openlayers').openlayers.updateSize();
