<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Hello<br>
<br>
If you are using the JMap2D that's fast.<br>
<br>
//make a search area based on your mouse position<br>
Shape searchArea = new
Rectangle(mouse.getPoint().x-2,mouse.getPoint().y-2,4,4);<br>
//each time something hit the search area it will be passed to the
visitor<br>
GraphicVisitor visitor = new ...(your own visitor);<br>
//make the search<br>
map.getCanvas().getGraphicsIn(searchArea, visitor,
VisitFilter.INTERSECTS);<br>
<br>
<br>
If you are using a mapcontext object, don't forget that maplayers
should be set selectable<br>
otherwise the visite method won't return results for the layer.<br>
<br>
johann sorel<br>
<br>
<br>
Le 05/02/2011 08:34, Gopinath Asutosh a écrit :
<blockquote cite="mid:801646.45553.qm@web161613.mail.bf1.yahoo.com"
type="cite">
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="font: inherit;" valign="top">Hi, <br>
<br>
how to implement mouse clicking on a shape to open a
dialog?<br>
<br>
please help.<br>
<br>
thanks<br>
asutosh<br>
</td>
</tr>
</tbody>
</table>
<br>
</blockquote>
<br>
</body>
</html>