From 7420c6e4c02fd9022228be58793766c25eff457a Mon Sep 17 00:00:00 2001 From: David Molineus Date: Wed, 11 Oct 2017 11:32:25 +0200 Subject: [PATCH 1/2] 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'); + } } From e66ee8874556669d806945bf8a79de53485f37f6 Mon Sep 17 00:00:00 2001 From: David Molineus Date: Fri, 12 Jan 2018 22:24:13 +0100 Subject: [PATCH 2/2] Ignore editor files. --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 7c9521e..13db688 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ /assets/js/*.js /node_modules/ /.tx/ +/.idea/ coverage.xml composer.lock