On Nov 8, 2004, at 8:14 AM, Carlo INCERTI wrote:
> Hi,
>
>
>
> I don’t intercept events in a OMGraphicHandlerLayer, I don’t know if
> an icon is selected or not.
>
>
>
> I did the following operations:
>
> I extended the layer and implemented the MapMouseListener interface.
>
> I override the getMapMouseListener
>
> I set the layer’s setConsumeEvents to true
>
> I set the layer’s setMouseModeIDsForEvents to “Gestures”
This last one is not a MapMouseListener interface method, it's a
GestureResponsePolicy method the OMGraphicHandlerLayer implements. You
need to return "Gestures" in the
MapMouseListener.getMouseModeServiceList() method if you aren't doing
things the OMGraphicHandlerLayer way.
- Don
>
>
>
> I don’t understand where I fail.
>
> Can anyone help me?
>
>
>
> Thanks.
>
>
>
> Carlo
>
>
>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don 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 Mon Nov 8 10:45:01 2004
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:40 EDT