You are here

class openlayers_behavior_geofield in Geofield 7.2

Same name and namespace in other branches
  1. 7 includes/behaviors/openlayers_behavior_geofield.inc \openlayers_behavior_geofield

Map Form Values Behavior

Hierarchy

Expanded class hierarchy of openlayers_behavior_geofield

2 string references to 'openlayers_behavior_geofield'
geofield_openlayers_behaviors in ./geofield.openlayers.inc
Implements hook_openlayers_behaviors().
openlayers_field_widget_settings_form in ./geofield.widgets.openlayers.inc
Implements hook_field_widget_settings_form().

File

includes/behaviors/openlayers_behavior_geofield.inc, line 11
Implementation of OpenLayers behavior.

View source
class openlayers_behavior_geofield extends openlayers_behavior {
  function options_init() {
    return array(
      'geofield' => '',
    );
  }
  function render(&$map) {
    $geopath = drupal_get_path('module', 'geofield');
    drupal_add_css($geopath . '/includes/behaviors/css/openlayers_behavior_geofield.css');
    drupal_add_js($geopath . '/includes/behaviors/js/openlayers_behavior_geofield.js');
    return $this->options;
  }

}

Members