You are here

public static function Baidu::getControlPositions in Geolocation Field 8.3

Return available control positions.

Return value

array|false Positions.

Overrides MapProviderBase::getControlPositions

File

modules/geolocation_baidu/src/Plugin/geolocation/MapProvider/Baidu.php, line 149

Class

Baidu
Provides Baidu Maps API.

Namespace

Drupal\geolocation_baidu\Plugin\geolocation\MapProvider

Code

public static function getControlPositions() {
  return [
    'BMAP_ANCHOR_TOP_LEFT' => t('Top left'),
    'BMAP_ANCHOR_TOP_RIGHT' => t('Top right'),
    'BMAP_ANCHOR_BOTTOM_LEFT' => t('Bottom left'),
    'BMAP_ANCHOR_BOTTOM_RIGHT' => t('Bottom right'),
  ];
}