diff --git a/src/Netzmacht/Contao/Leaflet/Mapper/Vector/AbstractVectorMapper.php b/src/Netzmacht/Contao/Leaflet/Mapper/Vector/AbstractVectorMapper.php index feeebb4..d29fefb 100644 --- a/src/Netzmacht/Contao/Leaflet/Mapper/Vector/AbstractVectorMapper.php +++ b/src/Netzmacht/Contao/Leaflet/Mapper/Vector/AbstractVectorMapper.php @@ -49,10 +49,8 @@ class AbstractVectorMapper extends AbstractTypeMapper ) { parent::build($definition, $model, $builder, $bounds); - if ($definition instanceof Path) { - if ($model->addPopup) { - $definition->bindPopup($model->popupContent); - } + if ($model->addPopup) { + $definition->bindPopup($model->popupContent); } } }