public static function StyledGoogleMapDefaultFormatter::defaultSettings in Styled Google Map 8.2
Same name and namespace in other branches
- 8 src/Plugin/Field/FieldFormatter/StyledGoogleMapDefaultFormatter.php \Drupal\styled_google_map\Plugin\Field\FieldFormatter\StyledGoogleMapDefaultFormatter::defaultSettings()
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides PluginSettingsBase::defaultSettings
1 call to StyledGoogleMapDefaultFormatter::defaultSettings()
- StyledGoogleMapDefaultFormatter::settingsForm in src/
Plugin/ Field/ FieldFormatter/ StyledGoogleMapDefaultFormatter.php - Returns a form to configure settings for the formatter.
File
- src/
Plugin/ Field/ FieldFormatter/ StyledGoogleMapDefaultFormatter.php, line 29
Class
- StyledGoogleMapDefaultFormatter
- Plugin implementation of the 'styled_google_map_default' formatter.
Namespace
Drupal\styled_google_map\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return [
'width' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_WIDTH,
'height' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_HEIGHT,
'gestureHandling' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_GESTURE,
'style' => [
'maptype' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_MAP_TYPE,
'style' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_STYLE,
'pin' => '',
'pin_width' => '',
'pin_height' => '',
],
'map_center' => [
'center_coordinates' => NULL,
],
'popup' => [
'choice' => NULL,
'default_state' => 0,
'second_click' => 0,
'close_button_source' => NULL,
'text' => NULL,
'view_mode' => NULL,
'open_event' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_OPEN_EVENT,
'label' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_LABEL,
'shadow_style' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_SHADOW_STYLE,
'padding' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_PADDING,
'border_radius' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_BORDER_RADIUS,
'border_width' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_BORDER_WIDTH,
'border_color' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_BORDER_COLOR,
'background_color' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_BACKGROUND_COLOR,
'min_width' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_MIN_WIDTH,
'max_width' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_MAX_WIDTH,
'min_height' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_MIN_HEIGHT,
'max_height' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_MAX_HEIGHT,
'arrow_style' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_ARROW_STYLE,
'arrow_size' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_ARROW_SIZE,
'arrow_position' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_ARROW_POSITION,
'disable_autopan' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_DISABLE_AUTO_PAN,
'hide_close_button' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_HIDE_CLOSE_BUTTON,
'disable_animation' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_DISABLE_ANIMATION,
'classes' => [
'content_container' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_CONTENT_CONTAINER_CLASS,
'background' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_BACKGROUND_CLASS,
'arrow' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_ARROW_CLASS,
'arrow_outer' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_ARROW_OUTER_CLASS,
'arrow_inner' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_ARROW_INNER_CLASS,
],
],
'zoom' => [
'default' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_ZOOM,
'max' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_MAX_ZOOM,
'min' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_MIN_ZOOM,
],
'directions' => [
'enabled' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_DIRECTIONS,
'type' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_DIRECTIONS_TYPE,
'steps' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_DIRECTIONS_SHOW_STEPS,
],
'maptypecontrol' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_MAP_TYPE_CONTROL,
'scalecontrol' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_SCALE_CONTROL,
'rotatecontrol' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_ROTATE_CONTROL,
'draggable' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_DRAGGABLE,
'mobile_draggable' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_MOBILE_DRAGGABLE,
'zoomcontrol' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_ZOOM_CONTROL,
'fullscreen' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_FULLSCREEN,
'streetviewcontrol' => StyledGoogleMapInterface::STYLED_GOOGLE_MAP_DEFAULT_STREET_VIEW_CONTROL,
];
}