Select to view content in your preferred language

Duplicate identify result on Identify Widget

1114
8
Jump to solution
03-05-2013 11:55 AM
MayJeff
Deactivated User
When you double click to identify a parcel by point (or anything on your layer) and you will get duplicate results.  Results are all depend on how many times you have clicked to identify.  You will get same result 4 times if you click 4 times.  Does anyone has this problem?
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
May Jeff,

   Here is a change you can make. It will work most of the time. If you double or triple click the default navigation action of zooming in will still occur but there will only be one result.

            private function drawEnd(event:DrawEvent):void             {                 clear();                 if(keepActive){                     event.target.deactivate();                     var timeOutVar:uint = setTimeout(activateIdentifyTool, 400, null, lastTool);                 }else{                     event.target.deactivate();                     if (selectedDrawingIcon){                         selectedDrawingIcon.filters = [];                         selectedDrawingIcon = null;                     }                     lastTool = "";                 }                 identifyGeom = event.graphic.geometry;                 identifyFeatures(identifyGeom);             }

View solution in original post

0 Kudos
8 Replies
RhettZufelt
MVP Notable Contributor
Nope, each time I click, it removed the old, and gives me the new.

Only way I get 4 results is if I have 4 "identifiable" layers.

R_
0 Kudos
MayJeff
Deactivated User
That's weird for me.  Do you try to click the same parcel or polygon twice?  I try to identify sample site (http://gis.calhouncounty.org/FlexViewer3.1/index.html?config=config-identify.xml) and also get the same result on zoning layer.  See the attachements for only zoning layer being turn on and get 3 same results after clicked 3 times.

Any thoughts would help.  Thanks
0 Kudos
RhettZufelt
MVP Notable Contributor
Yes, I can repeat it going that route.  In fact, if I turn "both" zoning layers on, it will give me double the amount (double click gets 4 results).


Can repeat with police stations/traffic cameras as well.

Not sure why, if I get a chance later on, will see if I can make it happen locally, and what is causing it.

R_
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Guys,

   Currently I do not intend to spend any development time/effort on this, as it is not an issue when the widget is used as intended and the way most NORMAL users would use the widget.
0 Kudos
RhettZufelt
MVP Notable Contributor
May,

Suspect that the only time it's an issue is when user doesn't realize it's still active and double clicks to zoom in or such???

Guess you could always set keepidentifyactive=false, that way only the first click would be sent to the identify widget.


R_
0 Kudos
MayJeff
Deactivated User
Thank you all for the information.  Is there possible to disable "double click"?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
May Jeff,

   Here is a change you can make. It will work most of the time. If you double or triple click the default navigation action of zooming in will still occur but there will only be one result.

            private function drawEnd(event:DrawEvent):void             {                 clear();                 if(keepActive){                     event.target.deactivate();                     var timeOutVar:uint = setTimeout(activateIdentifyTool, 400, null, lastTool);                 }else{                     event.target.deactivate();                     if (selectedDrawingIcon){                         selectedDrawingIcon.filters = [];                         selectedDrawingIcon = null;                     }                     lastTool = "";                 }                 identifyGeom = event.graphic.geometry;                 identifyFeatures(identifyGeom);             }
0 Kudos
MayJeff
Deactivated User
It works sometimes!
0 Kudos