You are here

function gmap_plugin_style_gmapextended::option_definition in GMap Module 7

Same name and namespace in other branches
  1. 7.2 gmap_plugin_style_gmapextended.inc \gmap_plugin_style_gmapextended::option_definition()

Set default options

Overrides views_plugin_style::option_definition

File

./gmap_plugin_style_gmapextended.inc, line 17
GMap style plugin.

Class

gmap_plugin_style_gmapextended
Style plugin to render a map.

Code

function option_definition() {
  $options = parent::option_definition();
  $options['fallback_values'] = array(
    'default' => array(),
  );
  $options['field_purposes'] = array(
    'default' => array(),
  );
  $options['macro'] = array(
    'default' => '[gmap ]',
  );
  $options['datasource'] = array(
    'default' => 'location',
  );
  $options['clickmode'] = array(
    'default' => 'render',
  );
  $options['markers'] = array(
    'default' => 'static',
  );
  $options['markertype'] = array(
    'default' => 'drupal',
  );
  $options['enablermt'] = array(
    'default' => FALSE,
  );
  $options['rmtcallback'] = array(
    'default' => '',
  );

  /*
  $options['center_on_nodearg'] = array('default' => 0);
  $options['center_on_nodearg_arg'] = array('default' => '');

  $options['highlight_nodearg'] = array('default' => 0);
  $options['highlight_nodearg_arg'] = array('default' => '');
  $options['highlight_nodearg_color'] = array('default' => '#FF0000');
  */
  $options['center_on_proximityfilter'] = array(
    'default' => 0,
  );
  $options['center_on_proximityfilter_rel'] = array(
    'default' => '',
  );
  return $options;
}