From 7420c6e4c02fd9022228be58793766c25eff457a Mon Sep 17 00:00:00 2001 From: David Molineus Date: Wed, 11 Oct 2017 11:32:25 +0200 Subject: [PATCH] Fix: Support collapsed setting. --- .../Leaflet/Mapper/Control/LayersControlMapper.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Netzmacht/Contao/Leaflet/Mapper/Control/LayersControlMapper.php b/src/Netzmacht/Contao/Leaflet/Mapper/Control/LayersControlMapper.php index b9242e9..cf3ce50 100644 --- a/src/Netzmacht/Contao/Leaflet/Mapper/Control/LayersControlMapper.php +++ b/src/Netzmacht/Contao/Leaflet/Mapper/Control/LayersControlMapper.php @@ -62,4 +62,14 @@ class LayersControlMapper extends AbstractControlMapper return $arguments; } + + /** + * {@inheritDoc} + */ + protected function initialize() + { + parent::initialize(); + + $this->optionsBuilder->addOption('collapsed'); + } }