You are here

function openlayers_views_style_map::option_definition in Openlayers 6.2

Same name and namespace in other branches
  1. 6 modules/openlayers_views/views/openlayers_views_style_map.inc \openlayers_views_style_map::option_definition()
  2. 7.2 modules/openlayers_views/views/openlayers_views_style_map.inc \openlayers_views_style_map::option_definition()

Set default options

File

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

Class

openlayers_views_style_map
@class Extension of the Views Plugin Syle for OpenLayers

Code

function option_definition() {
  $options = parent::option_definition();
  $options['preset'] = array(
    'default' => variable_get('openlayers_default_preset', 'default'),
  );
  return $options;
}