openlayers-8.x-4.x-dev/src/Plugin/Source/TileDebug/TileDebug.php
src/Plugin/Source/TileDebug/TileDebug.php
<?php
namespace Drupal\openlayers\Plugin\Source\TileDebug;
use Drupal\openlayers\Types\Source;
/**
* FIX - Insert short comment here.
*
* @OpenlayersPlugin(
* id = "ol_source_tiledebug",
* label = @Translation("Tile Debug"),
* description = @Translation("TODO..."),
* service = "openlayers.Source:TileDebug",
* library = "openlayers-plugin-source-tiledebug",
* is_configurable = "true",
* type = "source"
* )
*/
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),
);
}
}
