You are here

function openlayers_behavior_geofield::render in Geofield 7

Same name and namespace in other branches
  1. 7.2 includes/behaviors/openlayers_behavior_geofield.inc \openlayers_behavior_geofield::render()

Render.

Overrides openlayers_behavior::render

File

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

Class

openlayers_behavior_geofield
Map Form Values Behavior

Code

function render(&$map) {
  $geopath = drupal_get_path('module', 'geofield');
  drupal_add_js($geopath . '/includes/behaviors/js/openlayers_behavior_geofield.js');
  return $this->options;
}