$(document).ready(function() {
     var mapstraction = new mxn.Mapstraction("map_canvas", _provider);

     var minLat = 181.0;
     var maxLat = -181.0;
     var minLon = 181.0;
     var maxLon = -181.0;

     for (var i in _notices)
     {
          var n = _notices[i];

          var lat = n['geo']['coordinates'][0];
          var lon = n['geo']['coordinates'][1];

          if (lat < minLat) {
               minLat = lat;
          }

          if (lat > maxLat) {
               maxLat = lat;
          }

          if (lon < minLon) {
               minLon = lon;
          }

          if (lon > maxLon) {
               maxLon = lon;
          }
     }

     var myPoint = new mxn.LatLonPoint(minLat + Math.abs(maxLat - minLat)/2,
                                       minLon + Math.abs(maxLon - minLon)/2);

     // display the map centered on a latitude and longitude (Google zoom levels)

     mapstraction.setCenterAndZoom(myPoint, 9);
});

@@ -655,31 +655,20 @@
   %7D%0A
+%0A
      
-%7D%0A%0A
      
-var myPoin
+p
 t = 
@@ -691,253 +691,301 @@
 int(
-minLat + Math.abs(maxLat - minLat)/2,%0A                                       minLon + Math.abs(maxLon - minLon)/2
+lat, lon);%0A          mkr = new mxn.Marker(pt);%0A%0A          mkr.setIcon(n%5B'user'%5D%5B'profile_image_url'%5D);%0A          mkr.setInfoBubble(n%5B'html'%5D);%0A%0A          mapstraction.addMarker(mkr
 );%0A
-%0A
      
-// display the map centered on a latitude and longitude (Google zoom levels)%0A%0A     mapstraction.setCenterAndZoom(myPoint, 9
+%7D%0A%0A     bounds = new mxn.BoundingBox(minLat, minLon, maxLat, maxLon);%0A%0A     mapstraction.setBounds(bounds
 );%0A%7D

add markers for each notice and show the bounding box correctly