You are here

function views_plugin_style_geojson::render in Views GeoJSON 6

Same name and namespace in other branches
  1. 7 views/views_plugin_style_geojson.inc \views_plugin_style_geojson::render()

Implementation of view_style_plugin::render()

File

views/views_plugin_style_geojson.inc, line 270
Views style plugin to render nodes in the GeoJSON format.

Class

views_plugin_style_geojson
Implementation of views_plugin_style

Code

function render() {
  $view = $this->view;
  $options = $this->options;
  $field = $view->field;
  $display = $this->display;
  $features = array();
  foreach ($view->result as $count => $row) {
    $view->row_index = $count;
    $features[] = _views_geojson_render_fields($view, $row, $count);
  }
  unset($view->row_index);
  return theme($this
    ->theme_functions(), array(
    'view' => $view,
    'options' => $options,
    'features' => $features,
  ));
}