You are here

class openlayers_behavior in Openlayers 6.2

Same name and namespace in other branches
  1. 7.2 openlayers.module \openlayers_behavior

We define base classes in the core module. All other parent classes can be autoloaded through ctools.

Hierarchy

Expanded class hierarchy of openlayers_behavior

3 string references to 'openlayers_behavior'
hook_openlayers_behaviors in docs/openlayers.api.php
OpenLayers Behaviors
openlayers_cck_openlayers_behaviors in modules/openlayers_cck/openlayers_cck.module
Implementation of hook_openlayers_behaviors
_openlayers_openlayers_behaviors in includes/openlayers.behaviors.inc
Implementation of hook_openlayers_behaviors().

File

./openlayers.module, line 855
Main OpenLayers API File

View source
class openlayers_behavior {
  var $options, $map;
  function __construct($options = array(), $map = array()) {
    $this->options = $options + $this
      ->options_init();
    $this->map = $map;
  }

  /*
   * @return array of JavaScript functions required to be defined
   * in order for this function to work
   */
  function js_dependency() {
    return array();
  }
  function options_init() {
    return array();
  }

  /*
   * @param $defaults default values for the form
   * @return a FormAPI form
   */
  function options_form($defaults = array()) {
    return array();
  }
  function render(&$map) {
  }

}

Members