forked from Snck3rs/contao-leaflet-maps
Rework element id generation.
This commit is contained in:
@@ -68,9 +68,11 @@ class GroupLayerMapper extends AbstractLayerMapper
|
||||
|
||||
if ($collection) {
|
||||
foreach ($collection as $layerModel) {
|
||||
/** @var Layer $layer */
|
||||
$layer = $mapper->handle($layerModel);
|
||||
$definition->addLayer($layer);
|
||||
|
||||
if ($layer instanceof Layer) {
|
||||
$definition->addLayer($layer);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user