Files
contao-leaflet-maps/src/Mapper/Control/ZoomControlMapper.php
David Molineus 827c746b0d Switch to PSR-4.
2017-10-05 14:16:56 +02:00

49 lines
1.1 KiB
PHP

<?php
/**
* @package contao-leaflet-maps
* @author David Molineus <david.molineus@netzmacht.de>
* @copyright 2014-2016 netzmacht David Molineus
* @license LGPL 3.0
* @filesource
*
*/
namespace Netzmacht\Contao\Leaflet\Mapper\Control;
/**
* Class ZoomControlMapper maps the zoom database definition to the zoom control.
*
* @package Netzmacht\Contao\Leaflet\Mapper\Control
*/
class ZoomControlMapper extends AbstractControlMapper
{
/**
* Class of the definition being created.
*
* @var string
*/
protected static $definitionClass = 'Netzmacht\LeafletPHP\Definition\Control\Zoom';
/**
* Layer type.
*
* @var string
*/
protected static $type = 'zoom';
/**
* {@inheritdoc}
*/
protected function initialize()
{
parent::initialize();
$this->optionsBuilder
->addConditionalOption('zoomInText')
->addConditionalOption('zoomOutText')
->addConditionalOption('zoomInTitle')
->addConditionalOption('zoomOutTitle');
}
}