public static function GeofieldMapFieldTrait::getDefaultSettings in Geofield Map 8
Same name and namespace in other branches
- 8.2 src/GeofieldMapFieldTrait.php \Drupal\geofield_map\GeofieldMapFieldTrait::getDefaultSettings()
Get the Default Settings.
Return value
array The default settings.
2 calls to GeofieldMapFieldTrait::getDefaultSettings()
- GeofieldGoogleMapFormatter::defaultSettings in src/
Plugin/ Field/ FieldFormatter/ GeofieldGoogleMapFormatter.php - Defines the default settings for this plugin.
- GeofieldGoogleMapViewStyle::defineOptions in src/
Plugin/ views/ style/ GeofieldGoogleMapViewStyle.php - Set default options.
File
- src/
GeofieldMapFieldTrait.php, line 80
Class
- GeofieldMapFieldTrait
- Class GeofieldMapFieldTrait.
Namespace
Drupal\geofield_mapCode
public static function getDefaultSettings() {
return [
'gmap_api_key' => '',
'map_dimensions' => [
'width' => '100%',
'height' => '450px',
],
'map_empty' => [
'empty_behaviour' => '0',
'empty_message' => t('No Geofield Value entered for this field'),
],
'map_center' => [
'lat' => '42',
'lon' => '12.5',
'center_force' => 0,
],
'map_zoom_and_pan' => [
'zoom' => [
'initial' => 6,
'force' => 0,
'min' => 1,
'max' => 22,
],
'scrollwheel' => 1,
'draggable' => 1,
'map_reset' => 0,
],
'map_controls' => [
'disable_default_ui' => 0,
'zoom_control' => 1,
'map_type_id' => 'roadmap',
'map_type_control' => 1,
'map_type_control_options_type_ids' => [
'roadmap' => 'roadmap',
'satellite' => 'satellite',
'hybrid' => 'hybrid',
'terrain' => 'terrain',
],
'scale_control' => 1,
'street_view_control' => 1,
'fullscreen_control' => 1,
],
'map_marker_and_infowindow' => [
'icon_image_path' => '',
'infowindow_field' => 'title',
'multivalue_split' => 0,
'force_open' => 0,
],
'map_oms' => [
'map_oms_control' => 1,
'map_oms_options' => '{"markersWontMove": "true", "markersWontHide": "true", "basicFormatEvents": "true", "nearbyDistance": 3}',
],
'map_additional_options' => '',
'custom_style_map' => [
'custom_style_control' => 0,
'custom_style_name' => '',
'custom_style_options' => '',
'custom_style_default' => 0,
],
'map_markercluster' => [
'markercluster_control' => 0,
'markercluster_additional_options' => '',
],
];
}