Select to view content in your preferred language

Mousehover and Mouse Click on Point

941
0
07-14-2010 01:27 AM
shafitrumboo
Occasional Contributor
I have to show some information when user hovers over Point feature and also show a Popupwindow when user click on that point feature to show some information.

I tried to implment it using this code snippet but It is really frustrating for the user to exactly point at that location. Please help.

<esri:FeatureLayer id="myFeatureLayer"
  mode="onDemand"
          
           outFields="[UPHONE,UNAME,UNICKNAME,UEMAIL,CTYPE,CDESCRIPTION,STATUS]"
           graphicAdd="myFeatureLayer_graphicAddHandler(event)"      url="http://172.16.2.244/ArcGIS/rest/services/COMPLAINTSERVICENEW/FeatureServer/0">

IN myFeatureLayer_graphicAddHandler function i add event of mouse click and tooltip to graphics

event.graphic.toolTip = event.graphic.attributes.STATUS;
event.graphic.addEventListener(MouseEvent.CLICK, mapClickHandler);
Tags (2)
0 Kudos
0 Replies