You are here

public static function ControlDirections::getDefaultSettings in Geolocation Field 8.3

Provide a populated settings array.

Return value

array The settings array with the default map settings.

Overrides ControlGoogleElementBase::getDefaultSettings

File

modules/geolocation_google_maps/src/Plugin/geolocation/MapFeature/ControlDirections.php, line 23

Class

ControlDirections
Provides Directions Service.

Namespace

Drupal\geolocation_google_maps\Plugin\geolocation\MapFeature

Code

public static function getDefaultSettings() {
  $settings = parent::getDefaultSettings();
  $settings['origin_source'] = 'exposed';
  $settings['origin_static_value'] = '';
  $settings['destination_source'] = 'exposed';
  $settings['destination_static_value'] = '';
  $settings['travel_mode'] = 'exposed';
  $settings['directions_container'] = 'below';
  $settings['directions_container_custom_id'] = '';
  return $settings;
}