You are here

public static function ControlGoogleMapType::getDefaultSettings in Geolocation Field 8.3

Same name and namespace in other branches
  1. 8.2 modules/geolocation_google_maps/src/Plugin/geolocation/MapFeature/ControlGoogleMapType.php \Drupal\geolocation_google_maps\Plugin\geolocation\MapFeature\ControlGoogleMapType::getDefaultSettings()

Provide a populated settings array.

Return value

array The settings array with the default map settings.

Overrides ControlGoogleElementBase::getDefaultSettings

1 call to ControlGoogleMapType::getDefaultSettings()
ControlGoogleMapType::getSettingsForm in modules/geolocation_google_maps/src/Plugin/geolocation/MapFeature/ControlGoogleMapType.php
Provide a generic map settings form array.

File

modules/geolocation_google_maps/src/Plugin/geolocation/MapFeature/ControlGoogleMapType.php, line 22

Class

ControlGoogleMapType
Provides MapType control element.

Namespace

Drupal\geolocation_google_maps\Plugin\geolocation\MapFeature

Code

public static function getDefaultSettings() {
  $settings = parent::getDefaultSettings();
  $settings['style'] = 'DEFAULT';
  $settings['position'] = 'RIGHT_BOTTOM';
  return $settings;
}