From 799399d0c1f617a1e536a3be715f98a3468b0513 Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Sat, 7 Jun 2008 21:52:09 +0000 Subject: [PATCH] ActionItem265: for now, finishing with the map --- app/views/search/_google_maps.rhtml | 9 +++++++++ 1 file changed, 9 insertions(+), 0 deletions(-) diff --git a/app/views/search/_google_maps.rhtml b/app/views/search/_google_maps.rhtml index 438f9de..98d4708 100644 --- a/app/views/search/_google_maps.rhtml +++ b/app/views/search/_google_maps.rhtml @@ -17,8 +17,17 @@ function putMarker(lat, lng, title) { }); } +window.unload = function() { + GUnload(); +}; + if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map")); + + new GKeyboardHandler(map); + map.addControl(new GLargeMapControl()); + map.addControl(new GMapTypeControl()); + map.setCenter(new GLatLng(-15.0, -50.1419), 4); <% @results.each do |name,results| -- libgit2 0.21.2