Fix bounds mode handling.

This commit is contained in:
David Molineus
2015-01-27 11:43:19 +01:00
parent a399004988
commit 9e0fe6a0b6
5 changed files with 8 additions and 6 deletions

View File

@@ -108,7 +108,7 @@ class MarkersLayerMapper extends AbstractLayerMapper implements GeoJsonMapper
$point = $mapper->convertToGeoJsonFeature($marker, $item);
if ($point) {
$definition->addData($point);
$definition->addData($point, true);
}
}
}

View File

@@ -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);
}
}