You are here

function geofield_ymap_plugin_style_geofield_ymap::option_definition in Geofield Yandex Maps 7

Set default options

Overrides views_plugin_style::option_definition

File

./geofield_ymap_plugin_style_geofield_ymap.inc, line 7

Class

geofield_ymap_plugin_style_geofield_ymap

Code

function option_definition() {
  $options = parent::option_definition();
  $options['map_type'] = array(
    'default' => 'yandex#map',
  );
  $options['map_center'] = array(
    'default' => '0,0',
  );
  $options['map_zoom'] = array(
    'default' => 10,
  );
  $options['map_auto_centering'] = array(
    'default' => FALSE,
    'bool' => TRUE,
  );
  $options['map_auto_zooming'] = array(
    'default' => FALSE,
    'bool' => TRUE,
  );
  $options['map_clusterize'] = array(
    'default' => FALSE,
    'bool' => TRUE,
  );
  $options['map_hide_empty'] = array(
    'default' => FALSE,
    'bool' => TRUE,
  );
  $options['map_save_state'] = array(
    'default' => FALSE,
    'bool' => TRUE,
  );
  $options['map_object_preset'] = array(
    'default' => '',
  );
  $options['map_controls'] = array(
    'default' => 'default',
  );
  $options['map_behaviors'] = array(
    'default' => 'default',
  );
  $options['hint_content_field'] = array(
    'default' => '',
  );
  $options['icon_content_field'] = array(
    'default' => '',
  );
  $options['cluster_caption_field'] = array(
    'default' => '',
  );
  $options['preset_field'] = array(
    'default' => '',
  );
  $options['additional_settings']['object_options'] = array(
    'default' => '',
  );
  $options['additional_settings']['object_options_use_tokens'] = array(
    'default' => FALSE,
    'bool' => TRUE,
  );
  return $options;
}