changeset 180:662e8b5ec9a5 gmap2

Close infowindow when needed.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 11 Mar 2014 23:04:29 +0200
parents 0574f3520674
children 17646f458b1c
files markers.js
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/markers.js	Tue Mar 11 22:50:38 2014 +0200
+++ b/markers.js	Tue Mar 11 23:04:29 2014 +0200
@@ -102,6 +102,12 @@
 function pmapLoadMarkers()
 {
   pmapInfoWindow = new google.maps.InfoWindow;
+
+  google.maps.event.addListener(pmap, 'click', function()
+  {
+    pmapInfoWindow.close();
+  });
+
   //
   // Parse regular markers from JSON
   //