Hi Kennedy,
What is your composite OMGraphic? Is it an OMGraphicList, so
something different.
If you modify your layer so that isHighlightable() returns true for
those OMGraphics, and you set a select color on them, do you notice
them change color if you mouse over them? That would test whether
the StandardMapMouseInterpreter is finding them in a different gesture.
- Don
On Sep 18, 2007, at 4:45 PM, Davidian wrote:
>
> Hello everyone, I hope someone can help me...
>
> To start, just the facts:
>
> 1) I have created a Layer class that extends OMGraphicHandlerLayer.
>
> 2) I have created a class that extends OMGraphic. This class has
> contains
> an OMRaster and an OMText.
>
> 3) My OMGraphic class is displaying properly on my layer.
> Everything works
> fine there. I see both the icon (the OMRaster) and its label (the
> OMText).
>
> Now, the problem:
>
> When I right click on one of my graphics on the map, the
> getItemsForOMGraphicMenu method does NOT get called. Instead, the
> getItemsForMapMenu method gets called. It seems as though OpenMap
> does not
> recognize that an OMGraphic is even in that location.
>
> My theory is that this is because I have a "composite" OMGraphic,
> which
> really consists of two OMGraphic objects. Even though I think this, I
> cannot phathom how to fix this.
>
> As a note: If I put a standard OMGraphic on my layer (say, just an
> OMRaster), the mouse click related methods for clicking on those
> graphics
> work. Just not for my custom class.
>
> If anyone has tips for me, I would really appreciate it.
>
> Thank You,
>
> Kennedy
>
> <edited and sent to mail list>
> --
> View this message in context: http://www.nabble.com/Problems-with-
> getItemsForOMGraphicMenu-method-tf4475964.html#a12762516
> 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"]
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick_at_bbn.com
BBN Technologies, Cambridge MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
--
[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 Fri Sep 28 2007 - 18:08:16 EDT