Tile.php in Openlayers 7.3
Layer: Tile.
Namespace
Drupal\openlayers\Plugin\Layer\TileFile
src/Plugin/Layer/Tile/Tile.phpView source
<?php
/**
* @file
* Layer: Tile.
*/
namespace Drupal\openlayers\Plugin\Layer\Tile;
use Drupal\openlayers\Types\Layer;
/**
* Class Tile.
*
* @OpenlayersPlugin(
* id = "Tile"
* )
*/
class Tile extends Layer {
/**
* {@inheritdoc}
*/
public function optionsForm(array &$form, array &$form_state) {
$form['options']['opacity'] = array(
'#type' => 'textfield',
'#title' => t('Opacity'),
'#default_value' => $this
->getOption('opacity', 1),
'#description' => t('Opacity, between 0 and 1.'),
);
}
}