public static function GeolocationShapes::getDefaultSettings in Geolocation Field 8.3
Provide a populated settings array.
Return value
array The settings array with the default map settings.
Overrides MapFeatureBase::getDefaultSettings
File
- src/
Plugin/ geolocation/ MapFeature/ GeolocationShapes.php, line 22
Class
- GeolocationShapes
- Redraw locations as shapes.
Namespace
Drupal\geolocation\Plugin\geolocation\MapFeatureCode
public static function getDefaultSettings() {
return [
'remove_markers' => FALSE,
'polyline' => TRUE,
'polyline_title' => '',
'strokeColor' => '#FF0000',
'strokeOpacity' => 0.8,
'strokeWidth' => 2,
'polygon' => FALSE,
'polygon_title' => '',
'fillColor' => '#FF0000',
'fillOpacity' => 0.35,
];
}