RE: [OpenMap Users] resize mapbean (and keep extents)

From: Hudson Brian R Contr AFRL/IFSF <Brian.Hudson_at_rl.af.mil>
Date: Tue, 3 Aug 2004 12:12:58 -0000

Hey,

Before switching, grab the lat lon extents (the top left and bottom right
lat/lons) from the Projection.

You can then use the Projections getScale(LatLonPoint, LatLonPoint, Point,
Point) function to determined what scale you should go to in order to
maintain the same extents.

Hope this helps,

Brian Hudson

-----Original Message-----
From: owner-openmap-users_at_bbn.com [mailto:owner-openmap-users_at_bbn.com] On
Behalf Of Ben Podoll
Sent: Monday, August 02, 2004 7:08 PM
To: openmap-users_at_bbn.com
Cc: 'OpenMap Support'
Subject: [OpenMap Users] resize mapbean (and keep extents)


Hi,

I have an application that takes my BasicMapPanel and swaps it from one
JPanel on the GUI to another. One is the main view (big) and the other is
the reference view (small).

My problem is that: I want it to keep the same extents (or as close as
possible when it switches from panel to panel) and they are never the same
size because the frame it resides in can be pulled horizontally and
vertically by the user.

So I am hoping there is a way to do this by possibly zooming out a bit when
it goes to the smaller Panel and zooming back in when it goes back to the
larger one?

Any ideas?

Thanks,
Ben


--
[To unsubscribe to this list send an email to "majdart_at_bbn.com" with the
following text in the BODY of the message "unsubscribe openmap-users"]
--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Tue Aug 03 2004 - 08:15:45 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:05 EDT