You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the SingleLineSearch, the result graphic sometimes shows up and sometimes it don't. When using keyboard arrows and pressing enter for one search result in the result list the graphic appear, and if I'm typing a searchterm that only gets one result the graphic appear as well. But when clicking with the mouse on a result in the result list, the info window shows and the map zoom in to the result but no graphic appear.
I did some debugging and it seems like when using the mouse and clicking one search result, at first the code runs as expected but then the resultList_changeHandler function is triggered again causing the showSearchResultOnMap function to run again with no searchResult object. So the result graphic is removed and no new graphic is added since the searchResult is null this second time the function is triggered.
Using the SingleLineSearch, the result graphic sometimes shows up and sometimes it don't. When using keyboard arrows and pressing enter for one search result in the result list the graphic appear, and if I'm typing a searchterm that only gets one result the graphic appear as well. But when clicking with the mouse on a result in the result list, the info window shows and the map zoom in to the result but no graphic appear.
I did some debugging and it seems like when using the mouse and clicking one search result, at first the code runs as expected but then the resultList_changeHandler function is triggered again causing the showSearchResultOnMap function to run again with no searchResult object. So the result graphic is removed and no new graphic is added since the searchResult is null this second time the function is triggered.
There's a thread in the forum about this here:
http://forums.arcgis.com/threads/74045-configuring-searchbox-in-HeaderControllerWidget-3.1
But since there was some other questions there I started a new thread about this here:
http://forums.arcgis.com/threads/75682-Searchbox-result-graphic-bug
/Mattias
The text was updated successfully, but these errors were encountered: