updates for onelab portal demo
[unfold.git] / plugins / googlemap / googlemap.js
index 326bf92..2b0b88a 100644 (file)
@@ -29,7 +29,6 @@
             $this.data('markerCluster', null);
             $this.data('markers', []);
 
-            console.log ("lat=" + options.latitude + " long=" + options.longitude + " and zoom=" + options.zoom);
             var myLatlng = new google.maps.LatLng(options.latitude, options.longitude);
             var myOptions = {
               zoom: options.zoom,
                 GoogleMap : GoogleMap
             });
 
+            /* Events */
+            $this.on('show.GoogleMaps', methods.show);
+
+
             /* Subscribe to query updates */
             jQuery.subscribe('/results/' + options.query_uuid + '/changed', {instance: $this}, update_map);
             jQuery.subscribe('/update-set/' + options.query_uuid, {instance: $this}, on_resource_changed);