diff options
Diffstat (limited to 'views/mods')
| -rw-r--r-- | views/mods/mod_statistics/customermap/all.phtml | 12 |
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>
|
