mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-12-02 04:53:56 +01:00
Code style and refactor for reducing duplicate code.
This commit is contained in:
@@ -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