I got this working, there were a few changes needed to the below code,
now I am working on pan and zoom.
Question: I have noticed that some variables are described but the
values are not covered in the API docs. For example:
--------------------------------------
type
protected int type
The type of zooming.
---------------------------------------
What are the possible values for type?
Thanks,
Chuck
-----Original Message-----
From: owner-openmap-users_at_bbn.com [mailto:owner-openmap-users_at_bbn.com]
On Behalf Of Dirk Aagaard
Sent: Tuesday, June 21, 2005 12:55 PM
To: openmap-users_at_bbn.com
Subject: RE: [OpenMap Users] Using DrawingTool whithout the MapHandler
Hello Chuck,
Pan and Zoom is no problem.
For example:
JButto centerButton = new JButton;
centerButton.addActionListener(new ActionListener()
{
public void actionPerformed( ActionEvent e )
{
CenterEvent centerEvent = new CenterEvent(this, 50.0f,
10.0f);
yourApp.this.mapBean.centerEvent();
}
});
Thats all. You can do this for panning and zoom whith the PanEvent and
ZoomEvent. You can find more details in the API Doc of Openmap.
I hoppe it helps.
Regards,
Dirk
"Vincent, Chuck" <CVincent_at_sfa.com> schrieb am 21.06.05 13:30:53:
>
>
>
>
> I am doing something very similar. I have a swing app, where all I am
using is the mapBean in a JPanel. I would like to be able to do simple
projection changes (zoom & pan) and to be able to draw things on top.
>
>
>
> Any help pointing me in the right direction would be great. Please
keep in mind I am new to Java (former c++ programmer).
>
>
>
> -Chuck
>
>
>
>
>
[..]
>
> Hello Don, hello Group,
>
>
>
> How can I use the DrawingTool whithout the MapHandler.
>
>
>
> I have a GUI Application whith a MenuBar and a Toolbar. The main Panel
has a JTree on the left side and a Panel on the right. Using reflection
i can load different
>
> Panels in this MainPanel. One of them is a MapBean whith some Layers.
At the moment all works fine for me.
>
>
>
> My problem now is how can I use the DrawingTool whithout the
MapHandler in my own Layer witch extends OMGraphicHandlerLayer?
>
>
__________________________________________________________
Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min.
weltweit telefonieren!
http://freephone.web.de/?mc=021201
--
[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 Wed Jun 22 2005 - 10:16:09 EDT