mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-12-01 04:24:02 +01:00
Fix bounds mode handling.
This commit is contained in:
@@ -108,7 +108,7 @@ class MarkersLayerMapper extends AbstractLayerMapper implements GeoJsonMapper
|
||||
$point = $mapper->convertToGeoJsonFeature($marker, $item);
|
||||
|
||||
if ($point) {
|
||||
$definition->addData($point);
|
||||
$definition->addData($point, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -194,7 +194,7 @@ class GeoJsonSubscriber implements EventSubscriberInterface
|
||||
} else {
|
||||
$parent = LayerModel::findByPk($model->pid);
|
||||
|
||||
if ($parent && !$parent->affectBounds) {
|
||||
if ($parent && $parent->boundsMode !== 'extend') {
|
||||
$feature->setProperty('ignoreForBounds', true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user