Re: OpenMap demo question

From: OPW Abbenhuis <abbenhuis@fel.tno.nl>
Date: Thu Jan 03 2002 - 05:02:10 EST

Hi Donald,

Thanks for this tip. It is what I was looking for.
Yet it leaves me with another problem...
Cause in the extended NavMouseMode you need to
fire the events:
    mouseSupport.fireMapMouseMoved(e);
    fireMouseLocation(e);

But when I change the MouseEvent e to have
the UTM coordinates I want, the lat/lon conversion
goes wrong cause that is based on the mouse X/Y coordinates
and not the UTM coordinates I pass on in the MouseEvent.

So somehow I think I need to derive/extend another class
instead of the NavMouseMode. Cause in the extended NavMouseMode
I think I need a projection in order to convert the mouse X/Y
into Lat/Lon coordinates which I then can convert to UTM.

Thanks again for your help,
Oscar Abbenhuis

Donald Dietrick wrote:

> Hi Oscar,
>
> You can extend the NavMouseMode to put whatever you want in the
> information line as a result of the mouse event methods. To use the new
> mouse mode, simply substitute it for the NavMouseMode in the
> openmap.properties file.
>
> I'm not sure why you are having trouble with the UTMPoint, as you
> indicated in your earlier email. I'll check into it when I get back
> from vacation, unless someone else answers you first.
>
> Cheers,
>
> Don
>
> On Friday, December 28, 2001, at 03:25 AM, OPW Abbenhuis wrote:
>
> > Hi,
> >
> > I've got another question concerning the OpenMap demo.
> > When run and the mousemode is navigation, the coordinates
> > are displayed below the map. Both in lat/lon and x/y.
> > Yet the x/y is the "projected" x/y, the x/y of the mouse.
> > Is there any way to override this behaviour and make
> > the x/y UTM coordinates instead?
> >
> > Thanks for any help on this.
> >
> > Kind regards,
> > Oscar Abbenhuis
> >
> > --
> > [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"]
> >
> >
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Donald Dietrick, dietrick@bbn.com
> BBN Technologies, Cambridge, MA
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[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 Thu Jan 3 05:04:04 2002

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