openlayers_views_plugin_display_openlayers

Hierarchy

Functions & methods

NameDescription
openlayers_views_plugin_display_openlayers::executeOpenLayers data features are used directly in the map object.
openlayers_views_plugin_display_openlayers::get_style_type
openlayers_views_plugin_display_openlayers::options_summary
openlayers_views_plugin_display_openlayers::option_definition
openlayers_views_plugin_display_openlayers::preview
openlayers_views_plugin_display_openlayers::renderRender an element. Overrides
openlayers_views_plugin_display_openlayers::uses_breadcrumb

modules/openlayers_views/views/openlayers_views_plugin_display_openlayers.inc, line 11

View code
<?php
class openlayers_views_plugin_display_openlayers extends views_plugin_display {
  function uses_breadcrumb() {
    return FALSE;
  }
  function get_style_type() {
    return 'openlayers';
  }

  /**
   * OpenLayers data features are used directly in the map object.
   */
  function execute() {
    return $this->view->render();
  }

  function preview() {
    return '<pre>' . check_plain($this->view->render()) . '</pre>';
  }

  function render() {
    return $this->view->style_plugin->render($this->view->result);
  }

  function option_definition() {
    $options = parent::option_definition();
    $options['title']['translatable'] = 0;
    $options['displays'] = array('default' => array());
    $options['style_plugin']['default'] = 'openlayers_data';
    return $options;
  }

  function options_summary(&$categories, &$options) {
    parent::options_summary($categories, $options);
    unset($options['header']);
    unset($options['footer']);
    unset($options['empty']);
    unset($options['exposed_block']);
    unset($options['analyze-theme']);
  }
}
?>