Commit 799399d0c1f617a1e536a3be715f98a3468b0513
1 parent
9296f29d
Exists in
master
and in
23 other branches
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 | 17 | }); |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | +window.unload = function() { | |
| 21 | + GUnload(); | |
| 22 | +}; | |
| 23 | + | |
| 20 | 24 | if (GBrowserIsCompatible()) { |
| 21 | 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 | 31 | map.setCenter(new GLatLng(-15.0, -50.1419), 4); |
| 23 | 32 | <% |
| 24 | 33 | @results.each do |name,results| | ... | ... |