[udig-devel] Capture events when user clicks the map?

Jody Garnett jgarnett at refractions.net
Thu Mar 27 08:28:58 PDT 2008


Have a look at the normal DistanceTool tutorial; it provides a tool that 
responds to mouse down, and mouse release events. You can modify the 
example to take care of double clicks. When you do get a double click 
you can do a query on your hospital layer to see if they clicked on one. 
You may also enjoy looking at the InfoTool (it operates as a single 
click; and opens a view up to show the result of a query at that location).

This email list is a great location for these kinds of questions.
Jody
> Hi,
>
> I want to support some kind of interactivity when user clicks the map. 
> For example, when user double clicks a point in the map, could I get 
> an event notification so I can do corresponding works?
>
> To be specific, I finished the tutorials for the custom property 
> resource and property renderer, could I be notified when user double 
> click one of hospitals? Any listener mechanism exists?
>
> Pls give me some suggestions or code examples if any. Your help is 
> appreciate.
>
> BTW, I am not sure whether this list is the right place to send this 
> email. If this kind of email should go to the users mailing list, pls 
> tell me.
>
> Best Regards,
> Yang Sun
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>   




More information about the udig-devel mailing list