Commits

Colin Copeland committed ed1e22f

add "center" link to re-center map

  • Participants
  • Parent commits daefcfc

Comments (0)

Files changed (1)

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

     google.maps.event.addListener(map, 'click', function() {
         infowindow.close();
     });
+    
+    $('#map-canvas').after($('<a href="#">').text('Center').click(function() {
+        map.fitBounds(bounds);
+        infowindow.close();
+    }));
       
     $.getJSON('/houses/map/markers/', function(data) {
         $(data).each(function (idx, item) {