SetValues.php in Openlayers 7.3
Component: SetValues.
File
src/Plugin/Component/SetValues/SetValues.phpView source
<?php
/**
* @file
* Component: SetValues.
*/
namespace Drupal\openlayers\Plugin\Component\SetValues;
use Drupal\openlayers\Types\Component;
/**
* Class SetValues.
*
* @OpenlayersPlugin(
* id = "SetValues"
* )
*/
class SetValues extends Component {
/**
* {@inheritdoc}
*/
public function optionsForm(array &$form, array &$form_state) {
$form['options']['latitude'] = array(
'#type' => 'textfield',
'#title' => t('Latitude'),
'#default_value' => $this
->getOption('latitude'),
);
$form['options']['longitude'] = array(
'#type' => 'textfield',
'#title' => t('Longitude'),
'#default_value' => $this
->getOption('longitude'),
);
$form['options']['rotation'] = array(
'#type' => 'textfield',
'#title' => t('Rotation'),
'#default_value' => $this
->getOption('rotation'),
);
$form['options']['zoom'] = array(
'#type' => 'textfield',
'#title' => t('Zoom'),
'#default_value' => $this
->getOption('zoom'),
);
$form['options']['extent'] = array(
'#type' => 'textfield',
'#title' => t('Extent'),
'#default_value' => $this
->getOption('extent'),
);
}
}