You are here

function openlayers_views_style_data::render in Openlayers 6.2

Same name and namespace in other branches
  1. 7.2 modules/openlayers_views/views/openlayers_views_style_data.inc \openlayers_views_style_data::render()

Render the map features.

File

modules/openlayers_views/views/openlayers_views_style_data.inc, line 443
This file holds style plugin for OpenLayers Views

Class

openlayers_views_style_data
@class Extension of the Views Plugin Syle for OpenLayers

Code

function render($result) {

  // Check for live preview.
  if (!empty($this->view->live_preview)) {
    return t('OpenLayers views are not compatible with live preview.');
  }

  // Group the rows according to the grouping field, if specified.
  $sets = $this
    ->render_grouping($result, $this->options['grouping']);
  return $this
    ->map_features($sets);
}