title: Showing markers within bounding box using Google Maps API v3
body: <p>I want to display a list of markers that are located within the map's bounding box. I have a basic implementation working that intercepts the map's "bounds_changed" event and fires off an AJAX request to my server with the lat/long coordinates of the map's southwest and northeast corners. This works for most scenarios, however I've found that this implementation breaks if the user pans too far east/west. </p>
  
  <p>For instance, let's say the bounding box originally starts out as being the whole world (southwest corner: [-90, -180], northwest corner: [90, 180]). Then, if the user pans west 180 degrees, the bounding box becomes [-90, -360] / [90, 0]. This breaks my AJAX request because even though the whole world is still visible to the user, any markers with a longitude > 0 won't be returned by my database query.</p>
  
  <p>What's the best way of handling this?</p>