2015-01-20 17:36:19 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/**
|
2017-10-05 15:45:43 +02:00
|
|
|
* Leaflet maps for Contao CMS.
|
|
|
|
|
*
|
2016-10-11 10:40:15 +02:00
|
|
|
* @package contao-leaflet-maps
|
2015-01-20 17:36:19 +01:00
|
|
|
* @author David Molineus <david.molineus@netzmacht.de>
|
2017-10-11 15:00:48 +02:00
|
|
|
* @copyright 2014-2017 netzmacht David Molineus. All rights reserved.
|
2017-10-05 15:45:43 +02:00
|
|
|
* @license LGPL-3.0 https://github.com/netzmacht/contao-leaflet-maps/blob/master/LICENSE
|
2015-01-20 17:36:19 +01:00
|
|
|
* @filesource
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
namespace Netzmacht\Contao\Leaflet\Mapper\Control;
|
|
|
|
|
|
2017-10-17 13:51:09 +02:00
|
|
|
use Netzmacht\LeafletPHP\Plugins\FullScreen\FullScreenControl;
|
|
|
|
|
|
2015-01-20 17:36:19 +01:00
|
|
|
/**
|
|
|
|
|
* Class FullscreenControlMapper.
|
|
|
|
|
*
|
|
|
|
|
* @package Netzmacht\Contao\Leaflet\Mapper\Control
|
|
|
|
|
*/
|
|
|
|
|
class FullscreenControlMapper extends AbstractControlMapper
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Class of the definition being created.
|
|
|
|
|
*
|
|
|
|
|
* @var string
|
|
|
|
|
*/
|
2017-10-17 13:51:09 +02:00
|
|
|
protected static $definitionClass = FullScreenControl::class;
|
2015-01-20 17:36:19 +01:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Layer type.
|
|
|
|
|
*
|
|
|
|
|
* @var string
|
|
|
|
|
*/
|
|
|
|
|
protected static $type = 'fullscreen';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* {@inheritdoc}
|
|
|
|
|
*/
|
|
|
|
|
protected function initialize()
|
|
|
|
|
{
|
|
|
|
|
parent::initialize();
|
|
|
|
|
|
2015-01-22 09:02:14 +01:00
|
|
|
$this->optionsBuilder
|
2015-01-20 17:36:19 +01:00
|
|
|
->addOption('forceSeparateButton', 'separate')
|
|
|
|
|
->addConditionalOption('title', 'title', 'buttonTitle')
|
|
|
|
|
->addOption('forcePseudoFullScreen', 'simulateFullScreen');
|
|
|
|
|
}
|
|
|
|
|
}
|