You are here

class openlayers_cck_vector_layer in Openlayers 6.2

Vector Layer Behavior

Hierarchy

Expanded class hierarchy of openlayers_cck_vector_layer

2 string references to 'openlayers_cck_vector_layer'
openlayers_cck_openlayers_behaviors in modules/openlayers_cck/openlayers_cck.module
Implementation of hook_openlayers_behaviors
openlayers_cck_widget_settings in modules/openlayers_cck/openlayers_cck.module
Implementation of hook_widget_settings().

File

modules/openlayers_cck/includes/behaviors/openlayers_cck_vector_layer.inc, line 11
Implementation of OpenLayers behavior.

View source
class openlayers_cck_vector_layer extends openlayers_behavior {

  /**
   * Provide initial values for options.
   */
  function options_init() {
    return array(
      'features' => '',
    );
  }
  function js_dependency() {
    return array(
      'OpenLayers.Layer.Vector',
    );
  }

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

}

Members