function openlayers_layer_type_openlayers_views_vector::render in Openlayers 6.2
Same name and namespace in other branches
- 7.2 modules/openlayers_views/plugins/layer_types/openlayers_views_vector.inc \openlayers_layer_type_openlayers_views_vector::render()
Render.
Overrides openlayers_layer_type::render
File
- modules/
openlayers_views/ includes/ layer_types/ openlayers_views_vector.inc, line 62 - OpenLayers Views Vector Layer Type
Class
- openlayers_layer_type_openlayers_views_vector
- @file OpenLayers Views Vector Layer Type
Code
function render(&$map) {
drupal_add_js(drupal_get_path('module', 'openlayers_views') . '/includes/layer_types/openlayers_views_vector.js');
$features = $this
->get_features($this->data['views']['view'], $this->data['views']['display']);
$this->data['features'] = $features;
return $this->options;
}