mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2026-10-14 14:46:12 +02:00
Fix handling of inactive layers.
This commit is contained in:
1 parent
2201c5015e
commit
1ebd3ef49b
4 files changed
+28
-2
No files matched your search
@@ -47,7 +47,7 @@ class LayersControlMapper extends AbstractControlMapper
|
||||
$arguments[2] = array();
|
||||
|
||||
/** @var ControlModel $model */
|
||||
$collection = $model->findLayers();
|
||||
$collection = $model->findActiveLayers();
|
||||
|
||||
if ($collection) {
|
||||
foreach ($collection as $layer) {
|
||||
|
||||
Reference in new issue
Block a user