You are here

openlayers_behavior_geofield.inc in Geofield 7.2

Same filename and directory in other branches
  1. 7 includes/behaviors/openlayers_behavior_geofield.inc

Implementation of OpenLayers behavior.

File

includes/behaviors/openlayers_behavior_geofield.inc
View source
<?php

/**
 * @file
 * Implementation of OpenLayers behavior.
 */

/**
 * Map Form Values Behavior
 */
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;
  }

}

Classes

Namesort descending Description
openlayers_behavior_geofield Map Form Values Behavior