You are here

private function GoogleMapsProviderBase::getMapTypes in Geolocation Field 8.3

Same name and namespace in other branches
  1. 8.2 modules/geolocation_google_maps/src/GoogleMapsProviderBase.php \Drupal\geolocation_google_maps\GoogleMapsProviderBase::getMapTypes()

An array of all available map types.

Return value

array The map types.

2 calls to GoogleMapsProviderBase::getMapTypes()
GoogleMapsProviderBase::getSettingsForm in modules/geolocation_google_maps/src/GoogleMapsProviderBase.php
Provide a generic map settings form array.
GoogleMapsProviderBase::getSettingsSummary in modules/geolocation_google_maps/src/GoogleMapsProviderBase.php
Provide a summary array to use in field formatters.

File

modules/geolocation_google_maps/src/GoogleMapsProviderBase.php, line 141

Class

GoogleMapsProviderBase
Class GoogleMapsProviderBase.

Namespace

Drupal\geolocation_google_maps

Code

private function getMapTypes() {
  $mapTypes = [
    static::$roadmap => 'Road map view',
    static::$satellite => 'Google Earth satellite images',
    static::$hybrid => 'A mixture of normal and satellite views',
    static::$terrain => 'A physical map based on terrain information',
  ];
  return array_map([
    $this,
    't',
  ], $mapTypes);
}