You are here

public static function Drawing::getDefaultSettings in Geolocation Field 8.2

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

Provide a populated settings array.

Return value

array The settings array with the default map settings.

Overrides MapFeatureBase::getDefaultSettings

File

modules/geolocation_google_maps/src/Plugin/geolocation/MapFeature/Drawing.php, line 23

Class

Drawing
Provides Drawing.

Namespace

Drupal\geolocation_google_maps\Plugin\geolocation\MapFeature

Code

public static function getDefaultSettings() {
  return [
    'polyline' => FALSE,
    'strokeColor' => '#FF0000',
    'strokeOpacity' => 0.8,
    'strokeWeight' => 2,
    'geodesic' => FALSE,
    'polygon' => FALSE,
    'fillColor' => '#FF0000',
    'fillOpacity' => 0.35,
  ];
}