protected function Control::controlPositions in Styled Google Map 8.2
The list of allowed control's position on the map.
Return value
array List of available positions for placing the control.
1 call to Control::controlPositions()
- Control::buildOptionsForm in src/
Plugin/ views/ area/ Control.php - Provide a form to edit options for this plugin.
File
- src/
Plugin/ views/ area/ Control.php, line 24
Class
- Control
- Views area text handler.
Namespace
Drupal\styled_google_map\Plugin\views\areaCode
protected function controlPositions() {
return [
'TOP_CENTER' => $this
->t('Top center'),
'TOP_LEFT' => $this
->t('Top left'),
'TOP_RIGHT' => $this
->t('Top right'),
'LEFT_TOP' => $this
->t('Left top (below top left)'),
'RIGHT_TOP' => $this
->t('Right top (below top right)'),
'LEFT_CENTER' => $this
->t('Left center (centered between the top left and bottom left)'),
'RIGHT_CENTER' => $this
->t('Right center (centered between the top right and bottom right)'),
'LEFT_BOTTOM' => $this
->t('Left bottom (above bottom left)'),
'RIGHT_BOTTOM' => $this
->t('Right bottom (above bottom right)'),
'BOTTOM_CENTER' => $this
->t('Bottom center'),
'BOTTOM_LEFT' => $this
->t('Bottom left'),
'BOTTOM_RIGHT' => $this
->t('Bottom right'),
];
}