Add standalone feature to the reference map.

This commit is contained in:
David Molineus
2015-01-12 09:29:48 +01:00
parent c9d7befc08
commit c5c4810837
3 changed files with 16 additions and 2 deletions

View File

@@ -40,6 +40,8 @@ class ReferenceLayerMapper extends AbstractLayerMapper
return null;
}
return $mapper->handle($reference, $bounds, $this->getElementId($model, $elementId));
$elementId = $model->standalone ? $this->getElementId($model, $elementId) : null;
return $mapper->handle($reference, $bounds, $elementId);
}
}