public function yamaps_views_plugin_style_default_map::option_definition in Yandex.Maps 7
Returns default settings for the map.
Return value
array Default values.
Overrides views_plugin_style::option_definition
File
- modules/
yamaps_views/ handlers/ yamaps_views_plugin_style_default_map.inc, line 24 - Class yamaps_views_plugin_style_default_map.
Class
- yamaps_views_plugin_style_default_map
- Class defines Yandex Maps style plugin handler.
Code
public function option_definition() {
$options = parent::option_definition();
$options['yandex_map_field'] = [
'default' => '',
];
$options['placemarks'] = [
'default' => '',
];
$options['lines'] = [
'default' => '',
];
$options['polygons'] = [
'default' => '',
];
$options['routes'] = [
'default' => '',
];
$options['yamaps_center_options'] = [
'default' => [
'map_center_type' => 'geolocation',
'map_center_geolocation' => '',
'zoom' => 6,
'map_container' => [
'coords' => '',
],
],
];
$options['placemark_title'] = [
'default' => self::PLACEMARK_DEFAULT_FIELD,
];
$options['baloon_title'] = [
'default' => self::PLACEMARK_DEFAULT_FIELD,
];
$options['baloon_body'] = [
'default' => self::PLACEMARK_DEFAULT_FIELD,
];
$options['type'] = [
'default' => 'yandex#map',
];
$options['map_center'] = [
'default' => '',
];
$options['map_grouping_cat'] = [
'default' => 'standart',
];
return $options;
}