Select to view content in your preferred language

Disable popup on mouseover for RS Identify widget only

1033
8
09-09-2011 12:23 PM
NathanEnge
Esri Contributor
I'm looking for a way to disable the popup that occurs when mouse over identified feature. I just want the datagrid, and find the popup redundant, and it does get in the way of identifying subsequent features underneat the popup...
Thanks

Nathan
Tags (2)
0 Kudos
8 Replies
PaulGrimes
Deactivated User
Hi,

was a solution ever proposed for this ... I have the same issue, the data grid result is fine, I dont want a popup on the feature but i'd like the graphic outline of the datagrid object shown.  The popup i great if there are not many records but in busy datasets its counter productive. 


any ideas how to turn them off for Roberts widget would be really appreciated.

Regards

PaulG
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Guys,

   In the code search for the addEventListener that adds the mouseOverGraphic function and comment them out.
0 Kudos
MartynSmith
Emerging Contributor
Guys, 

In the code search for the addEventListener that adds the mouseOverGraphic function and comment them out.



For some reason, this didn't work for me. I commented out the two occurences of the line below, and am still getting the popup on the map when I hover over the result:

idResult.forceScale = identForceScale;
      identifyArrayCollection.addItem(idResult);
      //iGra.addEventListener(MouseEvent.ROLL_OVER, mouseOverGraphic);
      iGra.attributes = idResult;
      graphicsLayer.add(iGra);
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Martyn,

  So you are saying that when you hover or the identified graphic that it still pops up an info window...?
0 Kudos
MartynSmith
Emerging Contributor
Martyn,

  So you are saying that when you hover or the identified graphic that it still pops up an info window...?


yes...  I have cleared my cache and I'm still getting the the popup over the point when i hover over the entry in the results table
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Martyn,

   Yep that is what I thought, you are wanting something different than what these guys were asking for... The code provided here is for disabling the popup when hover over the GRAPHIC on the map not the record in the widget. You need to look at the mouseOverRecord function.
0 Kudos
MartynSmith
Emerging Contributor
OK, I seem to have what I wanted after commenting out this line:

   private function mouseOverRecord(event:Event):void
   {
    var idResult:IdResult = ItemRenderer(event.target).data as IdResult;
    clearTimeout(hitimer);
    if (map.extent.containsXY(idResult.point.x, idResult.point.y))
    {
     //hitimer = setTimeout(showHighlight, 300, [idResult]);
    }else{
     hideInfoWindow();
    }
   } 
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Martyn,

   Support for disabling certain identify buttons and turning off popups is now part of Version 2.5.
0 Kudos