You are here

protected function GeolocationGpx::defaultSettings in Geolocation Field 8.3

Default settings.

Return value

array Default settings.

Overrides DataProviderBase::defaultSettings

File

modules/geolocation_gpx/src/Plugin/geolocation/DataProvider/GeolocationGpx.php, line 29

Class

GeolocationGpx
Provides GPX.

Namespace

Drupal\geolocation_gpx\Plugin\geolocation\DataProvider

Code

protected function defaultSettings() {
  $settings = parent::defaultSettings();
  $settings['return_tracks'] = TRUE;
  $settings['return_waypoints'] = TRUE;
  $settings['return_track_locations'] = FALSE;
  $settings['return_waypoint_locations'] = FALSE;
  $settings['track_stroke_color'] = '#FF0044';
  $settings['track_stroke_color_randomize'] = TRUE;
  $settings['track_stroke_width'] = 2;
  $settings['track_stroke_opacity'] = 1;
  return $settings;
}