Commits

Colin Copeland committed daefcfc

zoom and center on marker when clicked

Comments (0)

Files changed (1)

lib/copelco/apps/estate/static/js/estate.js

             // });
             
             google.maps.event.addListener(marker, 'click', function() {
+                map.setCenter(point);
+                map.setZoom(16);
                 infowindow.open(map, marker);
                 infowindow.setContent(item.address);
                 $.getJSON('/houses/map/info/', {'house_id': item.id}, function(result) {