mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2026-10-14 14:46:12 +02:00
Code style and refactor for reducing duplicate code.
This commit is contained in:
1 parent
ff231c7fa0
commit
5a39a737d7
1 file changed
-2
@@ -49,10 +49,8 @@ class AbstractVectorMapper extends AbstractTypeMapper
|
|||||||
) {
|
) {
|
||||||
parent::build($definition, $model, $builder, $bounds);
|
parent::build($definition, $model, $builder, $bounds);
|
||||||
|
|
||||||
if ($definition instanceof Path) {
|
|
||||||
if ($model->addPopup) {
|
if ($model->addPopup) {
|
||||||
$definition->bindPopup($model->popupContent);
|
$definition->bindPopup($model->popupContent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user