$this.data('markerCluster', null);
$this.data('markers', []);
- var myLatlng = new google.maps.LatLng(34.397, 150.644);
+ var myLatlng = new google.maps.LatLng(options.latitude, options.longitude);
var myOptions = {
- zoom: 2,
+ zoom: options.zoom,
center: myLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
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);