TileDebug.php in Openlayers 7.3
Source: TileDebug.
File
src/Plugin/Source/TileDebug/TileDebug.phpView source
<?php
/**
* @file
* Source: TileDebug.
*/
namespace Drupal\openlayers\Plugin\Source\TileDebug;
use Drupal\openlayers\Types\Source;
/**
* Class TileDebug.
*
* @OpenlayersPlugin(
* id = "TileDebug"
* )
*/
class TileDebug extends Source {
/**
* {@inheritdoc}
*/
public function optionsForm(array &$form, array &$form_state) {
$form['options']['maxZoom'] = array(
'#title' => t('Maxzoom'),
'#type' => 'textfield',
'#default_value' => $this
->getOption('maxZoom', 22),
);
}
}