openlayers_plus_behavior_permalink.inc in OpenLayers Plus 7.2
Same filename and directory in other branches
A version of Permalink optimized to persist layers between pages with different layer setups and without explicitly using the control.
File
behaviors/openlayers_plus_behavior_permalink.incView source
<?php
/**
* @file
* A version of Permalink optimized to persist layers between pages
* with different layer setups and without explicitly using the control.
*/
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;
}
}
Classes
Name | Description |
---|---|
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. |