KeyboardPan.php in Openlayers 8.4
File
src/Plugin/OpenlayersInteraction/KeyboardPan.php
View source
<?php
namespace Drupal\openlayers\Plugin\OpenlayersInteraction;
use Drupal\Component\Utility\Color;
use Drupal\Component\Utility\Rectangle;
use Drupal\Core\Form\FormStateInterface;
use Drupal\openlayers\OpenlayersConfigurablePluginBase;
class KeyboardPan extends OpenlayersConfigurablePluginBase {
public function getSummary() {
$summary = [
'#theme' => 'openlayers_control_summary',
'#data' => $this->configuration,
];
$summary += parent::getSummary();
return $summary;
}
public function defaultConfiguration() {
return [];
}
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
return $form;
}
public function validateConfigurationForm(array &$form, FormStateInterface $form_state) {
}
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
parent::submitConfigurationForm($form, $form_state);
}
}
Classes
Name |
Description |
KeyboardPan |
Defines the Keyboard Pan interaction for an Openlayers map. |