You are here

public static function OpenlayersWidgetBase::defaultSettings in Openlayers 8.4

Defines the default settings for this plugin.

Return value

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

Overrides PluginSettingsBase::defaultSettings

2 calls to OpenlayersWidgetBase::defaultSettings()
OpenlayersGeofieldWidget::defaultSettings in modules/openlayers_geofield/src/Plugin/Field/FieldWidget/OpenlayersGeofieldWidget.php
Defines the default settings for this plugin.
OpenlayersGeolocationWidget::defaultSettings in modules/openlayers_geolocation/src/Plugin/Field/FieldWidget/OpenlayersGeolocationWidget.php
Defines the default settings for this plugin.
2 methods override OpenlayersWidgetBase::defaultSettings()
OpenlayersGeofieldWidget::defaultSettings in modules/openlayers_geofield/src/Plugin/Field/FieldWidget/OpenlayersGeofieldWidget.php
Defines the default settings for this plugin.
OpenlayersGeolocationWidget::defaultSettings in modules/openlayers_geolocation/src/Plugin/Field/FieldWidget/OpenlayersGeolocationWidget.php
Defines the default settings for this plugin.

File

src/Plugin/Field/FieldWidget/OpenlayersWidgetBase.php, line 77

Class

OpenlayersWidgetBase
Base class for the field widget when displaying an Openlayers map.

Namespace

Drupal\openlayers\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'map' => '',
    'height' => 400,
    'height_unit' => 'px',
    'multiple_map' => FALSE,
    'initial_settings' => [
      'lat' => 0.0,
      'lon' => 0.0,
      'zoom' => 10,
    ],
    'input' => [
      'show' => FALSE,
      'editable' => FALSE,
    ],
  ] + parent::defaultSettings();
}