Re: [OpenMap Users] Date: Mon, 8 Dec 2003 12:20:04 +0530

From: Don Dietrick <dietrick@bbn.com>
Date: Mon Dec 08 2003 - 08:26:15 EST

Hi Harpreet,

On Dec 8, 2003, at 1:51 AM, Harpreet wrote:

> hello there
>
> i have a little query regarding the menuitems and the toolpanel buttons
>
> its regarding the ZoomIn and ZoomOut buttons
> i would like to know tht how can we disable these buttons,means when
> the application is fuly zoomedIn tht menuitem and the tool buton
> should be disabled and when fully ZoomOut the tht button should be
> disabled

The NavigateMenu has these buttons, but keeps them in it's component
heirarchy, not as member variables. You'd have to modify the
NavigateMenu to maintain a handle on them. Then, you'd have to make
the NavigateMenu a ProjectionChangedListener so it knows when the
projection changes. The ProjectionEvent that it receives will have a
handle to the MapBean, and from that you can get the current
projection.

You need to get the projection so you can figure out if the current
scale is the maximum or the minimum, since the projection doesn't know
that. It may know the smaller scale number, but the biggest scale
number depends on the size of the map window.

> there's also another query i want tht my application should zoom upto
> certain level means the as openmap zoom upto (+62 i think) i want tht
> it should zoom upto a certain level can i fix this thing anywhere

I don't understand. You want to change the minimum scale value? I'd
have the GUI components contain the intelligence to limit what the
scale values could be.

Regards,

Don

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Mon Dec 8 08:24:26 2003

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:37 EDT