You are here

function gmap_plugin_style_gmap::option_definition in GMap Module 6.2

Same name and namespace in other branches
  1. 6 gmap_plugin_style_gmap.inc \gmap_plugin_style_gmap::option_definition()
  2. 7.2 gmap_plugin_style_gmap.inc \gmap_plugin_style_gmap::option_definition()
  3. 7 gmap_plugin_style_gmap.inc \gmap_plugin_style_gmap::option_definition()

Set default options

File

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

Class

gmap_plugin_style_gmap
Style plugin to render a map.

Code

function option_definition() {
  $options = parent::option_definition();
  $options['macro'] = array(
    'default' => '[gmap ]',
  );
  $options['datasource'] = array(
    'default' => 'location',
  );
  $options['markers'] = array(
    'default' => 'static',
  );
  $options['markertype'] = array(
    'default' => 'drupal',
  );
  $options['latfield'] = array(
    'default' => '',
  );
  $options['lonfield'] = array(
    'default' => '',
  );
  $options['markerfield'] = array(
    'default' => '',
  );
  $options['enablermt'] = array(
    'default' => FALSE,
  );
  $options['rmtfield'] = array(
    'default' => '',
  );
  $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['tooltipenabled'] = array(
    'default' => 0,
  );
  $options['tooltipfield'] = array(
    'default' => '',
  );
  return $options;
}