You are here

Tile.php in Openlayers 7.3

Layer: Tile.

File

src/Plugin/Layer/Tile/Tile.php
View 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.'),
    );
  }

}

Classes

Namesort descending Description
Tile Class Tile.