Changed builing gmaps link to building coords

This commit is contained in:
Frank Schubert
2021-09-16 20:31:49 +02:00
parent 5092969606
commit d0812c8993

View File

@@ -149,8 +149,8 @@
<tr id="termination-<?=$term->id?>" class="table-bg-<?=($bcount % 2 == 0) ? "even" : "odd"?>">
<td>
<div>
<?php if($term->building->workflowitems['anschlusspunkt_gps']->value->value_string): ?>
<a href="https://www.google.com/maps/search/?api=1&query=<?=join(",", $term->building->workflowitems['anschlusspunkt_gps']->value->gps)?>" target="_blank">
<?php if($term->building->gps_lat && $term->building->gps_long): ?>
<a href="https://www.google.com/maps/search/?api=1&query=<?=$term->building->gps_lat?>,<?=$term->building->gps_long?>" target="_blank">
<i class='fas fa-globe-europe'></i> <strong style="white-space: nowrap;"><?=$term->building->street?></strong>
</a>
<?php else: ?>