Actually, there's a more integrated way to do it.
You override the OMGraphicHandlerLayer.receivesMapEvents() method so
it returns true, and then you'll receive calls on the
OMGraphicHandlerLayer's:
leftClick(MapMouseEvent);
mouseOver(MapMouseEvent);
List getItemsForMapMenu(MapMouseEvent mme);
- Don
On Dec 8, 2005, at 3:49 PM, Lepkowski, Thomas M., CTR, OSD-PA&E wrote:
> Classification: UNCLASSIFIED
>
> go it. Just addMouseListener() to mapBean, then define the
> mouseClicked() method to handle the left mouse click.
>
> -Tom
> -----Original Message-----
> From: owner-openmap-users_at_bbn.com [mailto:owner-openmap-
> users_at_bbn.com]On Behalf Of Lepkowski, Thomas M., CTR, OSD-PA&E
> Sent: Thursday, December 08, 2005 2:48 PM
> To: openmap-users_at_bbn.com
> Subject: [OpenMap Users] getting a LatLonPoint by clicking map
>
> Classification: UNCLASSIFIED
>
> Hello,
>
> Using OMGraphicHandlerLayer it's easy to get a LatLonPoint by using
> the leftClick() method, but only if you don't left click on an
> OMGraphic.
>
> Is there a convenient way to get a LatLonPoint by left clicking on
> the map, regardless of whether you're clicking an OMGraphic?
>
> Thanks for any info.
>
> -Tom
>
--
[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 Thu Dec 08 2005 - 17:19:25 EST