public function ColorizedGmapBlock::defaultConfiguration in Colorized google maps block 8
Overrides BlockPluginTrait::defaultConfiguration
File
- src/
Plugin/ Block/ ColorizedGmapBlock.php, line 115
Class
- ColorizedGmapBlock
- Provides a 'Example: configurable text string' block.
Namespace
Drupal\colorized_gmap\Plugin\BlockCode
public function defaultConfiguration() {
return [
'coordinates' => [
'latitude' => '48.853358',
'longitude' => '2.348903',
],
'colorized_map_styles' => [],
'additional_settings' => [
'controls' => [
'min_drag_width' => 0,
'streetViewControl' => TRUE,
'panControl' => TRUE,
'mapTypeControl' => TRUE,
],
'controls_position' => [
'streetViewControl' => '1',
'panControl' => '1',
'mapTypeControl' => '3',
],
'zoom_controls' => [
'zoom' => '15',
'zoomControl' => TRUE,
'scrollwheel' => TRUE,
'zoomControlSize' => '2',
'zoomControlPosition' => '1',
],
'marker_settings' => [
'displayPopupContent' => '',
'marker' => [
'url' => '',
],
'markertitle' => $this
->t('Destination'),
'scrollwheel' => TRUE,
'info_window' => [
'format' => NULL,
'value' => '',
],
],
],
'machine_name' => '',
];
}