You are here

protected function YaMaps::defineOptions in Yandex.Maps 8

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/YaMaps.php, line 295

Class

YaMaps
Allow to display several field items on a yandex map.

Namespace

Drupal\yamaps\Plugin\views\style

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $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' => static::PLACEMARK_DEFAULT_FIELD,
  ];
  $options['balloon_title'] = [
    'default' => static::PLACEMARK_DEFAULT_FIELD,
  ];
  $options['balloon_body'] = [
    'default' => static::PLACEMARK_DEFAULT_FIELD,
  ];
  $options['type'] = [
    'default' => 'yandex#map',
  ];
  $options['map_center'] = [
    'default' => '',
  ];
  $options['map_grouping_cat'] = [
    'default' => 'standard',
  ];
  return $options;
}