public static function GeofieldMapFieldTrait::getDefaultSettings in Geofield Map 8.2
Same name and namespace in other branches
- 8 src/GeofieldMapFieldTrait.php \Drupal\geofield_map\GeofieldMapFieldTrait::getDefaultSettings()
Get the Default Settings.
Return value
array The default settings.
4 calls to GeofieldMapFieldTrait::getDefaultSettings()
- GeofieldGoogleMapFormatter::defaultSettings in src/
Plugin/ Field/ FieldFormatter/ GeofieldGoogleMapFormatter.php - Defines the default settings for this plugin.
- GeofieldGoogleMapFormatter::__construct in src/
Plugin/ Field/ FieldFormatter/ GeofieldGoogleMapFormatter.php - GeofieldGoogleMapFormatter constructor.
- GeofieldGoogleMapViewStyle::defineOptions in src/
Plugin/ views/ style/ GeofieldGoogleMapViewStyle.php - Set default options.
- GeofieldGoogleMapViewStyle::__construct in src/
Plugin/ views/ style/ GeofieldGoogleMapViewStyle.php - Constructs a GeofieldGoogleMapView style instance.
File
- src/
GeofieldMapFieldTrait.php, line 101
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,
'finer' => 0,
],
'scrollwheel' => 1,
'draggable' => 1,
'map_reset' => 0,
'map_reset_position' => 'TOP_RIGHT',
],
'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_mode' => 'icon_file',
'icon_image_path' => '',
'icon_file_wrapper' => [
'icon_file' => '',
],
'infowindow_field' => 'title',
'view_mode' => 'full',
'multivalue_split' => 0,
'force_open' => 0,
'tooltip_field' => 'title',
],
'map_oms' => [
'map_oms_control' => 1,
'map_oms_options' => '{"markersWontMove": "true", "markersWontHide": "true", "basicFormatEvents": "true", "nearbyDistance": 3}',
],
'map_additional_options' => '',
'map_additional_libraries' => [],
'map_geometries_options' => '{"strokeColor":"black","strokeOpacity":"0.8","strokeWeight":2,"fillColor":"blue","fillOpacity":"0.1", "clickable": false}',
'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' => '{"maxZoom":12, "gridSize":50}',
],
'map_geocoder' => [
'control' => 0,
'settings' => [
'position' => 'topright',
'input_size' => 25,
'providers' => [],
'min_terms' => 4,
'delay' => 800,
'zoom' => 16,
'infowindow' => 0,
'options' => '',
],
],
'map_lazy_load' => [
'lazy_load' => 0,
],
];
}