summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2022-08-29 06:55:17 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2022-08-29 06:55:17 +0000
commit9d89e3a227e5c55aae29d66b9a459dad1c25dd43 (patch)
tree6c496a127485fc80e9e8f9f25db73e8b1b581dbe
parent84a51fb4fda948c2bcddd852e6029750c92a982d (diff)
- Bugfix: Statistik: API Key für Adressdecodierung hinterlegt / Kundenkarte4.3.84.3.7
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8092 0d5edaf7-2b12-4e95-93f4-047927463d4b
-rw-r--r--views/mods/mod_statistics/customermap/all.phtml12
1 files changed, 8 insertions, 4 deletions
diff --git a/views/mods/mod_statistics/customermap/all.phtml b/views/mods/mod_statistics/customermap/all.phtml
index 3116221..20adb05 100644
--- a/views/mods/mod_statistics/customermap/all.phtml
+++ b/views/mods/mod_statistics/customermap/all.phtml
@@ -3,7 +3,7 @@
/**
* Template f�r die Anzeige der Kundenkarte innerhalb des Statistikmoduls
*/
-
+
?>
<script type="text/javascript">/* <![CDATA[ */
@@ -20,7 +20,11 @@
var bounds = new google.maps.LatLngBounds();
var markers = [];
- <?php $i = 1; foreach ($this->view['wpsg_mod_statistics']['marker'] as $m) { ?>
+ <?php $i = 1; foreach ($this->view['wpsg_mod_statistics']['marker'] as $m) {
+
+ if (floatval($m['lat']) === 0.0 || floatval($m['long']) === 0.0) continue;
+
+ ?>
var marker<?php echo $i; ?> = new google.maps.Marker({
position: new google.maps.LatLng(<?php echo $m['lat']; ?>, <?php echo $m['long']; ?>),
map: map
@@ -30,7 +34,7 @@
google.maps.event.addListener(marker<?php echo $i; ?>, 'click', function() {
location.href = '<?php
- echo wpsg_admin_url('Customer', 'edit', ['edit_id' => $m['customer']['id']]);
+ echo wpsg_admin_url('Customer', 'edit', ['edit_id' => $m['customer']['id']], [], true);
?>';
} );
@@ -52,7 +56,7 @@
<div style="" id="wpsg_mod_customermap_layer">
<div class="postbox" id="wpsg_modcustomermap">
- <div style="height:500px;">
+ <div style="height:500px; width:500px;">
<div style="width:100%; height:100%" id="wpsg_mod_statistics_map"></div>
</div>
</div>