RE: [OpenMap Users] Adding MouseEvent to OMGraphics Object

From: Sperlongano Brian M NPRI <SperlonganoBM@Npt.NUWC.Navy.Mil>
Date: Fri Mar 26 2004 - 14:22:28 EST

I too have been hacking away at more or less the same problem. You can get mouse actions to OMGraphics using the MapMouseInterpreter, though I can't tell you how to hook it up so that mouse events get passed to them.

-Brian

-----Original Message-----
From: Karl Koch [mailto:TheRanger@gmx.net]
Sent: Friday, March 26, 2004 11:31 AM
To: openmap-users@bbn.com
Subject: [OpenMap Users] Adding MouseEvent to OMGraphics Object

Hi,

I hope my direct questions are not annoying anybody. I just have a few days to solve something and I cannot spend long time in finding out things by myself. This is the main reasion why I ask here.

is there a way to catch if a OMGraphics Object was clicked by the user without doing any position calculation on the layer (in order to find out which OMGraphics Object is was) ? I did that once for another GIS API and needed a kind of algorithm which caluculated a scare around any object to make a decision if the user clicked inside or outside this invisible square.

Can I directly attach a listener to a OMGraphics object or is there a way to do that in a very easy way? Who has a piece of sourcecode to which I could have a look.

Ralf

-- 
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz 
+++ +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz
--
[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"]
--
[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 Fri Mar 26 14:23:39 2004

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