public function DragPan::optionsForm in Openlayers 7.3
@TODO What is this return? If it is the form, why is form by reference?
Overrides Base::optionsForm
File
- src/
Plugin/ Interaction/ DragPan/ DragPan.php, line 24 - Interaction: DragPan.
Class
- DragPan
- Class DragPan.
Namespace
Drupal\openlayers\Plugin\Interaction\DragPanCode
public function optionsForm(array &$form, array &$form_state) {
$form['options']['decay'] = array(
'#type' => 'textfield',
'#title' => t('Decay'),
'#default_value' => $this
->getOption('decay', -0.005),
'#description' => t('Rate of decay (must be negative).'),
);
$form['options']['minVelocity'] = array(
'#type' => 'textfield',
'#title' => t('Minimum velocity'),
'#default_value' => $this
->getOption('minVelocity', 0.05),
'#description' => t('Minimum velocity (pixels/millisecond).'),
);
$form['options']['delay'] = array(
'#type' => 'textfield',
'#title' => t('Delay'),
'#default_value' => $this
->getOption('delay', 100),
'#description' => t('Delay to consider to calculate the kinetic.'),
);
}