From 10fcf80be157f3cdba72b6b45144738e908a0455 Mon Sep 17 00:00:00 2001 From: Will Marshall Date: Tue, 29 Jul 2014 15:34:14 +1000 Subject: [PATCH] Switching back to proper bounds fitting --- .../javascripts/darkswarm/directives/map_search.js.coffee | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/assets/javascripts/darkswarm/directives/map_search.js.coffee b/app/assets/javascripts/darkswarm/directives/map_search.js.coffee index ff204d5acc..4942032580 100644 --- a/app/assets/javascripts/darkswarm/directives/map_search.js.coffee +++ b/app/assets/javascripts/darkswarm/directives/map_search.js.coffee @@ -18,9 +18,8 @@ Darkswarm.directive 'mapSearch', ($timeout)-> markers = [] bounds = new google.maps.LatLngBounds() for place in places - bounds.extend place.geometry.location #map.setCenter place.geometry.location - map.panToBounds place.geometry.viewport + map.fitBounds place.geometry.viewport #map.fitBounds bounds # Bias the SearchBox results towards places that are within the bounds of the