Commit 799399d0c1f617a1e536a3be715f98a3468b0513

Authored by AntonioTerceiro
1 parent 9296f29d

ActionItem265: for now, finishing with the map


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1928 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 9 additions and 0 deletions   Show diff stats
app/views/search/_google_maps.rhtml
@@ -17,8 +17,17 @@ function putMarker(lat, lng, title) { @@ -17,8 +17,17 @@ function putMarker(lat, lng, title) {
17 }); 17 });
18 } 18 }
19 19
  20 +window.unload = function() {
  21 + GUnload();
  22 +};
  23 +
20 if (GBrowserIsCompatible()) { 24 if (GBrowserIsCompatible()) {
21 var map = new GMap2(document.getElementById("map")); 25 var map = new GMap2(document.getElementById("map"));
  26 +
  27 + new GKeyboardHandler(map);
  28 + map.addControl(new GLargeMapControl());
  29 + map.addControl(new GMapTypeControl());
  30 +
22 map.setCenter(new GLatLng(-15.0, -50.1419), 4); 31 map.setCenter(new GLatLng(-15.0, -50.1419), 4);
23 <% 32 <%
24 @results.each do |name,results| 33 @results.each do |name,results|