On Tue, Apr 14, 2009 at 10:48 AM, Yanaris Jorge Aguirre
<[email protected]> wrote:
> Hi, I'm using a JMapPane control inside a frame. I make a zoom to the map
> and when I resize, maximize, or minimize the frame the zoom's level is
> loosed. I would like to maintain the zoom I had when I resize the frame. Any
> help???

The question is what would you like to happen when the size and shape
of the window changes? In most cases the AOI of the map must be
changed - I just opted for an easy life by reseting to max extent. If
you look in the code for JMapPane you'll be able to see where the
relevant method is (I expect it's registered to a sizeChanged event or
some such) and change/or overide the behaviour that currently occurs.

Ian

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to