Hi, have you tried the SetViewportBBoxCommand? That works for me in every state.
-Panagiotis On Thu, Jul 26, 2012 at 9:09 AM, Elvie DSouza <[email protected]> wrote: > Hi, > > I have menu command which will close all the open views in my application. > When this happens, the map area increases and viewport is rendered. > > Now, the problem is, that I have to explicitly click the 'Show All' action > to fit the map. I need it to happen programatically. I have tried executing > 'ZoomExtentCommand' but it doesn't give the desired result. I guess it > happens because the map is still being rendered when this command is > executed. > > Is there a way to either find the status of the renderer and wait for > rendering to get over or execute 'ZoomExtentCommand' after rendering is > done? > > Thanks > Elvie > > _______________________________________________ > User-friendly Desktop Internet GIS (uDig) > http://udig.refractions.net > http://lists.refractions.net/mailman/listinfo/udig-devel > >
_______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel
