public static function GoogleMapsDisplayTrait::getGoogleMapDefaultSettings in Geolocation Field 8
Provide a populated settings array.
Return value
array The settings array with the default map settings.
5 calls to GoogleMapsDisplayTrait::getGoogleMapDefaultSettings()
- CommonMap::defineOptions in src/
Plugin/ views/ style/ CommonMap.php - Information about options for all kinds of purposes will be held here.
- GeolocationGooglegeocoderWidget::defaultSettings in src/
Plugin/ Field/ FieldWidget/ GeolocationGooglegeocoderWidget.php - Defines the default settings for this plugin.
- GeolocationGoogleMap::preRenderGoogleMapElement in src/
Element/ GeolocationGoogleMap.php - Map element.
- GeolocationGoogleMapFormatter::defaultSettings in src/
Plugin/ Field/ FieldFormatter/ GeolocationGoogleMapFormatter.php - Defines the default settings for this plugin.
- GoogleMapsDisplayTrait::getGoogleMapsSettings in src/
GoogleMapsDisplayTrait.php - Provide settings ready to handover to JS to feed to Google Maps.
File
- src/
GoogleMapsDisplayTrait.php, line 137
Class
- GoogleMapsDisplayTrait
- Class GoogleMapsDisplayTrait.
Namespace
Drupal\geolocationCode
public static function getGoogleMapDefaultSettings() {
return [
'google_map_settings' => [
'type' => static::$ROADMAP,
'zoom' => 10,
'minZoom' => static::$MINZOOMLEVEL,
'maxZoom' => static::$MAXZOOMLEVEL,
'rotateControl' => FALSE,
'mapTypeControl' => TRUE,
'streetViewControl' => TRUE,
'zoomControl' => TRUE,
'fullscreenControl' => FALSE,
'scrollwheel' => TRUE,
'disableDoubleClickZoom' => FALSE,
'draggable' => TRUE,
'height' => '400px',
'width' => '100%',
'info_auto_display' => TRUE,
'marker_icon_path' => '',
'disableAutoPan' => TRUE,
'style' => '',
'preferScrollingToZooming' => FALSE,
'gestureHandling' => 'auto',
],
];
}