You are here

class openlayers_plus_behavior_permalink in OpenLayers Plus 7.2

Same name and namespace in other branches
  1. 7.3 behaviors/openlayers_plus_behavior_permalink.inc \openlayers_plus_behavior_permalink
  2. 7 behaviors/openlayers_plus_behavior_permalink.inc \openlayers_plus_behavior_permalink

@file A version of Permalink optimized to persist layers between pages with different layer setups and without explicitly using the control.

Hierarchy

Expanded class hierarchy of openlayers_plus_behavior_permalink

1 string reference to 'openlayers_plus_behavior_permalink'
openlayers_plus_openlayers_behaviors in ./openlayers_plus.module
Implements hook_openlayers_behaviors().

File

behaviors/openlayers_plus_behavior_permalink.inc, line 8
A version of Permalink optimized to persist layers between pages with different layer setups and without explicitly using the control.

View source
class openlayers_plus_behavior_permalink extends openlayers_behavior {

  /**
   * Override of options_init().
   */
  public function options_init() {
    return array();
  }

  /**
   * Render.
   */
  public function render(&$map) {
    drupal_add_js(drupal_get_path('module', 'openlayers_plus') . '/behaviors/openlayers_plus_behavior_permalink.js');
    return $this->options;
  }

}

Members