protected function CommonMap::defineOptions in Geolocation Field 8
Same name and namespace in other branches
- 8.3 src/Plugin/views/style/CommonMap.php \Drupal\geolocation\Plugin\views\style\CommonMap::defineOptions()
Information about options for all kinds of purposes will be held here.
'option_name' => array(
- 'default' => default value,
- 'contains' => (optional) array of items this contains, with its own
defaults, etc. If contains is set, the default will be ignored and
assumed to be array().
),
Return value
array Returns the options of this handler/plugin.
Overrides StylePluginBase::defineOptions
File
- src/
Plugin/ views/ style/ CommonMap.php, line 448
Class
- CommonMap
- Allow to display several field items on a common map.
Namespace
Drupal\geolocation\Plugin\views\styleCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['show_raw_locations'] = [
'default' => '0',
];
$options['even_empty'] = [
'default' => '0',
];
$options['geolocation_field'] = [
'default' => '',
];
$options['title_field'] = [
'default' => '',
];
$options['icon_field'] = [
'default' => '',
];
$options['marker_scroll_to_result'] = [
'default' => 0,
];
$options['marker_row_number'] = [
'default' => FALSE,
];
$options['id_field'] = [
'default' => '',
];
$options['marker_clusterer'] = [
'default' => 0,
];
$options['marker_clusterer_image_path'] = [
'default' => '',
];
$options['marker_clusterer_styles'] = [
'default' => [],
];
$options['dynamic_map'] = [
'contains' => [
'enabled' => [
'default' => 0,
],
'update_handler' => [
'default' => '',
],
'update_target' => [
'default' => '',
],
'hide_form' => [
'default' => 0,
],
'views_refresh_delay' => [
'default' => '1200',
],
],
];
$options['centre'] = [
'default' => '',
];
$options['context_popup_content'] = [
'default' => '',
];
foreach (self::getGoogleMapDefaultSettings() as $key => $setting) {
$options[$key] = [
'default' => $setting,
];
}
return $options;
}