Limiting panning?

Discussion created by jcole1989 on May 28, 2012
Latest reply on Jun 6, 2012 by njarecha-esristaff
In the sample projects as well as the app I've been working on, I've noticed that I can drag past the viewable area of the map. It appears that I can drag the map so far as to place any of the four corners in the center point of the screen. If I enable wrap-around, it makes this unnoticeable in the horizontal plane, but it's still a problem in the vertical plane.

How do I limit the panning so the user can't drag past the edge of the map? So there aren't ever white bars around the actual map area?