public static function LeafletControlGeocoder::getDefaultSettings in Geolocation Field 8.2
Same name and namespace in other branches
- 8.3 modules/geolocation_leaflet/src/Plugin/geolocation/MapFeature/LeafletControlGeocoder.php \Drupal\geolocation_leaflet\Plugin\geolocation\MapFeature\LeafletControlGeocoder::getDefaultSettings()
Provide a populated settings array.
Return value
array The settings array with the default map settings.
Overrides ControlElementBase::getDefaultSettings
1 call to LeafletControlGeocoder::getDefaultSettings()
- LeafletControlGeocoder::getSettingsForm in modules/
geolocation_leaflet/ src/ Plugin/ geolocation/ MapFeature/ LeafletControlGeocoder.php - Provide a generic map settings form array.
File
- modules/
geolocation_leaflet/ src/ Plugin/ geolocation/ MapFeature/ LeafletControlGeocoder.php, line 60
Class
- LeafletControlGeocoder
- Provides Geocoder control element.
Namespace
Drupal\geolocation_leaflet\Plugin\geolocation\MapFeatureCode
public static function getDefaultSettings() {
return array_replace_recursive(parent::getDefaultSettings(), [
'geocoder' => 'nominatim',
'settings' => [],
]);
}