added home trench to Borderpoint image in ConstructionConsent
This commit is contained in:
@@ -766,6 +766,7 @@ class ConstructionConsentController extends mfBaseController {
|
||||
|
||||
private function getRimoPlanPreviewApi() {
|
||||
$adb_hausnummer_id = $this->request->building_id;
|
||||
$include_home_trench = $this->request->include_home_trench ? true : false;
|
||||
|
||||
$hausnummer = new ADBHausnummer($adb_hausnummer_id);
|
||||
if(!$hausnummer->id) {
|
||||
@@ -849,7 +850,18 @@ class ConstructionConsentController extends mfBaseController {
|
||||
];
|
||||
|
||||
if($hausnummer->trenches) {
|
||||
$trenches = json_decode($hausnummer->trenches);
|
||||
$trenches = [];
|
||||
if($include_home_trench && $hausnummer->home_trench) {
|
||||
$trenches = [json_decode($hausnummer->home_trench)];
|
||||
}
|
||||
|
||||
$street_trenches = json_decode($hausnummer->trenches);
|
||||
foreach($street_trenches as $t) {
|
||||
if(is_array($t) && count($t)) {
|
||||
$trenches[] = $t;
|
||||
}
|
||||
}
|
||||
$this->log->debug(print_r($trenches, true));
|
||||
|
||||
$params["paths"] = [
|
||||
"line_width" => 5,
|
||||
|
||||
Reference in New Issue
Block a user