From ad164f505a7bd14de7a7d177a8be256499974c09 Mon Sep 17 00:00:00 2001 From: hartmut Date: Fri, 21 Oct 2016 14:14:00 +0000 Subject: Shop4 Korrekturen git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5866 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_statistics/customermap/all.phtml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'views/mods/mod_statistics/customermap') diff --git a/views/mods/mod_statistics/customermap/all.phtml b/views/mods/mod_statistics/customermap/all.phtml index b35624c..20e86d4 100644 --- a/views/mods/mod_statistics/customermap/all.phtml +++ b/views/mods/mod_statistics/customermap/all.phtml @@ -1,7 +1,7 @@ @@ -18,12 +18,15 @@ var map = new google.maps.Map(document.getElementById("wpsg_mod_statistics_map"), mapOptions); var bounds = new google.maps.LatLngBounds(); - + var markers = []; + view['wpsg_mod_statistics']['marker'] as $m) { ?> var marker = new google.maps.Marker({ - position: new google.maps.LatLng(, ), + position: new google.maps.LatLng(, ), map: map } ); + markers.push(marker); + google.maps.event.addListener(marker, 'click', function() { location.href = ''; } ); @@ -32,6 +35,10 @@ map.fitBounds(bounds); map.setZoom(15); + + var markerCluster = new MarkerClusterer(map, markers, + {imagePath: 'https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m'}); + } // function wpsg_mod_statistics_initialize() -- cgit v1.2.3