You are here

Stamen.php in Openlayers 7.3

Source: Stamen.

File

src/Plugin/Source/Stamen/Stamen.php
View source
<?php

/**
 * @file
 * Source: Stamen.
 */
namespace Drupal\openlayers\Plugin\Source\Stamen;

use Drupal\openlayers\Types\Source;

/**
 * Class Stamen.
 *
 * @OpenlayersPlugin(
 *  id = "Stamen"
 * )
 */
class Stamen extends Source {

  /**
   * {@inheritdoc}
   */
  public function optionsForm(array &$form, array &$form_state) {
    $form['options']['layer'] = array(
      '#title' => t('Source type'),
      '#type' => 'select',
      '#default_value' => $this
        ->getOption('layer', 'osm'),
      '#options' => array(
        'terrain-labels' => 'Terrain labels',
        'watercolor' => 'Watercolor',
      ),
    );
  }

}

Classes

Namesort descending Description
Stamen Class Stamen.