You are here

public static function GeofieldGoogleStaticMapFormatter::defaultSettings in Geofield Map 8.2

Defines the default settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides PluginSettingsBase::defaultSettings

File

modules/geofield_map_extras/src/Plugin/Field/FieldFormatter/GeofieldGoogleStaticMapFormatter.php, line 91

Class

GeofieldGoogleStaticMapFormatter
Plugin implementation of the 'geofield_static_google_map' formatter.

Namespace

Drupal\geofield_map_extras\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'width' => 200,
    'height' => 200,
    'scale' => 2,
    'zoom' => 13,
    'langcode' => 'en',
    'static_map_type' => 'roadmap',
    'marker_color' => '#ff0000',
    'marker_size' => 'normal',
  ] + parent::defaultSettings();
}