You are here

public static function GoogleStaticMaps::getDefaultSettings in Geolocation Field 8.3

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

Provide a populated settings array.

Return value

array The settings array with the default map settings.

Overrides GoogleMapsProviderBase::getDefaultSettings

File

modules/geolocation_google_maps/modules/geolocation_google_static_maps/src/Plugin/geolocation/MapProvider/GoogleStaticMaps.php, line 28

Class

GoogleStaticMaps
Provides Google Maps.

Namespace

Drupal\geolocation_google_static_maps\Plugin\geolocation\MapProvider

Code

public static function getDefaultSettings() {
  return array_replace_recursive(parent::getDefaultSettings(), [
    'height' => '400',
    'width' => '400',
    'scale' => '1',
    'format' => 'png',
  ]);
}