You are here

public static function LeafletControlScale::getDefaultSettings in Geolocation Field 8.2

Same name and namespace in other branches
  1. 8.3 modules/geolocation_leaflet/src/Plugin/geolocation/MapFeature/LeafletControlScale.php \Drupal\geolocation_leaflet\Plugin\geolocation\MapFeature\LeafletControlScale::getDefaultSettings()

Provide a populated settings array.

Return value

array The settings array with the default map settings.

Overrides ControlElementBase::getDefaultSettings

File

modules/geolocation_leaflet/src/Plugin/geolocation/MapFeature/LeafletControlScale.php, line 22

Class

LeafletControlScale
Provides Scale control element.

Namespace

Drupal\geolocation_leaflet\Plugin\geolocation\MapFeature

Code

public static function getDefaultSettings() {
  return [
    'metric' => TRUE,
    'imperial' => TRUE,
  ];
}