You are here

public function MapQuest::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/Source/MapQuest/MapQuest.php, line 23
Source: Mapquest.

Class

MapQuest
Class MapQuest.

Namespace

Drupal\openlayers\Plugin\Source\MapQuest

Code

public function optionsForm(array &$form, array &$form_state) {
  $layer_types = array(
    'osm' => 'OpenStreetMap',
    'sat' => 'Satellite',
    'hyb' => 'Hybrid',
  );
  $form['options']['layer'] = array(
    '#title' => t('Source type'),
    '#type' => 'select',
    '#default_value' => $this
      ->getOption('layer', 'osm'),
    '#options' => $layer_types,
  );
}