public static function LeafletMarkerIcon::getDefaultSettings in Geolocation Field 8.2
Same name and namespace in other branches
- 8.3 modules/geolocation_leaflet/src/Plugin/geolocation/MapFeature/LeafletMarkerIcon.php \Drupal\geolocation_leaflet\Plugin\geolocation\MapFeature\LeafletMarkerIcon::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/ LeafletMarkerIcon.php, line 23
Class
- LeafletMarkerIcon
- Provides marker icon adjustment.
Namespace
Drupal\geolocation_leaflet\Plugin\geolocation\MapFeatureCode
public static function getDefaultSettings() {
return [
'marker_icon_path' => '',
'icon_size' => [
'width' => NULL,
'height' => NULL,
],
'icon_anchor' => [
'x' => NULL,
'y' => NULL,
],
'popup_anchor' => [
'x' => 0,
'y' => 0,
],
'marker_shadow_path' => '',
'shadow_size' => [
'width' => NULL,
'height' => NULL,
],
'shadow_anchor' => [
'x' => NULL,
'y' => NULL,
],
];
}