diff --git a/app/assets/javascripts/main.js.erb b/app/assets/javascripts/main.js.erb index 68be148..b37c2b8 100644 --- a/app/assets/javascripts/main.js.erb +++ b/app/assets/javascripts/main.js.erb @@ -128,7 +128,7 @@ $(function() { } }); } - google.maps.event.addListener(map, 'dragend', function() { + google.maps.event.addListener(map, 'idle', function() { var center = map.getCenter(); addMarkersAround(center.lat(), center.lng()); });