You are here

public static function LeafletMarkerClusterer::getDefaultSettings in Geolocation Field 8.3

Same name and namespace in other branches
  1. 8.2 modules/geolocation_leaflet/src/Plugin/geolocation/MapFeature/LeafletMarkerClusterer.php \Drupal\geolocation_leaflet\Plugin\geolocation\MapFeature\LeafletMarkerClusterer::getDefaultSettings()

Provide a populated settings array.

Return value

array The settings array with the default map settings.

Overrides MapFeatureBase::getDefaultSettings

File

modules/geolocation_leaflet/src/Plugin/geolocation/MapFeature/LeafletMarkerClusterer.php, line 24

Class

LeafletMarkerClusterer
Provides marker clusterer.

Namespace

Drupal\geolocation_leaflet\Plugin\geolocation\MapFeature

Code

public static function getDefaultSettings() {
  $default_settings = parent::getDefaultSettings();
  $default_settings['cluster_settings'] = [
    'show_coverage_on_hover' => TRUE,
    'zoom_to_bounds_on_click' => TRUE,
  ];
  $default_settings['disable_clustering_at_zoom'] = 0;
  $default_settings['custom_marker_settings'] = '';
  return $default_settings;
}