public static function StyledGoogleMapDefaultFormatter::defaultSettings in Styled Google Map 8
Same name and namespace in other branches
- 8.2 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 27
Class
- StyledGoogleMapDefaultFormatter
- Plugin implementation of the 'styled_google_map_default' formatter.
Namespace
Drupal\styled_google_map\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return array(
'width' => STYLED_GOOGLE_MAP_DEFAULT_WIDTH,
'height' => STYLED_GOOGLE_MAP_DEFAULT_HEIGHT,
'gestureHandling' => STYLED_GOOGLE_MAP_DEFAULT_GESTURE,
'style' => array(
'maptype' => STYLED_GOOGLE_MAP_DEFAULT_MAP_TYPE,
'style' => STYLED_GOOGLE_MAP_DEFAULT_STYLE,
'pin' => '',
),
'map_center' => array(
'center_coordinates' => NULL,
),
'popup' => array(
'choice' => NULL,
'text' => NULL,
'view_mode' => NULL,
'label' => STYLED_GOOGLE_MAP_DEFAULT_LABEL,
'shadow_style' => STYLED_GOOGLE_MAP_DEFAULT_SHADOW_STYLE,
'padding' => STYLED_GOOGLE_MAP_DEFAULT_PADDING,
'border_radius' => STYLED_GOOGLE_MAP_DEFAULT_BORDER_RADIUS,
'border_width' => STYLED_GOOGLE_MAP_DEFAULT_BORDER_WIDTH,
'border_color' => STYLED_GOOGLE_MAP_DEFAULT_BORDER_COLOR,
'background_color' => STYLED_GOOGLE_MAP_DEFAULT_BACKGROUND_COLOR,
'min_width' => STYLED_GOOGLE_MAP_DEFAULT_MIN_WIDTH,
'max_width' => STYLED_GOOGLE_MAP_DEFAULT_MAX_WIDTH,
'min_height' => STYLED_GOOGLE_MAP_DEFAULT_MIN_HEIGHT,
'max_height' => STYLED_GOOGLE_MAP_DEFAULT_MAX_HEIGHT,
'arrow_style' => STYLED_GOOGLE_MAP_DEFAULT_ARROW_STYLE,
'arrow_size' => STYLED_GOOGLE_MAP_DEFAULT_ARROW_SIZE,
'arrow_position' => STYLED_GOOGLE_MAP_DEFAULT_ARROW_POSITION,
'disable_auto_pan' => STYLED_GOOGLE_MAP_DEFAULT_DISABLE_AUTO_PAN,
'hide_close_button' => STYLED_GOOGLE_MAP_DEFAULT_HIDE_CLOSE_BUTTON,
'disable_animation' => STYLED_GOOGLE_MAP_DEFAULT_DISABLE_ANIMATION,
'classes' => array(
'content_container' => STYLED_GOOGLE_MAP_DEFAULT_CONTENT_CONTAINER_CLASS,
'background' => STYLED_GOOGLE_MAP_DEFAULT_BACKGROUND_CLASS,
'arrow' => STYLED_GOOGLE_MAP_DEFAULT_ARROW_CLASS,
'arrow_outer' => STYLED_GOOGLE_MAP_DEFAULT_ARROW_OUTER_CLASS,
'arrow_inner' => STYLED_GOOGLE_MAP_DEFAULT_ARROW_INNER_CLASS,
),
),
'zoom' => array(
'default' => STYLED_GOOGLE_MAP_DEFAULT_ZOOM,
'max' => STYLED_GOOGLE_MAP_DEFAULT_MAX_ZOOM,
'min' => STYLED_GOOGLE_MAP_DEFAULT_MIN_ZOOM,
),
'maptypecontrol' => STYLED_GOOGLE_MAP_DEFAULT_MAP_TYPE_CONTROL,
'scalecontrol' => STYLED_GOOGLE_MAP_DEFAULT_SCALE_CONTROL,
'rotatecontrol' => STYLED_GOOGLE_MAP_DEFAULT_ROTATE_CONTROL,
'draggable' => STYLED_GOOGLE_MAP_DEFAULT_DRAGGABLE,
'mobile_draggable' => STYLED_GOOGLE_MAP_DEFAULT_MOBILE_DRAGGABLE,
'zoomcontrol' => STYLED_GOOGLE_MAP_DEFAULT_ZOOM_CONTROL,
'streetviewcontrol' => STYLED_GOOGLE_MAP_DEFAULT_STREET_VIEW_CONTROL,
);
}