Stamen.php in Openlayers 7.3
Source: Stamen.
Namespace
Drupal\openlayers\Plugin\Source\StamenFile
src/Plugin/Source/Stamen/Stamen.phpView 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',
),
);
}
}