Re: [OpenMap Users] OMGraphic DnD

From: John Stockman <zonkix_at_gmail.com>
Date: Tue, 30 Nov 2010 19:33:23 -0600

Hey thanks a lot (again) for the response
As usual I started off the wrong path......

I ended up implementing the MapMouseListener on my layer and then overriding
the mouse events ....
thanks again...:)

On Tue, Nov 30, 2010 at 7:16 PM, Don Dietrick <dfdietrick_at_gmail.com> wrote:

> Hey Masta,
>
> If you have an icon on the map, it really falls outside of the realm
> of DnD mechanisms. If you are using OMGraphics, you need to use the
> OMDrawingTool to edit the location of OMGraphics. The easiest place
> to start is to look at the com.bbn.openmap.layer.DemoLayer, and look
> at the isSelectable(OMGraphic) and select(OMGraphicList) methods. You
> can also check out the findAndInit(Object) method for seeing how an
> OMDrawingTool is found by the layer in the application.
>
> The DemoLayer assumes that the OMDrawingTool has been added to the
> MapHandler. If you are using the standard OpenMap application, this
> is done by adding entries to the openmap.components property in the
> openmap.properties file.
>
> If you aren't using the OpenMap app or the MapHandler, let me know
> (but you should be using a MapHandler if you aren't).
>
> Cheers,
>
> Don
>
>
> On Sun, Nov 28, 2010 at 9:48 PM, Master Zonk <zonkix_at_gmail.com> wrote:
> >
> > Sorry for my noobness but I have not been able to figure out how I can
> click
> > and Drag an Icon on the map.
> >
> > What I need to do is be able to click drag and drop an existing Icon on
> the
> > map to a new position and then fire an event on drop
> >
> > I have played around with the DnD tools but my inexperience is preventing
> > any progress...a push in the right direction would be
> appreciated...thanks.
> > --
> > View this message in context:
> http://old.nabble.com/OMGraphic-DnD-tp30327361p30327361.html
> > Sent from the OpenMap mailing list archive at Nabble.com.
> >
> > --
> > [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 Nov 30 2010 - 20:33:47 EST

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