public static function LeafletSettingsElementsTrait::getDefaultSettings in Leaflet 2.1.x
Same name and namespace in other branches
- 8 src/LeafletSettingsElementsTrait.php \Drupal\leaflet\LeafletSettingsElementsTrait::getDefaultSettings()
- 2.0.x src/LeafletSettingsElementsTrait.php \Drupal\leaflet\LeafletSettingsElementsTrait::getDefaultSettings()
Get the Default Settings.
Return value
array The default settings.
4 calls to LeafletSettingsElementsTrait::getDefaultSettings()
- LeafletDefaultFormatter::defaultSettings in src/
Plugin/ Field/ FieldFormatter/ LeafletDefaultFormatter.php - Defines the default settings for this plugin.
- LeafletDefaultFormatter::__construct in src/
Plugin/ Field/ FieldFormatter/ LeafletDefaultFormatter.php - LeafletDefaultFormatter constructor.
- LeafletMap::defineOptions in modules/
leaflet_views/ src/ Plugin/ views/ style/ LeafletMap.php - Set default options.
- LeafletMap::__construct in modules/
leaflet_views/ src/ Plugin/ views/ style/ LeafletMap.php - Constructs a LeafletMap style instance.
File
- src/
LeafletSettingsElementsTrait.php, line 48
Class
- LeafletSettingsElementsTrait
- Class LeafletSettingsElementsTrait.
Namespace
Drupal\leafletCode
public static function getDefaultSettings() {
return [
'multiple_map' => FALSE,
'leaflet_map' => 'OSM Mapnik',
'height' => 400,
'height_unit' => 'px',
'hide_empty_map' => FALSE,
'disable_wheel' => FALSE,
'fullscreen_control' => TRUE,
'gesture_handling' => FALSE,
'reset_map' => [
'control' => FALSE,
'position' => 'topright',
],
'popup' => FALSE,
'popup_content' => '',
'map_position' => [
'force' => FALSE,
'center' => [
'lat' => 0,
'lon' => 0,
],
'zoom' => 12,
'minZoom' => 1,
'maxZoom' => 18,
'zoomFiner' => 0,
],
'weight' => NULL,
'icon' => [
'iconType' => 'marker',
'iconUrl' => '',
'shadowUrl' => '',
'className' => '',
'iconSize' => [
'x' => NULL,
'y' => NULL,
],
'iconAnchor' => [
'x' => NULL,
'y' => NULL,
],
'shadowSize' => [
'x' => NULL,
'y' => NULL,
],
'shadowAnchor' => [
'x' => NULL,
'y' => NULL,
],
'popupAnchor' => [
'x' => NULL,
'y' => NULL,
],
'html' => '<div></div>',
'html_class' => 'leaflet-map-divicon',
'circle_marker_options' => '{"radius": 100, "color": "red", "fillColor": "#f03", "fillOpacity": 0.5}',
],
'leaflet_markercluster' => [
'control' => FALSE,
'options' => '{"spiderfyOnMaxZoom":true,"showCoverageOnHover":true,"removeOutsideVisibleBounds": false}',
'include_path' => FALSE,
],
'path' => '{"color":"#3388ff","opacity":"1.0","stroke":true,"weight":3,"fill":"depends","fillColor":"*","fillOpacity":"0.2","radius":"6"}',
'geocoder' => [
'control' => FALSE,
'settings' => [
'position' => 'topright',
'input_size' => 25,
'providers' => [],
'min_terms' => 4,
'delay' => 800,
'zoom' => 16,
'popup' => FALSE,
'options' => '',
],
],
];
}