mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2026-10-14 06:36:03 +02:00
Code style and refactor for reducing duplicate code.
This commit is contained in:
1 parent
ff231c7fa0
commit
5a39a737d7
1 file changed
+2
-4
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user