You are here

private function GoogleMapsDisplayTrait::getMapTypes in Geolocation Field 8

An array of all available map types.

Return value

array The map types.

2 calls to GoogleMapsDisplayTrait::getMapTypes()
GoogleMapsDisplayTrait::getGoogleMapsSettingsForm in src/GoogleMapsDisplayTrait.php
Provide a generic map settings form array.
GoogleMapsDisplayTrait::getGoogleMapsSettingsSummary in src/GoogleMapsDisplayTrait.php
Provide a summary array to use in field formatters.

File

src/GoogleMapsDisplayTrait.php, line 120

Class

GoogleMapsDisplayTrait
Class GoogleMapsDisplayTrait.

Namespace

Drupal\geolocation

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);
}