public function Icon::defaultConfiguration in Openlayers 8.4
Gets default configuration for this plugin.
Return value
array An associative array with the default configuration.
Overrides OpenlayersPluginBase::defaultConfiguration
File
- src/
Plugin/ OpenlayersStyle/ Icon.php, line 39
Class
- Icon
- Defines the Icon style for Openlayers features.
Namespace
Drupal\openlayers\Plugin\OpenlayersStyleCode
public function defaultConfiguration() {
return [
'anchor' => '0.5, 0.5',
'anchorOrigin' => 'top-left',
'anchorXUnits' => 'fraction',
'anchorYUnits' => 'fraction',
'color' => NULL,
'crossOrigin' => NULL,
'img' => NULL,
'offset' => NULL,
'displacement' => NULL,
'offsetOrigin' => 'top-left',
'opacity' => 1,
'scale' => 1,
'size' => NULL,
'imgSize' => NULL,
'src' => NULL,
];
}