You are here

function openlayers_views_style_data::option_definition in Openlayers 7.2

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

Set default options

Overrides views_plugin_style->option_definition

Overrides views_plugin_style::option_definition

File

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

Class

openlayers_views_style_data
@class Extension of the Views Plugin Style for OpenLayers

Code

function option_definition() {
  $options = parent::option_definition();
  $options['data_source'] = array(
    'projection' => 'EPSG:4326',
    'default' => 'openlayers_wkt',
  );
  $options['attributes'] = array(
    'default' => array(),
  );
  return $options;
}